home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!umn.edu!lynx!pprg.unm.edu!ele
- From: ele@chama.eece.unm.edu
- Newsgroups: comp.lang.c
- Subject: Questions about token merging and trigraphs
- Message-ID: <42098@pprg.eece.unm.edu.pprg.unm.edu>
- Date: 11 Dec 92 16:35:41 GMT
- Sender: news@pprg.unm.edu
- Distribution: world
- Lines: 27
- Oranization: University of New Mexico
-
-
- Two questions about ANSI C:
-
- (1) How is the preprocessor token merging mechanism (##) supposed to
- be used? I know, for example that if you have
-
- #define X(i) x ## i
-
- then the preprocessor will replace code like 'X(1)' with 'x1', but
- could someone give me an example of where this (or some other use of
- '##') would be useful?
-
- (2) There is a command-line switch to disable the 'trigraph' feature
- in the gcc compiler. What are trigraphs? From the comments in the
- gcc documentation I gather that they are something that the ANSI
- committee has added to C and that Richard Stallman doesn't care for
- them. If that is the case, I'm wondering what purpose the ANSI
- committee saw for them, why anyone would object to them, and, most
- importantly, what they are.
-
- Thanks for any help offered!
-
- --
- Erik L. Ellis |
- NASA Langley Research Center | Office: 804/864-5819
- Information Systems Division | Home: 804/827-1259 (leave msg.)
- Mail Stop 152D | FAX: 804/864-8672
-