From d6d25f2043da6141ae2458e9546c32135efe75dc Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Tue, 11 Sep 2007 14:05:09 +0000 Subject: [PATCH] PR/5020: STRINGTABLE doesn't work in 2.18 windres. --- binutils/ChangeLog | 4 ++++ binutils/rcparse.y | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 5dcedfbbf79..f3438f13a09 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2007-09-11 Kai Tietz + + * rcparse.y: (string_data): Removed ill token removal. + 2007-09-10 Alan Modra PR 5011 diff --git a/binutils/rcparse.y b/binutils/rcparse.y index 64ea96603da..00a060d79d0 100644 --- a/binutils/rcparse.y +++ b/binutils/rcparse.y @@ -1263,17 +1263,18 @@ string_data: | string_data numexpr res_unicode_string_concat { define_stringtable (&sub_res_info, $2, $3); - if (yychar != YYEMPTY) - YYERROR; rcparse_discard_strings (); } | string_data numexpr ',' res_unicode_string_concat { define_stringtable (&sub_res_info, $2, $4); - if (yychar != YYEMPTY) - YYERROR; rcparse_discard_strings (); } + | string_data error + { + rcparse_warning (_("invalid stringtable resource.")); + abort (); + } ; rcdata_id: -- 2.30.2