develooper Front page | perl.perl6.internals | Postings from September 2005

[perl #30631] [PATCH] Iterator support for Env PMC

Bernhard Schmalhofer via RT
September 11, 2005 06:19
[perl #30631] [PATCH] Iterator support for Env PMC
Message ID:
> Matt Kennedy <> 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 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

/* */ Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About