Mail Archives: djgpp-workers/2000/05/31/10:30:26
On Wed, 31 May 2000, Mark E. wrote:
[...]
> I missed that, thanks. And I didn't get a warning. Yet when I tried to use
> constant integers (static const inst interp_flag_skip_search = 1), gcc told
> me the initializer wasn't constant.
A 'const int' is not an integer constant, in C. This comes as a surprise
to everyone facing it the first time, but it's a fact of life. If you want
a constant with a name in a C program, instead of a magic number, you need
to either #define it or use it as an enum member.
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -