httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <>
Subject Re: _foo in macros
Date Fri, 10 Apr 1998 22:47:16 GMT
Yep _* is reserved everywhere.  There's an example that I can't recall
offhand which shows why macro args need to have their own namespace...
maybe someone else can remember it.  I think it's something along the
lines of:

#define _a foo

and then some variant on a macro using _a as an arg will fail to expand

But normally folks don't worry about it.

A similar problem exists with argument names in extern prototype
declarations in .h files.


On Fri, 10 Apr 1998, Marc Slemko wrote:

> #define ap_select(_a, _b, _c, _d, _e)   \
>     select((_a), (int *)(_b), (int *)(_c), (int *)(_d), (_e))
> #else
> #define ap_select       select
> #endif
> Is _* reserved in macros too?  It isn't a big deal, and I have trouble
> seeing how it could ever hurt anything, but I prefer to stay away from _*
> everywhere on the principle of the thing... 

View raw message