Article View: comp.sys.sequent
Article #135Re: '$' in Sequent C Compiler
From: Guy Harris
Date: Sat, 16 Sep 1989 18:22
Date: Sat, 16 Sep 1989 18:22
19 lines
1397 bytes
1397 bytes
>It's not a bug - it's due to Sequent's C compiler being derived from >AT&T's C compiler, which does not accept '$' as a valid character in an >identifier. Sequent is trying to be compatible with AT&T, so we have >no plans to change this in the near future. Berkeley's compiler is derived from AT&T's C compiler, but it accepts "$" as a valid character in an identifier. I don't see the harm in extending Sequent's compiler; Sequent's C library presumably contains "lstat()", but AT&T's doesn't (yet, anyway - S5R4 will). >(It's invalid in ANSI C too.) But specifically called out in A6.5.2 as a "common extension"; you may have to provide a flag to disable it in order to have your compiler be a legal ANSI C one, but you don't have to leave it out of your compiler entirely. Nevertheless, it's wise to avoid "$" in identifiers when writing code for UNIX systems, since not all compilers support it.
Technical Details
Message-ID:
<2456@auspex.auspex.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!auspex!guyReferences:
<1355@syma.sussex.ac.uk> <21660@sequent.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.sys.sequent Subject: Re: '$' in Sequent C Compiler Keywords: C compiler dollar identifiers Message-ID: <2456@auspex.auspex.com> Date: 16 Sep 89 18:22:25 GMT References: <1355@syma.sussex.ac.uk> <21660@sequent.UUCP> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 19