projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2539077
)
[project @ 2004-11-22 16:42:21 by simonmar]
author
simonmar
<unknown>
Mon, 22 Nov 2004 16:42:21 +0000
(16:42 +0000)
committer
simonmar
<unknown>
Mon, 22 Nov 2004 16:42:21 +0000
(16:42 +0000)
\r is whitespace
ghc/utils/unlit/unlit.c
patch
|
blob
|
history
diff --git
a/ghc/utils/unlit/unlit.c
b/ghc/utils/unlit/unlit.c
index
769707e
..
7ab2932
100644
(file)
--- a/
ghc/utils/unlit/unlit.c
+++ b/
ghc/utils/unlit/unlit.c
@@
-69,7
+69,7
@@
#endif
typedef enum { START, BLANK, TEXT, DEFN, BEGIN, /*PSEUDO,*/ END, HASH, SHEBANG } line;
-#define isWhitespace(c) (c==' ' || c=='\t')
+#define isWhitespace(c) (c==' ' || c=='\t' || c=='\r')
#define isLineTerm(c) (c=='\n' || c==EOF)
static int noisy = 1; /* 0 => keep quiet about errors, 1 => report errors */