delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/05/31/10:30:26

X-Authentication-Warning: acp3bf.physik.rwth-aachen.de: broeker owned process doing -bs
Date: Wed, 31 May 2000 16:30:06 +0200 (MET DST)
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
X-Sender: broeker AT acp3bf
To: djgpp-workers AT delorie DOT com
Subject: Re: __dosexec_find_on_path question
In-Reply-To: <3934E7C8.26244.7A952@localhost>
Message-ID: <Pine.LNX.4.10.10005311628020.30396-100000@acp3bf>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019