From: Ian Lance Taylor Date: Tue, 2 Dec 1997 18:11:02 +0000 (+0000) Subject: * windres.h (ESCAPE_*): Define standard escape sequences. X-Git-Tag: gdb-4_18~4127 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0270c560970dc57bc5de15dd68ee50ad112ee523;p=platform%2Fupstream%2Fbinutils.git * 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. --- 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 + + * 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 + + * 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 + + * 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 (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 +Fri Oct 10 14:13:09 1997 Richard Henderson * 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 != '"')