diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-12-22 08:29:28 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-12-22 08:29:28 +0000 |
commit | 999539b55949bf5ce1acb1bfae87c8212ad6c9b2 (patch) | |
tree | ea673c799d9e653f5d8c2b2188b2c6323e57af87 /binutils/rclex.l | |
parent | b9876b8e4c6000db6305efd05a975850b1ce8c20 (diff) | |
download | gdb-999539b55949bf5ce1acb1bfae87c8212ad6c9b2.zip gdb-999539b55949bf5ce1acb1bfae87c8212ad6c9b2.tar.gz gdb-999539b55949bf5ce1acb1bfae87c8212ad6c9b2.tar.bz2 |
* 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.
Diffstat (limited to 'binutils/rclex.l')
-rw-r--r-- | binutils/rclex.l | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/binutils/rclex.l b/binutils/rclex.l index 427ef2a..d84ec47 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; |