Changeset 7552 for src/Pugs/Embed
- Timestamp:
- 10/11/05 00:56:12 (3 years ago)
- Location:
- src/Pugs/Embed
- Files:
-
- 2 modified
-
Parrot.hsc (modified) (4 diffs)
-
Perl5.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Embed/Parrot.hsc
r7518 r7552 134 134 import System.IO.Unsafe 135 135 import System.Directory 136 import Pugs.Internals (_GlobalFinalizer) 136 137 137 138 type ParrotString = Ptr () … … 163 164 parrot_set_run_core interp PARROT_CGP_CORE 164 165 #endif 166 -- parrot_set_debug interp 0x20 165 167 parrot_imcc_init interp 166 168 callback <- mkCompileCallback compileToParrot … … 174 176 set_pf_cur_cs pf seg 175 177 parrot_loadbc interp pf 178 modifyIORef _GlobalFinalizer (>> parrot_exit 0) 176 179 return interp 177 180 … … 283 286 parrot_get_strreg :: ParrotInterp -> CInt -> IO ParrotString 284 287 288 foreign import ccall "Parrot_set_debug" 289 parrot_set_debug :: ParrotInterp -> CInt -> IO () 290 291 foreign import ccall "Parrot_exit" 292 parrot_exit :: CInt -> IO () 293 285 294 foreign import ccall "string_to_cstring" 286 295 parrot_string_to_cstring :: ParrotInterp -> ParrotString -> IO CString -
src/Pugs/Embed/Perl5.hs
r7413 r7552 135 135 Just val -> pugs_setenv =<< mkVal val 136 136 Nothing -> return () 137 modifyIORef _GlobalFinalizer (>> perl_free interp) 137 138 return interp 138 139
