Changeset 3919 for src/perl5/perl5.c
- Timestamp:
- 05/26/05 23:10:37 (4 years ago)
- svk:copy_cache_prev:
- 5482
- Files:
-
- 1 modified
-
src/perl5/perl5.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/perl5/perl5.c
r3918 r3919 190 190 191 191 SV * 192 perl5_eval(char *code, int cxt)192 perl5_eval(char *code, SV *env, int cxt) 193 193 { 194 194 dSP; 195 SV* sv = newSVpv(code, 0); 196 195 SV* sv; 196 197 ENTER; 198 199 if (env != NULL) { 200 sv = get_sv("pugs::env", 1); 201 save_item(sv); 202 sv_setsv(sv, env); 203 } 204 205 sv = newSVpv(code, 0); 197 206 eval_sv(sv, cxt); 198 207 SvREFCNT_dec(sv); … … 200 209 SPAGAIN; 201 210 sv = POPs; 202 PUTBACK; 211 SvREFCNT_inc(sv); 212 PUTBACK; 213 214 FREETMPS; 215 LEAVE; 203 216 204 217 return sv;
