Path: utzoo!attcan!uunet!husc6!mailrus!ulowell!apollo!oj From: oj@apollo.COM (Ellis Oliver Jones) Newsgroups: comp.sys.apollo Subject: Re: SR10: /usr/include/apollo/{base,time}.h and cc -A nansi ... Keywords: SR10, Ansi C, non Ansi C, Apollo include files Message-ID: <3f749e82.d5b2@apollo.COM> Date: 4 Nov 88 02:21:00 GMT References: <17508@shemp.CS.UCLA.EDU> Reply-To: oj@canyon.UUCP (Ellis Oliver Jones) Organization: Apollo Computer, Chelmsford, MA Lines: 37 In article <17508@shemp.CS.UCLA.EDU> casey@CS.UCLA.EDU (Casey Leedom) writes: > The latest chapter in my endless quest to get X.V11R3 compiled on SR10.... "Endless" for hundreds of megabytes of source code that's been out a whole week? Doesn't sound endless to me. Sounds like a week's work. :-) >1. Apparently Ansi C defines the sequence "##" to be interpreted by the C > Preprocessor (cpp) as a null string which can be used to separate > macro references... > #define foo(a, b) a##b > The Apollo SR10 compiler totally barfs on this. I've submitted an internal bug report on this point. Thanks. By the way /**/ works fine. You'll probably get reasonable response by submitting bug reports like this yourself, to the Customer Services department. >2. I was finally able to find something I could ifdef on to decide > whether to try to include /sys/ins/base.ins.c or > /usr/include/apollo/base.h - I used _BFMT__COFF. Yup. Good choice. It also works just fine if you use __STDC__ . Using __STDC___ to decide which header files you want solves your next problem too. >3. Continuing with Load.c, it turns out that base.h and time.h (and > probably several other files in /usr/include/apollo) have Ansi C > functional prototypes declared. They don't ifdef the external function > declarations on __STDC__ even though it's available, properly > implemented by the Apollo compiler, and specifically for this purpose. This shows up on many header files, such as . Some of them could get awful big if we had to go both ways. /Ollie Jones (speaking for myself, not necessarily for Apollo Computer, Inc.)