Changeset 7518 for src/Pugs/Embed
- Timestamp:
- 10/10/05 02:24:16 (3 years ago)
- Files:
-
- 1 modified
-
src/Pugs/Embed/Parrot.hsc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Embed/Parrot.hsc
r6793 r7518 186 186 cwd <- getCurrentDirectory 187 187 setCurrentDirectory path 188 evalParrot ".sub main\nload_bytecode 'PGE.pbc'\nload_bytecode 'PGE/Hs.pir'\n.end\n" 188 withCString "PGE.pbc" $ parrot_load_bytecode interp 189 withCString "PGE/Hs.pir" $ parrot_load_bytecode interp 189 190 setCurrentDirectory cwd 190 191 loadPGE interp path … … 264 265 parrot_compreg :: ParrotInterp -> ParrotString -> FunPtr ParrotCompilerFunc -> IO () 265 266 267 foreign import ccall "Parrot_load_bytecode" 268 parrot_load_bytecode :: ParrotInterp -> CString -> IO () 269 266 270 foreign import ccall "Parrot_call_sub" 267 271 parrot_call_sub_vv :: ParrotInterp -> ParrotPMC -> CString -> IO ()
