diff options
author | Tom Tromey <tromey@redhat.com> | 2012-12-07 20:05:15 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-12-07 20:05:15 +0000 |
commit | 155da5173d74221a3099c22c27de1e8e2214982b (patch) | |
tree | 2d9b79cc51defeda92a300138d8a020590a1b0f4 /gdb/c-exp.y | |
parent | 4fc5d43ea6b0f1ae45c2819f9b15d2cafe2f27b7 (diff) | |
download | gdb-155da5173d74221a3099c22c27de1e8e2214982b.zip gdb-155da5173d74221a3099c22c27de1e8e2214982b.tar.gz gdb-155da5173d74221a3099c22c27de1e8e2214982b.tar.bz2 |
* expression.h (parse_expression_for_completion): Rename
from parse_field_expression.
(parse_completion): Rename from in_parse_field.
* c-exp.y (lex_one_token): Update.
* completer.c (expression_completer): Update.
* go-exp.y (lex_one_token): Update.
* p-exp.y (yylex): Update.
* parse.c (parse_completion): Rename from in_parse_field.
(parse_exp_in_context): Update.
(parse_expression_for_completion): Rename from
parse_field_expression. Update.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r-- | gdb/c-exp.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y index 05d12be..7ae90aa 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -2354,7 +2354,7 @@ lex_one_token (void) lexptr += 2; yylval.opcode = tokentab2[i].opcode; - if (in_parse_field && tokentab2[i].token == ARROW) + if (parse_completion && tokentab2[i].token == ARROW) last_was_structop = 1; return tokentab2[i].token; } @@ -2417,7 +2417,7 @@ lex_one_token (void) /* Might be a floating point number. */ if (lexptr[1] < '0' || lexptr[1] > '9') { - if (in_parse_field) + if (parse_completion) last_was_structop = 1; goto symbol; /* Nope, must be a symbol. */ } @@ -2669,7 +2669,7 @@ lex_one_token (void) if (*tokstart == '$') return VARIABLE; - if (in_parse_field && *lexptr == '\0') + if (parse_completion && *lexptr == '\0') saw_name_at_eof = 1; return NAME; } |