projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make hsc2hs emit the full path name in {-# LINE #-} pagmas.
[ghc-hetmet.git]
/
ghc
/
utils
/
hsc2hs
/
Main.hs
diff --git
a/ghc/utils/hsc2hs/Main.hs
b/ghc/utils/hsc2hs/Main.hs
index
e8b759e
..
4b39e4a
100644
(file)
--- a/
ghc/utils/hsc2hs/Main.hs
+++ b/
ghc/utils/hsc2hs/Main.hs
@@
-871,7
+871,7
@@
outCLine (SourcePos name line) =
outHsLine :: SourcePos -> String
outHsLine (SourcePos name line) =
" hsc_line ("++show (line + 1)++", \""++
- showCString (snd (splitName name))++"\");\n"
+ showCString name++"\");\n"
showCString :: String -> String
showCString = concatMap showCChar