diff options
Diffstat (limited to 'command.y')
-rw-r--r-- | command.y | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -286,7 +286,7 @@ command | control_cmd opt_plus_integer | frame_cmd opt_integer { - if (cmdtab[cmd_idx].class == D_FRAME + if (cmdtab[cmd_idx].lex_class == D_FRAME && $2 != NULL && $2->a_int < 0) yyerror(_("invalid frame number: %d"), $2->a_int); } @@ -1096,7 +1096,7 @@ again: add_history(h->line); #endif cmd_idx = repeat_idx; - return cmdtab[cmd_idx].class; /* repeat last command */ + return cmdtab[cmd_idx].lex_class; /* repeat last command */ } repeat_idx = -1; } @@ -1156,7 +1156,7 @@ again: arg->a_string = estrdup(lexptr_begin, lexend - lexptr_begin); append_cmdarg(arg); } - return cmdtab[cmd_idx].class; + return cmdtab[cmd_idx].lex_class; } else { yyerror(_("unknown command - `%.*s', try help"), toklen, tokstart); return '\n'; @@ -1417,7 +1417,7 @@ concat_args(CMDARG *arg, int count) static int find_command(const char *token, size_t toklen) { - char *name, *abrv; + const char *name, *abrv; int i, k; bool try_exact = true; int abrv_match = -1; |