Changeset 7552 for src/Pugs/Internals.hs

Show
Ignore:
Timestamp:
10/11/05 00:56:12 (3 years ago)
Author:
autrijus
Message:

* finalize Parrot embedding properly and let it flush

correctly, by calling Parrot_exit at exit. leo++

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Internals.hs

    r7288 r7552  
    7373    warn, 
    7474    die, 
     75    _GlobalFinalizer, 
    7576) where 
    7677 
     
    8081import RRegex 
    8182import RRegex.Syntax 
     83import Data.IORef 
    8284import Data.Dynamic 
    8385import Data.Array (elems) 
     
    313315    Just "0"    -> False 
    314316    _           -> True 
     317 
     318{-# NOINLINE _GlobalFinalizer #-} 
     319_GlobalFinalizer :: IORef (IO ()) 
     320_GlobalFinalizer = unsafePerformIO $ newIORef (return ())