summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--ChangeLog5
-rw-r--r--parser.y3
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3afe57dc..c39081c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2009-11-25 Kaz Kylheku <kkylheku@gmail.com>
+ * parser.y (grammar): Fixes for bison 2.4.1. Remove superfluous action
+ in chrlit. Include <stdlib.h> for abort.
+
+2009-11-25 Kaz Kylheku <kkylheku@gmail.com>
+
Refinements to Valgrind support.
* gc.c (mark_mem_region): If a pointer from the stack is valid
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 "