Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parenthesizing the -1 in the declaration of EOF ensures that the macro expansion is evaluated correctly. Note that this example also violates DCL00-A. Declare immutable values using enum or const.

Code Block
#define EOF (-1)

...