summaryrefslogtreecommitdiffstats
path: root/parser.y
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-11-26 00:20:25 -0500
committerKaz Kylheku <kaz@kylheku.com>2009-11-26 00:20:25 -0500
commit863a20f1045b761ac65d7051bcca47e4eb01c81d (patch)
tree9fede0875182ea85cf8980e3330de6640d840ea3 /parser.y
parenta2dc66961f22df647e0428b1e12bae8a2922c503 (diff)
downloadtxr-863a20f1045b761ac65d7051bcca47e4eb01c81d.tar.gz
txr-863a20f1045b761ac65d7051bcca47e4eb01c81d.tar.bz2
txr-863a20f1045b761ac65d7051bcca47e4eb01c81d.zip
* parser.y (grammar): Fixes for bison 2.4.1. Remove superfluous action
in chrlit. Include <stdlib.h> for abort.
Diffstat (limited to 'parser.y')
-rw-r--r--parser.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/parser.y b/parser.y
index b1242251..abac6c00 100644
--- a/parser.y
+++ b/parser.y
@@ -30,7 +30,7 @@
#include <assert.h>
#include <limits.h>
#include <dirent.h>
-#include <stddef.h>
+#include <stdlib.h>
#include <wchar.h>
#include "config.h"
#include "lib.h"
@@ -515,7 +515,6 @@ strlit : '"' '"' { $$ = null_string; }
chrlit : '\'' '\'' { $$ = nil;
yyerror("empty character literal"); }
- { $$ = nil; }
| '\'' litchars '\'' { $$ = car($2);
if (cdr($2))
yyerror("multiple characters in "