Changeset 4915

Show
Ignore:
Timestamp:
06/22/05 21:02:52 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
6641
Message:

* make pirsmoke is now a reality...

Location:
src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/Main.hs

    r4914 r4915  
    324324    expandInc :: [FilePath] -> String -> IO String 
    325325    expandInc incs str = case breakOnGlue "\nuse " str of 
    326         Nothing -> return str 
     326        Nothing -> case breakOnGlue "\nrequire " str of 
     327            Nothing -> return str 
     328            Just (pre, post) -> do 
     329                let (mod, (_:rest)) = span (/= ';') (dropWhile isSpace post) 
     330                mod'    <- includeInc incs mod 
     331                rest'   <- expandInc incs rest 
     332                return $ pre ++ mod' ++ rest' 
    327333        Just (pre, post) -> do 
    328334            let (mod, (_:rest)) = span isAlphaNum (dropWhile isSpace post) 
  • src/Pugs/Compile.hs

    r4913 r4915  
    11{-# OPTIONS_GHC -fglasgow-exts -fallow-undecidable-instances -fno-warn-orphans -funbox-strict-fields -cpp #-} 
     2{-# OPTIONS_GHC -#include "UnicodeC.h" #-} 
    23 
    34{-|