[project @ 2004-11-22 16:42:21 by simonmar]
authorsimonmar <unknown>
Mon, 22 Nov 2004 16:42:21 +0000 (16:42 +0000)
committersimonmar <unknown>
Mon, 22 Nov 2004 16:42:21 +0000 (16:42 +0000)
\r is whitespace

ghc/utils/unlit/unlit.c

index 769707e..7ab2932 100644 (file)
@@ -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 */