This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/9] Add vectorized getenv for glibc use
- From: Siddhesh Poyarekar <siddhesh dot poyarekar at gmail dot com>
- To: Andi Kleen <andi at firstfloor dot org>
- Cc: Siddhesh Poyarekar <siddhesh at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>, Andi Kleen <ak at linux dot intel dot com>
- Date: Thu, 9 May 2013 22:51:48 +0530
- Subject: Re: [PATCH 1/9] Add vectorized getenv for glibc use
- References: <1367537252-30831-1-git-send-email-andi at firstfloor dot org> <1367537252-30831-2-git-send-email-andi at firstfloor dot org> <20130509093313 dot GE19683 at spoyarek dot pnq dot redhat dot com> <20130509094849 dot GF19683 at spoyarek dot pnq dot redhat dot com> <20130509165747 dot GS17814 at two dot firstfloor dot org>
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