Show
Ignore:
Timestamp:
05/25/05 03:49:22 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
5385
Message:

* SV stringification!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Embed/Perl5.hs

    r3850 r3852  
    1818freePerl5 :: PerlInterpreter -> IO () 
    1919freePerl5 _ = return () 
     20 
     21svToVStr :: PerlSV -> IO a 
     22svToVStr _ = fail "not implemented" 
    2023 
    2124#else 
     
    4548foreign import ccall "perl.h boot_DynaLoader" 
    4649    boot_DynaLoader :: Ptr () -> IO () 
     50foreign import ccall "perl5.h perl5_SvPV" 
     51    perl5_SvPV :: PerlSV -> IO CString 
    4752foreign import ccall "perl5.h perl5_init" 
    4853    perl5_init :: CInt -> Ptr CString -> IO PerlInterpreter 
     
    5358        withArray [prog, prog, cstr] $ \argv -> do 
    5459            perl5_init 3 argv 
     60 
     61svToVStr :: PerlSV -> IO String 
     62svToVStr sv = peekCString =<< perl5_SvPV sv 
    5563 
    5664evalPerl5 :: String -> IO PerlSV