Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!snll-arpagw!paolucci From: paolucci@snll-arpagw.UUCP (Sam Paolucci) Newsgroups: comp.sys.amiga Subject: Re: Manx 3.6a Bugs Message-ID: <63@snll-arpagw.UUCP> Date: 6 Mar 89 15:38:48 GMT References: <8903052320.AA03483@jade.berkeley.edu> Reply-To: paolucci@snll-arpagw.UUCP (Sam Paolucci) Organization: Sandia National Labs, Livermore, CA Lines: 49 In article <8903052320.AA03483@jade.berkeley.edu> GIGUERE@WATCSG.BITNET (Eric Giguere) writes: -> ->So here I am, running a simple grammar through Bison and then compiling ->the output file.... but there's a little problem with #define: -> -> #ifndef __STDC__ -> #define const -> #endif -> ->The code is perfectly valid C... but Manx doesn't let you define keywords ->as macros (const is a keyword in 3.6a even though it's not implemented). ->After getting the error message I looked in the manual and yep, that's ->what it says. Arrgh! Who was the idiot who put this into the compiler? ->Deleting the above lines doesn't solve anything because 'const' leads ->to problems later on. I hope this is fixed in 4.0 --- a warning message ->I can see, but an error message no way! -> ->Well, enough of a tirade. It's easy enough to use a text editor to ->delete all references to 'const', but I'm going to modify the Bison ->source to fix this permanently. Maybe what we need is -> -> #ifdef __STDC__ -> #define CONST const -> #else -> #define CONST -> #endif -> ->which is ugly but would preserve 'const' for those compilers that ->support it. -> ->Speaking of bugs, 3.6a seems to have problems with #line directives ->when compiling with the '-n' (debugger) flag -- the assembler croaks. -> ->I await 4.0 anxiously.... For your info, I reported both of the above problems to Manx over one year ago. ->Eric Giguere ->Computer Systems Group, University of Waterloo -> ->BITNET: GIGUERE@WATCSG Other: giguere@watcsg.UWaterloo.CA ->UUNET : watcsg!giguere@uunet.UU.NET -- -+= SAM =+- "the best things in life are free" ARPA: paolucci@snll-arpagw.llnl.gov