Ilya Zakharevich on Wed, 26 Jun 2002 15:35:41 -0400 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PATCH 2.2.2] mneumonics for flags |
On Wed, Jun 26, 2002 at 07:08:42PM +0200, Bill Allombert wrote: > > This is not what you wrote - and not what actually happens: with 'M' > > the compile-time optimization is possible, with 'G' not. > > You can do it in both cases. GP2C already do it for type values. > % echo 'type(x)=="STR"' | gp2c | grep STR > typ(x) == t_STR; The diffence is that in the former case no change to gp2c is needed when a new flag-capable function is coded. > Providing a interface definition via enum type or #define definition only > require an ANSI C compiler to have a translation between option name and > numerical value. How do you perform operations over enums with a check of validity of the operation? Ilya