summaryrefslogtreecommitdiffstats
path: root/parser.l
diff options
context:
space:
mode:
Diffstat (limited to 'parser.l')
-rw-r--r--parser.l13
1 files changed, 4 insertions, 9 deletions
diff --git a/parser.l b/parser.l
index 2ab713ab..bdac7a6a 100644
--- a/parser.l
+++ b/parser.l
@@ -52,15 +52,10 @@
#define YY_INPUT(buf, result, max_size) \
do { \
- val c = nil; \
- size_t n; \
- int ch = '*'; \
- for (n = 0; n < max_size && \
- (c = get_byte(yyin_stream)) && \
- (ch = c_num(c)) != '\n'; ++n) \
- buf[n] = (char) ch; \
- if (ch == '\n') \
- buf[n++] = (char) ch; \
+ val c = get_byte(yyin_stream); \
+ int n = 0; \
+ if (c) \
+ buf[n++] = (char) c_num(c); \
result = n; \
} while (0)