summaryrefslogtreecommitdiffstats
path: root/parser.l
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-11-04 11:59:57 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-11-04 11:59:57 -0800
commit9dca18dfee0c596c231b762c945a14baa8d8da94 (patch)
treeb30923836e27b4bdacde35bb06f636d6c35ba2f0 /parser.l
parentd817b323e04fa8598578508a668b49fd51953fc6 (diff)
downloadtxr-9dca18dfee0c596c231b762c945a14baa8d8da94.tar.gz
txr-9dca18dfee0c596c231b762c945a14baa8d8da94.tar.bz2
txr-9dca18dfee0c596c231b762c945a14baa8d8da94.zip
Kill tabs with spaces (how did they sneak in?).
Fix possible use of uninitialized ch.
Diffstat (limited to 'parser.l')
-rw-r--r--parser.l24
1 files changed, 12 insertions, 12 deletions
diff --git a/parser.l b/parser.l
index 7a5f0c17..d35c23ad 100644
--- a/parser.l
+++ b/parser.l
@@ -41,18 +41,18 @@
#define YY_NO_UNPUT
-#define YY_INPUT(buf, result, max_size) \
- do { \
- obj_t *c = nil; \
- int n, ch; \
- for (n = 0; n < max_size && \
- (c = get_char(yyin_stream)) && \
- (ch = c_chr(c)) != '\n'; ++n) \
- buf[n] = (char) ch; \
- if (ch == '\n') \
- buf[n++] = (char) ch; \
- result = n; \
- } while (0)
+#define YY_INPUT(buf, result, max_size) \
+ do { \
+ obj_t *c = nil; \
+ int n, ch = '*'; \
+ for (n = 0; n < max_size && \
+ (c = get_char(yyin_stream)) && \
+ (ch = c_chr(c)) != '\n'; ++n) \
+ buf[n] = (char) ch; \
+ if (ch == '\n') \
+ buf[n++] = (char) ch; \
+ result = n; \
+ } while (0)
obj_t *yyin_stream;