> Matt Kennedy <[EMAIL PROTECTED]> wrote: > > > The attached env.patch patches classes/env.pmc to add vtable methods > > elements() and get_iter() and modifies get_string_keyed() to also > > accept integer keys so that it is possible to use an Iterator on the > > environment.
I have applied this patch and added implementation and tests for 'get_integer' and 'get_number'. > > ... The patch uses the char **environ variable The usage of 'char **environ' is only a little problematic. It seems to be speced in POSIX.1, but not in ISO-C. In http://search.cpan.org/~stas/Env-C-0.06/ there is only an include switch for _BORLANDC. It might be a good idea to provide wrappers in 'platform.c' for all functions accession 'environ'. The 'unsetenv'-problem, ticket 23025, is another issure related to 'environ'. -- /* [EMAIL PROTECTED] */