summaryrefslogtreecommitdiff
path: root/opcodes/cgen-opc.c
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@geoffk.org>2001-06-29 00:09:16 +0000
committerGeoffrey Keating <geoffk@geoffk.org>2001-06-29 00:09:16 +0000
commit4d500e0c99ae74acc2bf2f45c688ef6551045cd7 (patch)
tree6a9170f3f3d1d2689ccdfd42eab704b926569ad6 /opcodes/cgen-opc.c
parentebe7abe2d7dfa46fa2304092fa218ac8eeb5d394 (diff)
downloadgdb-4d500e0c99ae74acc2bf2f45c688ef6551045cd7.tar.gz
* 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/cgen-opc.c b/opcodes/cgen-opc.c
index f159943fa32..188a157f3a1 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]))
{