Path: utzoo!utgpu!water!watmath!clyde!att!pacbell!ames!pasteur!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!guido From: guido@cwi.nl (Guido van Rossum) Newsgroups: comp.sys.mac.programmer Subject: Re: Writing C code that works with both MPW and LightspeedC Message-ID: <339@piring.cwi.nl> Date: 25 May 88 12:33:13 GMT References: <332@piring.cwi.nl> <8560@dartvax.Dartmouth.EDU> Reply-To: guido@cwi.nl (Guido van Rossum) Organization: The Royal Society for Prevention of Cruelty to Amoebae Lines: 15 Thanks for the posting of "compat.h". This is indeed the better approach when porting from LSC to MPW. >I have found that using the Pascal interface exclusively results in >smaller code [...] It depends on what you are doing. If you are writing a library which has an interface that's portable to non-Mac machines, you'll have to convert C strings to Pascal anyway, so doing the conversion in the glue might actually save space as soon as a routine is called more than once. This doesn't hold for Points, though. (In fact I would probably have your approach, had it been available in MPW 1.0... :-( ). -- Guido van Rossum, Centre for Mathematics and Computer Science (CWI), Amsterdam guido@piring.cwi.nl or mcvax!piring!guido or guido%piring.cwi.nl@uunet.uu.net