On Tue, Jun 27, 2000 at 06:14:31PM +0200, Alexander Langer wrote:
> Thus spake Dan Papasian ([EMAIL PROTECTED]):
> > > > + // un-needed.
> > > > + // memcpy(name_dir_end + 1, name_dir_end, strlen(name_dir_end) + 1);
> > > > + // *name_dir_end = 'r';
> > > Use /* */ comments or #if 0.
> > Actually, there was just a discussion on comp.lang.c about how
> > they aren't interchangable. The 'un-needed' part will have
> > to be commented with /* */ because the preprocessor will
> > parse tokens before it evaluates conditionals.
> Could you explain that paragraph? I really can't figure out what you
> try to say or what it has to do with my comment, respectively :)
Dan was just explaining that commenting a block of code out with
printf("This style of comment\n");
... is not equivalent to preventing the compilation of a block of code
using the preprocessor #if directive
... because the preprocessor still parses tokens inside the
conditionally compiled block, even if the code inside won't be
compiled, where in the former case it does not (the preprocessor
strips all comments before parsing tokens). It doesn't have anything
to do with what you were trying to explain. It was just an interesting
comment on comments.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message