* deflex.l (YY_NO_UNPUT): Define.
authorAlan Modra <amodra@gmail.com>
Thu, 17 Feb 2005 12:59:59 +0000 (12:59 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 17 Feb 2005 12:59:59 +0000 (12:59 +0000)
* rclex.l (YY_NO_UNPUT): Define.
* rcparse.y (null_unichar): New static var.
(res_null_text): Use it rather than attempting to init from wchar_t.
* windres.c: Include assert.h and time.h before getopt.h.
Include config.h and unistd.h too.

binutils/ChangeLog
binutils/deflex.l
binutils/rclex.l
binutils/rcparse.y
binutils/windres.c

index 3363eb620e7ec99d457b174e035b36068efd1185..98fbca8f5547fa4de7aec57c8be39bad4b189589 100644 (file)
@@ -1,3 +1,12 @@
+2005-02-17  Alan Modra  <amodra@bigpond.net.au>
+
+       * deflex.l (YY_NO_UNPUT): Define.
+       * rclex.l (YY_NO_UNPUT): Define.
+       * rcparse.y (null_unichar): New static var.
+       (res_null_text): Use it rather than attempting to init from wchar_t.
+       * windres.c: Include assert.h and time.h before getopt.h.
+       Include config.h and unistd.h too.
+
 2005-02-15  Nick Clifton  <nickc@redhat.com>
 
        * nlmconv.c: Provide a full prototype for the localtime() function
index bdf15d3a12efc84c23b22448ef26e6d35bd77b80..b86748a073a1df002c3b15f1870b112f437a3c4f 100644 (file)
@@ -27,6 +27,8 @@
 #include "defparse.h"
 #include "dlltool.h"
 
+#define YY_NO_UNPUT
+
 int linenumber;
 
 %}
index 2735cc18aca2ed39c1ba9da0dfb5b66b866304e7..0afad4d532bff8e9cfe97a28467de0088a98862e 100644 (file)
@@ -32,6 +32,8 @@
 
 #include <assert.h>
 
+#define YY_NO_UNPUT
+
 /* Whether we are in rcdata mode, in which we returns the lengths of
    strings.  */
 
index 98ad3c8b58b3f2722a9a99ddccc770b70df43fee..c913022f9af75414a1b68deb8b8d97d27988c189 100644 (file)
@@ -54,10 +54,11 @@ static unsigned long base_style;
 static unsigned long default_style;
 static unsigned long class;
 static struct res_id res_text_field;
+static unichar null_unichar;
 
 /* This is used for COMBOBOX, LISTBOX and EDITTEXT which
    do not allow resource 'text' field in control definition. */
-static const struct res_id res_null_text = { 1, {{0, L""}}};
+static const struct res_id res_null_text = { 1, {{0, &null_unichar}}};
 
 %}
 
index 5b7fdf1b17fbd0ca8a35a1a746161464c6d9fe29..b6006111d71ca7eb6bd1a7a414c1a5dd947def1c 100644 (file)
 
    * The res2coff program, written by Pedro A. Aranda <paag@tid.es>.  */
 
+#include "config.h"
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#include <assert.h>
+#include <time.h>
 #include "bfd.h"
 #include "getopt.h"
 #include "bucomm.h"
@@ -41,8 +47,6 @@
 #include "safe-ctype.h"
 #include "obstack.h"
 #include "windres.h"
-#include <assert.h>
-#include <time.h>
 
 /* Used by resrc.c at least.  */
 
This page took 0.028384 seconds and 4 git commands to generate.