aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-12-02 18:11:02 +0000
committerIan Lance Taylor <ian@airs.com>1997-12-02 18:11:02 +0000
commit0270c560970dc57bc5de15dd68ee50ad112ee523 (patch)
tree43aee79b0cf6773387e98cecdd1d35178382f74c
parent28b6fd89dd535c8fd4ed496bea6352d16eb9d9c4 (diff)
downloadgdb-0270c560970dc57bc5de15dd68ee50ad112ee523.zip
gdb-0270c560970dc57bc5de15dd68ee50ad112ee523.tar.gz
gdb-0270c560970dc57bc5de15dd68ee50ad112ee523.tar.bz2
* windres.h (ESCAPE_*): Define standard escape sequences.
* rclex.l (handle_quotes): Handle standard escape sequences. Warn about an unrecognized escape character. * windres.c (unicode_print): Print standard escape sequences. * rcparse.y (acc_event): Initialize $$.next. * resbin.c (bin_to_res_menuitems): Don't set MENUITEM_POPUP or MENUITEM_ENDMENU in the menu item flags. (bin_to_res_accelerators): Allocate a structure (the old code never worked). (res_to_bin_accelerator): Correct the test for setting ACC_LAST. (res_to_bin_dialog): Save the extended style rather than saving the style twice. Remove useless shadowing length variable. Set the length of control data correctly. * resrc.c (write_rc_dialog): Don't print the class or menu if the string length is zero.
-rw-r--r--binutils/ChangeLog30
-rw-r--r--binutils/rclex.l41
2 files changed, 70 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index c3c6a04..978b100 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,31 @@
+Tue Dec 2 13:06:46 1997 Ian Lance Taylor <ian@cygnus.com>
+
+ * windres.h (ESCAPE_*): Define standard escape sequences.
+ * rclex.l (handle_quotes): Handle standard escape sequences. Warn
+ about an unrecognized escape character.
+ * windres.c (unicode_print): Print standard escape sequences.
+ * rcparse.y (acc_event): Initialize $$.next.
+ * resbin.c (bin_to_res_menuitems): Don't set MENUITEM_POPUP or
+ MENUITEM_ENDMENU in the menu item flags.
+ (bin_to_res_accelerators): Allocate a structure (the old code
+ never worked).
+ (res_to_bin_accelerator): Correct the test for setting ACC_LAST.
+ (res_to_bin_dialog): Save the extended style rather than saving
+ the style twice. Remove useless shadowing length variable. Set
+ the length of control data correctly.
+ * resrc.c (write_rc_dialog): Don't print the class or menu if the
+ string length is zero.
+
+Mon Nov 24 18:52:43 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * stabs.c (parse_stab_argtypes): Don't try to parse the name of a
+ destructor as mangled argument types.
+
+Mon Nov 10 17:51:41 1997 Gavin Koch <gavin@cygnus.com>
+
+ * addr2line.c (translate_addresses): Use bfd_scan_vma rather
+ than strtol to scan addresses.
+
Sun Nov 9 11:01:31 1997 Jeffrey A Law (law@cygnus.com)
* Makefile.am (bin_PROGRAMS): Don't use line continuations here.
@@ -33,7 +61,7 @@ Tue Oct 14 16:14:35 1997 Nick Clifton <nickc@cygnus.com>
(disassemble_data): Set the symbol_at_address_func field to point
to objdump_symbol_at_address.
-Fri Oct 10 14:13:09 1997 Ricahrd Henderson <rth@cygnus.com>
+Fri Oct 10 14:13:09 1997 Richard Henderson <rth@cygnus.com>
* objcopy.c, objcopy.1, binutils.texi: "localize" is a better name
than "privatize". Update all references.
diff --git a/binutils/rclex.l b/binutils/rclex.l
index b414210..427ef2a 100644
--- a/binutils/rclex.l
+++ b/binutils/rclex.l
@@ -291,6 +291,41 @@ handle_quotes (input, len)
rcparse_warning ("use \"\" to put \" in a string");
break;
+ case 'a':
+ *s++ = ESCAPE_A;
+ ++t;
+ break;
+
+ case 'b':
+ *s++ = ESCAPE_B;
+ ++t;
+ break;
+
+ case 'f':
+ *s++ = ESCAPE_F;
+ ++t;
+ break;
+
+ case 'n':
+ *s++ = ESCAPE_N;
+ ++t;
+ break;
+
+ case 'r':
+ *s++ = ESCAPE_R;
+ ++t;
+ break;
+
+ case 't':
+ *s++ = ESCAPE_T;
+ ++t;
+ break;
+
+ case 'v':
+ *s++ = ESCAPE_V;
+ ++t;
+ break;
+
case '\\':
*s++ = *t++;
break;
@@ -329,6 +364,12 @@ handle_quotes (input, len)
}
*s++ = ch;
break;
+
+ default:
+ rcparse_warning ("unrecognized escape sequence");
+ *s++ = '\\';
+ *s++ = *t++;
+ break;
}
}
else if (*t != '"')