Show
Ignore:
Timestamp:
10/11/06 05:36:36 (2 years ago)
Author:
audreyt
Message:

* Rationalize Perl5 embedding's GC interface by passing

StablePtr? instead of Ptr around, as well as _not_ placing
GC burden on VError{} and VUndef, as they should be all
referring to a static &PL_sv_undef now.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Parser/Charnames.hs

    r13811 r14214  
    1616nameToCode :: String -> Maybe Int 
    1717nameToCode name = inlinePerformIO $ do 
    18     envSV   <- mkVal () 
    19     sv      <- evalPerl5 ("use utf8; use charnames ':full'; ord(qq[\\N{"++name++"}])") envSV 1 
     18    sv      <- evalPerl5 ("use utf8; use charnames ':full'; ord(qq[\\N{"++name++"}])") nullEnv 1 
    2019    svToVInt sv >>= \iv -> case iv of 
    2120        0 -> svToVStr sv >>= \pv -> case pv of