This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hi!
ISO C99 states in 7.1.4.1:
All object-like macros listed as expanding to integer constant expressions
shall additionally be suitable for use in #if preprocessing directives.
I'm not entirely sure if this allows them to be defined as they sometimes
are in glibc headers, ie.
enum {
FE_INEXACT = 0x??
#define FE_INEXACT FE_INEXACT
};
, see http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=44520
because they can then be only used in #if preprocessing directives when
testing if they are defined, not to check their value (and I don't see why
ISO C99 would explicitely state it when all macros are suitable for use in
#ifdef resp #if defined() preprocessing directives).
Ideas?
Jakub
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |