how about RN and Interactive?

Jim Sullivan jim at hcr.UUCP
Thu Aug 31 23:32:09 AEST 1989


In article <2071 at kodak.UUCP> mark at kodak.UUCP () writes:
>Not liking readnews, we wanted to compile the rn package.  I can tell you that
>there were lots of problems. We were able to fix most of them but the following
>error has us stimied:
>
>
>ngdata.c: 132: extra tokens (ignored) after directive
>ngdata.c: 141: extra tokens (ignored) after directive
>ngdata.c: 168: extra tokens (ignored) after directive
>ngdata.c: 177: extra tokens (ignored) after directive

This message is produced when the pre-processor encounters a directive with
extra tokens at the end (oh, really? :-).  This is the result of a change in
the pre-processor from previous releases.

In previous releases of the pre-processor, the construct:

#ifdef i386
code
code
code
#endif i386

was legal.  The offending line in the current pre-processor is the "#endif i386"
line.  "i386" is considered a token and the "#endif" directive does not take
and extra tokens so the error message gets printed.  I guess that someone in
ANSI though that extra tokens were evil and should be removed (I agree
actually).  The construct is often used in large programs with many #ifdefs
to indicate where an #ifdef for a particular #define ends. The correct form is:

#endif /* i386 */

So you can ignore the extra token messages or write a awk script to change
them into legal #endif statements (this exercise is left to the user)

>"ngdata.c", line 187: syntax error
>"ngdata.c", line 194: dirp undefined
>"ngdata.c", line 197: warning: illegal pointer/integer combination, op =
>

I think that this is a syntax error :-)

Jim Sullivan



More information about the Comp.unix.i386 mailing list