diff options
author | Charles Bailey <bailey@newman.upenn.edu> | 1999-03-26 20:16:51 -0400 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-05-05 17:17:34 +0000 |
commit | f675dbe55e4c9b649da40044a07fead21738b070 (patch) | |
tree | a14c20a68a86c8e771eaed062b2d300af8a1101b /util.c | |
parent | 5311ebfa4a0d242cabb33e39a939e0a9c15a8d29 (diff) | |
download | perl-f675dbe55e4c9b649da40044a07fead21738b070.tar.gz |
applied non-conflicting parts of suggested patch
Message-id: <01J9AZY8I2PW001O2S@mail.newman.upenn.edu>
Subject: [Patch 5.005_56] Revised VMS patch
p4raw-id: //depot/perl@3306
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -3026,6 +3026,21 @@ 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; + } +} +#endif + MGVTBL* get_vtbl(int vtbl_id) |