- Timestamp:
- 05/29/05 04:09:52 (4 years ago)
- svk:copy_cache_prev:
- 5515
- Files:
-
- 1 modified
-
src/perl5/perl5.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/perl5/perl5.c
r4052 r4086 216 216 SV *sv; 217 217 void *old_env = pugs_getenv(); 218 int count, i; 218 219 219 220 dSP; … … 234 235 235 236 if (inv != NULL) { 236 c all_method(SvPV_nolen(sub), cxt);237 count = call_method(SvPV_nolen(sub), cxt); 237 238 } 238 239 else { 239 c all_sv(sub, cxt);240 count = call_sv(sub, cxt); 240 241 } 241 242 242 243 SPAGAIN; 243 244 244 rv = newSVsv(POPs); 245 if (count == 1) { 246 rv = newSVsv(POPs); 247 } 248 else { 249 rv = (SV *)newAV(); 250 for (i=0; i<count; ++i) { 251 av_push ((AV *)rv, POPs); 252 } 253 } 245 254 246 255 PUTBACK;
