diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-05-11 09:34:13 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-05-11 09:34:13 +0000 |
commit | a6c403648ecd5cc72235fdb1e7535523a8ff2ac9 (patch) | |
tree | ae379cb0349ea1800627a86bc0ddf04fea4403ec /util.c | |
parent | 312caa8e97f1c7ee342a9895c2f0e749625b4929 (diff) | |
download | perl-a6c403648ecd5cc72235fdb1e7535523a8ff2ac9.tar.gz |
various fixes for clean build and test on win32; configpm broken,
needed to open myconfig.SH rather than myconfig; sundry adjustments
to bytecode stuff; tweaks to DYNAMIC_ENV_FETCH code to make it
work under win32; getenv_sv() changed to getenv_len() since SVs
aren't visible in the lower echelons; remove bogus exports from
config.sym; PERL_OBJECT-ness for C++ exception support; null out
IoDIRP in filter_del() or sv_free() will attempt to close it
p4raw-id: //depot/perl@3387
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 20 |
1 files changed, 8 insertions, 12 deletions
@@ -3079,18 +3079,14 @@ get_specialsv_list(void) return PL_specialsv_list; } -#ifndef HAS_GETENV_SV -SV * -getenv_sv(char *env_elem) -{ - char *env_trans; - SV *temp_sv; - if ((env_trans = PerlEnv_getenv(env_elem)) != Nullch) { - temp_sv = newSVpv(env_trans, strlen(env_trans)); - return temp_sv; - } else { - return &PL_sv_undef; - } +#ifndef HAS_GETENV_LEN +char * +getenv_len(char *env_elem, unsigned long *len) +{ + char *env_trans = PerlEnv_getenv(env_elem); + if (env_trans) + *len = strlen(env_trans); + return env_trans; } #endif |