diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2009-11-25 14:49:12 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2009-11-25 14:49:12 -0800 |
commit | 1dc59ff8a80f2635785bef5c50fb3f7e815f060d (patch) | |
tree | 27c48721eecf6c3f05a110b89f47d90fe8e45b57 | |
parent | 77ba4b9b21422d440564c9975ff22abd7c1ada82 (diff) | |
download | txr-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-- | ChangeLog | 12 | ||||
-rw-r--r-- | parser.y | 2 |
2 files changed, 14 insertions, 0 deletions
@@ -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 @@ -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" |