Fixed strings passed on the command-line for defines

This commit is contained in:
Neil Brown 2009-05-19 13:28:39 +00:00
parent 589a6380fb
commit ed63476ad7

View File

@ -143,7 +143,7 @@ optDefine s ps = return $ ps { csDefinitions = Map.insert name
( case filter (null . snd) $ reads (safeTail val) of
((n::Integer, _) : _) -> PreprocInt $ show n
[] | null val -> PreprocNothing
| otherwise -> PreprocString $ safeTail val
| otherwise -> PreprocString $ "\"" ++ safeTail val ++ "\""
)
(csDefinitions ps) }
where