This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/9] Add vectorized getenv for glibc use


On 9 May 2013 22:27, Andi Kleen <andi@firstfloor.org> wrote:
>> Having a typedef'd enum would be a good idea so that any future
>> function that accepts offsets into _dl_glibc_var can restrict values
>> to glibc_env_t rather than accepting any integer.
>
> That's not how C enums work.

Ugh, yes, that's how C++ enums work, not C.

Siddhesh
--
http://siddhesh.in


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]