summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-11-25 14:49:12 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-11-25 14:49:12 -0800
commit1dc59ff8a80f2635785bef5c50fb3f7e815f060d (patch)
tree27c48721eecf6c3f05a110b89f47d90fe8e45b57
parent77ba4b9b21422d440564c9975ff22abd7c1ada82 (diff)
downloadtxr-1dc59ff8a80f2635785bef5c50fb3f7e815f060d.tar.gz
txr-1dc59ff8a80f2635785bef5c50fb3f7e815f060d.tar.bz2
txr-1dc59ff8a80f2635785bef5c50fb3f7e815f060d.zip
Fix a build breakage that may happen on some platforms.
The parser.y file includes "utf8.h", which uses the the type wint_t. It also includes "lib.h" which uses "wchar_t". But it fails to include any headers which define these types. The generated y.tab.c picks up wchar_t by the Bison-inserted inclusion of <stdlib.h>, so that's how we got that. But wint_t does not come from any of the headers---if they are standard-conforming.
-rw-r--r--ChangeLog12
-rw-r--r--parser.y2
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2f51b4c9..137aa61a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,17 @@
2009-11-25 Kaz Kylheku <kkylheku@gmail.com>
+ Fix a build breakage that may happen on some platforms.
+ The parser.y file includes "utf8.h", which uses the the type wint_t.
+ It also includes "lib.h" which uses "wchar_t". But it fails
+ to include any headers which define these types.
+ The generated y.tab.c picks up wchar_t by the Bison-inserted
+ inclusion of <stdlib.h>, so that's how we got that. But wint_t does not
+ come from any of the headers---if they are standard-conforming.
+
+ * parser.y: Add inclusion of <stddef.h> and <wchar.h>.
+
+2009-11-25 Kaz Kylheku <kkylheku@gmail.com>
+
More valgrind integration. Vector objects keep displaced pointers
to vector data; they point to element 0 which is actually the third
element of the vector. If an object is only referenced by interior
diff --git a/parser.y b/parser.y
index c5d5f9fd..b1242251 100644
--- a/parser.y
+++ b/parser.y
@@ -30,6 +30,8 @@
#include <assert.h>
#include <limits.h>
#include <dirent.h>
+#include <stddef.h>
+#include <wchar.h>
#include "config.h"
#include "lib.h"
#include "regex.h"