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 Thu, May 09, 2013 at 03:03:13PM +0530, Siddhesh Poyarekar wrote:
> 
> It might also be a good idea to typedef the enum as glibc_env_t (or
> similar) and enforce that on users of the function instead of
> accepting any int.
> 

Sorry, I realized that sentence didn't make much sense.  Let me try
again:

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.

Siddhesh


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