Changeset 8902 for src/Pugs/Embed
- Timestamp:
- 02/01/06 14:58:31 (3 years ago)
- Files:
-
- 1 modified
-
src/Pugs/Embed/Parrot.hsc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Embed/Parrot.hsc
r8900 r8902 55 55 args <- getEnv "PUGS_PARROT_OPTS" 56 56 let args' | isJust args && fromJust args /= "" = fromJust args 57 | otherwise = "- C"57 | otherwise = "-f" 58 58 rawSystem cmd [args', file] 59 59 return () … … 145 145 import Foreign.C.String 146 146 import Foreign.Storable 147 -- import Foreign.StablePtr 147 148 import System.IO.Unsafe 148 149 import System.Directory … … 173 174 interp <- parrot_new nullPtr 174 175 writeIORef _ParrotInterp interp 175 #ifdef XXX_ENABLE_PARROT_RUNCORES 176 #if PARROT_JIT_CAPABLE && defined(PARROT_JIT_CORE) 176 #if XXX_ENABLE_PARROT_JIT && PARROT_JIT_CAPABLE && defined(PARROT_JIT_CORE) 177 177 parrot_set_run_core interp PARROT_JIT_CORE 178 #elsif defined(PARROT_FAST_CORE) 179 parrot_set_run_core interp PARROT_FAST_CORE 180 #elsif defined(PARROT_CGP_CORE) 181 parrot_set_run_core interp PARROT_CGP_CORE 178 182 #elsif defined(PARROT_CGOTO_CORE) 179 183 parrot_set_run_core interp PARROT_CGOTO_CORE 180 #elsif defined(PARROT_CGP_CORE)181 parrot_set_run_core interp PARROT_CGP_CORE182 #endif183 184 #endif 184 185 -- parrot_set_debug interp 0x20 186 -- ptr <- newStablePtr _ParrotInterp 187 -- parrot_init_stacktop interp (castStablePtrToPtr ptr) 188 parrot_init interp 185 189 parrot_imcc_init interp 186 190 … … 266 270 parrot_init :: ParrotInterp -> IO () 267 271 272 foreign import ccall "Parrot_init_stacktop" 273 parrot_init_stacktop :: ParrotInterp -> Ptr () -> IO () 274 268 275 foreign import ccall "Parrot_readbc" 269 276 parrot_readbc :: ParrotInterp -> CString -> IO ParrotPackFile
