Article View: comp.std.c
Article #1437Re: warning: '/*' within comment
From: Martin Weitzel
Date: Fri, 15 Jun 1990 09:22
Date: Fri, 15 Jun 1990 09:22
27 lines
1984 bytes
1984 bytes
In article <25176@rphroy.UUCP> tkacik@rphroy.uucp (Tom Tkacik) writes:
>
>In article <1777@tkou02.enet.dec.com>, diamond@tkou02.enet.dec.com
>(diamond@tkovoa) writes:
[refer to above article for deleted lines]
>
>The problem is the C's. If the preprocessor tokenizes, it will think that
>the 's is the start of 's'. It may issue an error about a missing
^^^
>closing quote. Even though the text is ignored, this must be analyzed.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Very true. I think this is what all related questions can be reduced to:
1) In ANSI-C there are certain "phases of translation" which (at least
logically) occur *before* parts of the source are "#if-ed out".
2) There are certain sequences of input characters which have to be
analized during this early phases and which would clearly be
erreneous *if* they would have to be fully compiled later.
Now: Is it "required", "unacceptable" or a "quality of implementation
issue", that such a sequence of characters in ignored parts of
the source makes the whole program not to compile?
Note that the answer to this must be known if you have to decide what
may follow a #pragma in a "conformant program". To my understanding
#pragma-s *are* allowed in such programs *if* they are enclosed in
some #if !(__STDC__ == 1) -- #endif context.
--
Martin Weitzel, email: martin@mwtech.UUCP, voice: 49-(0)6151-6 56 83
Technical Details
Message-ID:
<797@mwtech.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!unido!mikros!mwtech!martinReferences:
<1990Jun1.200433.6919@druid.uucp> <AaOZGd_00as98coVU9@andrew.cmu.edu> <16786@haddock.ima.isc.com> <371@necssd.NEC.COM> <1774@tkShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!unido!mikros!mwtech!martin From: martin@mwtech.UUCP (Martin Weitzel) Newsgroups: comp.std.c Subject: Re: warning: '/*' within comment Message-ID: <797@mwtech.UUCP> Date: 15 Jun 90 09:22:00 GMT References: <1990Jun1.200433.6919@druid.uucp> <AaOZGd_00as98coVU9@andrew.cmu.edu> <16786@haddock.ima.isc.com> <371@necssd.NEC.COM> <1774@tk Reply-To: martin@mwtech.UUCP (Martin Weitzel) Organization: MIKROS Systemware, Darmstadt/W-Germany Lines: 27