Changeset 4915
- Timestamp:
- 06/22/05 21:02:52 (4 years ago)
- svk:copy_cache_prev:
- 6641
- Location:
- src
- Files:
-
- 2 modified
-
Main.hs (modified) (1 diff)
-
Pugs/Compile.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Main.hs
r4914 r4915 324 324 expandInc :: [FilePath] -> String -> IO String 325 325 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' 327 333 Just (pre, post) -> do 328 334 let (mod, (_:rest)) = span isAlphaNum (dropWhile isSpace post) -
src/Pugs/Compile.hs
r4913 r4915 1 1 {-# OPTIONS_GHC -fglasgow-exts -fallow-undecidable-instances -fno-warn-orphans -funbox-strict-fields -cpp #-} 2 {-# OPTIONS_GHC -#include "UnicodeC.h" #-} 2 3 3 4 {-|
