diff options
author | Geoffrey Keating <geoffk@geoffk.org> | 2001-06-29 00:09:16 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@geoffk.org> | 2001-06-29 00:09:16 +0000 |
commit | 5e91c3b4311049f4ef00ded805872c282810c5c4 (patch) | |
tree | 729326c7910c8526d49fc323783f5b4314cd05a7 /opcodes/cgen-opc.c | |
parent | 461b96748f7bf61694e6feafd56d098546ac84a9 (diff) | |
download | gdb-5e91c3b4311049f4ef00ded805872c282810c5c4.zip gdb-5e91c3b4311049f4ef00ded805872c282810c5c4.tar.gz gdb-5e91c3b4311049f4ef00ded805872c282810c5c4.tar.bz2 |
* cgen-asm.c (cgen_parse_keyword): Allow any first character.
* cgen-opc.c (cgen_keyword_add): Ignore special first
character when building nonalpha_chars field.
Diffstat (limited to 'opcodes/cgen-opc.c')
-rw-r--r-- | opcodes/cgen-opc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/cgen-opc.c b/opcodes/cgen-opc.c index f159943..188a157 100644 --- a/opcodes/cgen-opc.c +++ b/opcodes/cgen-opc.c @@ -134,7 +134,7 @@ cgen_keyword_add (kt, ke) if (ke->name[0] == 0) kt->null_entry = ke; - for (i = 0; i < strlen (ke->name); i++) + for (i = 1; i < strlen (ke->name); i++) if (! isalnum ((unsigned char) ke->name[i]) && ! strchr (kt->nonalpha_chars, ke->name[i])) { |