Re: Pre-Parsers

Hans-Bernhard Broeker <>
8 Oct 2000 22:25:49 -0400

          From comp.compilers

Related articles
Pre-Parsers (Jim Granville) (2000-09-08)
Re: Pre-Parsers (Randall Hyde) (2000-09-09)
Re: Pre-Parsers (2000-09-13)
Re: Pre-Parsers (2000-09-15)
Re: Pre-Parsers (2000-09-21)
Re: Pre-Parsers (Hans-Bernhard Broeker) (2000-10-08)
Re: Pre-Parsers (2000-10-10)
Re: Pre-Parsers (2000-10-12)
Re: Pre-Parsers (2000-10-12)
| List of all articles for this month |

From: Hans-Bernhard Broeker <>
Newsgroups: comp.compilers
Date: 8 Oct 2000 22:25:49 -0400
Organization: Aachen University of Technology (RWTH)
References: 00-09-119 00-09-155
Keywords: practice

[Sorry for jumping in so late, on this... ]

> I often found source code with something like:

> #if sizeof(int)==2 ...

> Here sizeof() must be evaluated by the preprocessor.

'Must' is debatable, here. With equal justification, one could say
that source that contains such lines 'must' be rejected for being
incompatible with the definition of the language it's supposed to be
written in...
Hans-Bernhard Broeker (
Even if all the snow were burnt, ashes would remain.
[What definition would that be? ANSI/ISO C certainly permits sizeof in
preprocessor expressions. -John]

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.