Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!agate!shelby!polya!lucid.com!lnz From: lnz@lucid.com (Leonard N. Zubkoff) Newsgroups: comp.sys.apollo Subject: Re: Controlling case of returned names from name_$get_path Message-ID: <2136@heavens-gate.lucid.com> Date: 25 Aug 89 07:16:38 GMT References: <8908222029.AA13624@umix.cc.umich.edu> Sender: USENET News System Organization: Lucid, Inc. Menlo Park, CA Lines: 16 In-reply-to: derstad@CIM-VAX.HONEYWELL.COM's message of 22 Aug 89 21:16:00 GMT It is quite possible to construct programs which run in both an SR9.7 and an SR10.1 environment using the optimal calls (_cc for SR9.7 and _lc for SR10.1) for each environment by building an OBJ rather than COFF object and having the program determine at run time which environment it is running in. Domain/CommonLISP uses precisely this technique so that the same program can run in either environment. Here is an example: if DomainSR10 then Name_$Get_Path_LC('/',1,sizeof(RootName), RootName,RootNameLength,Status) else Name_$Get_Path_CC('/',1,RootName,RootNameLength,Status); As long as the string arguments are declared with UNIV, passing in a variable of type Name_$Long_Pname_T to Name_$Get_Path_CC will work fine. Leonard