Fixed strings passed on the command-line for defines
This commit is contained in:
parent
589a6380fb
commit
ed63476ad7
2
Main.hs
2
Main.hs
|
@ -143,7 +143,7 @@ optDefine s ps = return $ ps { csDefinitions = Map.insert name
|
||||||
( case filter (null . snd) $ reads (safeTail val) of
|
( case filter (null . snd) $ reads (safeTail val) of
|
||||||
((n::Integer, _) : _) -> PreprocInt $ show n
|
((n::Integer, _) : _) -> PreprocInt $ show n
|
||||||
[] | null val -> PreprocNothing
|
[] | null val -> PreprocNothing
|
||||||
| otherwise -> PreprocString $ safeTail val
|
| otherwise -> PreprocString $ "\"" ++ safeTail val ++ "\""
|
||||||
)
|
)
|
||||||
(csDefinitions ps) }
|
(csDefinitions ps) }
|
||||||
where
|
where
|
||||||
|
|
Loading…
Reference in New Issue
Block a user