Comments and pragma lines
Stephen J. Friedl
friedl at vsi.COM
Wed Nov 30 11:53:56 AEST 1988
In article <48957 at pyramid.pyramid.com>, markhall at pyramid.pyramid.com (Mark Hall) writes:
> Is it legal to start the comment on the pragma line? From what I read
> in the standard, it is illegal.
Comments are removed before any preprocessing directives are recognized, so
#pragma foo /* comment
goes
here */
removes the entire comment before the #pragma is seen. This comes from
section 2.1.1.2, `Translation Phases' (page 6 of the May88 dpANS).
Steve
---
Stephen J. Friedl 3B2-kind-of-guy friedl at vsi.com
V-Systems, Inc. attmail!vsi!friedl
Santa Ana, CA USA +1 714 545 6442 {backbones}!vsi!friedl
---------Nancy Reagan on cutting the grass: "Just say mow"--------
More information about the Comp.std.c
mailing list