diff options
author | Tom Tromey <tromey@adacore.com> | 2024-03-14 12:30:28 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2024-04-02 11:24:27 -0600 |
commit | 33a03c121318b64b89f0e161bef638a7ab190e7a (patch) | |
tree | da539e2b7e74d1583b43fe31df902561213926d1 /gdb/ada-exp.y | |
parent | d9346cbfcbf5705d6ee93e9b7b3e789489c50ebd (diff) | |
download | gdb-33a03c121318b64b89f0e161bef638a7ab190e7a.zip gdb-33a03c121318b64b89f0e161bef638a7ab190e7a.tar.gz gdb-33a03c121318b64b89f0e161bef638a7ab190e7a.tar.bz2 |
Move "returned_complete" into ada_parse_state
This moves the "returned_complete" global into ada_parse_state.
Diffstat (limited to 'gdb/ada-exp.y')
-rw-r--r-- | gdb/ada-exp.y | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y index 21a384b..f3cef6d 100644 --- a/gdb/ada-exp.y +++ b/gdb/ada-exp.y @@ -105,6 +105,13 @@ struct ada_parse_state /* Depth of parentheses, used by the lexer. */ int paren_depth = 0; + /* When completing, we'll return a special character at the end of the + input, to signal the completion position to the lexer. This is + done because flex does not have a generally useful way to detect + EOF in a pattern. This variable records whether the special + character has been emitted. */ + bool returned_complete = false; + private: /* We don't have a good way to manage non-POD data in Yacc, so store |