From: Ian Lance Taylor Date: Mon, 22 Dec 1997 08:29:28 +0000 (+0000) Subject: * rclex.l: Don't permit a comma in a STRING. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=999539b55949bf5ce1acb1bfae87c8212ad6c9b2;p=binutils-gdb.git * rclex.l: Don't permit a comma in a STRING. * rcparse.y (acc_entry): Warn if an inappropriate modifier is used with a non VIRTKEY. (acc_event): For a control character, set VIRTKEY, and force the character to uppercase. (acc_options): Don't require a comma separator. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index d1a74a78f33..a930df175cb 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,24 @@ +Mon Dec 22 11:27:22 1997 Ian Lance Taylor + + * rclex.l: Don't permit a comma in a STRING. + * rcparse.y (acc_entry): Warn if an inappropriate modifier is used + with a non VIRTKEY. + (acc_event): For a control character, set VIRTKEY, and force the + character to uppercase. + (acc_options): Don't require a comma separator. + +Tue Dec 9 13:25:42 1997 Michael Meissner + + * size.c (size_number): New function to provide size of field. + ({l,r}print_number): For octal and hex fields, print field using + '0' and '0x' suffixes. Do not include following tab. + (sysv_internal_sizer): Size section name, section size, and vma + address fields. + (sysv_internal_printer): Use calculated sizes for the columns. + (print_sysv_format): Size columns before printing. + (print_berkeley_format): Print tabs between numbers now that + {l,r}print_number doesn't. Print fields right justified. + Mon Dec 8 11:22:04 1997 Nick Clifton * objdump.c (objdump_print_addr_with_sym): Remove call to diff --git a/binutils/rclex.l b/binutils/rclex.l index 427ef2abaa1..d84ec473def 100644 --- a/binutils/rclex.l +++ b/binutils/rclex.l @@ -195,9 +195,15 @@ static char *get_string PARAMS ((int)); } } -[A-Za-z][^ \t\r\n]* { +[A-Za-z][^ ,\t\r\n]* { char *s; + /* I rejected comma in a string in order to + handle VIRTKEY, CONTROL in an accelerator + resource. This means that an unquoted + file name can not contain a comma. I + don't know what rc permits. */ + s = get_string (strlen (yytext) + 1); strcpy (s, yytext); yylval.s = s;