Changeset 21673 for src/perl5

Show
Ignore:
Timestamp:
08/01/08 13:56:05 (5 months ago)
Author:
audreyt
Message:

* Import Pugs 6.2.13.11 from Hackage into our source tree.
* Highlights:

  • Much faster startup time
  • Slightly faster compilation time (mostly due to refactored Pugs.AST.Internals)
  • Portable-to-Win32 readline thanks to Haskeline
Location:
src/perl5
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/perl5/p5embed.c

    r18681 r21673  
    304304#endif /* HAS_PROCSELFEXE */ 
    305305 
     306#    if defined(__APPLE__) 
     307#      include <crt_externs.h>  /* for the env array */ 
     308#      define p5embed_environ (*_NSGetEnviron()) 
     309#    else 
     310#      define p5embed_environ environ 
     311#    endif 
     312 
    306313PerlInterpreter * 
    307314perl5_init ( int argc, char **argv ) 
     
    314321#endif 
    315322#ifdef PERL_SYS_INIT3 
    316     PERL_SYS_INIT3(&argc,&argv,&environ); 
     323    PERL_SYS_INIT3(&argc,&argv,&p5embed_environ); 
    317324#endif 
    318325 
  • src/perl5/pugsembed.c

    r15675 r21673  
    126126{ 
    127127    SV** rv = hv_fetch(PL_modglobal, "PugsEnv", 7, 0); 
     128    IV tmp; 
    128129    if (rv == NULL) { 
    129130        Perl_croak(aTHX_ "PugsEnv uninitialized; please call pugs_setenv() first. (hate software so much.)"); 
    130131    } 
    131     IV tmp = SvIV((SV*)SvRV(*rv)); 
     132    tmp = SvIV((SV*)SvRV(*rv)); 
    132133    return ((Val *)tmp); 
    133134} 
     
    135136void pugs_setenv ( Val *env ) 
    136137{ 
     138    SV *sv; 
    137139    if (env == NULL) { return; } 
    138140 
    139     SV *sv = newSV(0); 
     141    sv = newSV(0); 
    140142    sv_setref_pv(sv, "pugs", env); 
    141143    hv_store(PL_modglobal, "PugsEnv", 7, sv, 0);