Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #713
| From | "christian.bau" <christian.bau@cbau.wanadoo.co.uk> |
|---|---|
| Newsgroups | comp.compilers |
| Subject | Re: C arcana, was type or identifier fundamental parsing issue - Need help from parsing experts |
| Date | 2012-07-12 09:23 -0700 |
| Organization | Compilers Central |
| Message-ID | <12-07-013@comp.compilers> (permalink) |
| References | <12-07-004@comp.compilers> <12-07-007@comp.compilers> |
On Jul 4, 11:43 am, Hans-Peter Diettrich <DrDiettri...@aol.com> wrote: > There exist pros and cons. The C preprocessor *requires* that sizeof > is a built-in *macro*, so that it can be used in #if conditions. Ahem... No, it doesn't. Unless you do something really perverse like #define sizeof <whatever> sizeof will not be defined as a macro, and any non-macro identifier used within #if other than as an operand to "defined" will be replaced by 0. [After squinting at the various C standards and checking with committee members, I found that the C preprocessor does not know about any keywords at all, so it treats sizeof and int as ordinary names. This allows occasionaly useful kludges like #define short int -John]
Back to comp.compilers | Previous | Next — Previous in thread | Find similar
type or identifier fundamental parsing issue - Need help from parsing experts AD <hsad005@gmail.com> - 2012-07-03 11:30 -0700
Re: type or identifier fundamental parsing issue - Need help from parsing experts George Neuner <gneuner2@comcast.net> - 2012-07-04 00:57 -0400
Re: type or identifier fundamental parsing issue - Need help from parsing experts torbenm@diku.dk (Torben Ægidius Mogensen) - 2012-07-11 12:17 +0200
Re: type or identifier fundamental parsing issue - Need help from parsing experts Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2012-07-04 11:43 +0100
Re: C arcana, was type or identifier fundamental parsing issue - Need help from parsing experts "christian.bau" <christian.bau@cbau.wanadoo.co.uk> - 2012-07-12 09:23 -0700
csiph-web