projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5688cd
)
Boolify parser_state::comma_terminates
author
Tom Tromey
<tromey@adacore.com>
Fri, 28 Apr 2023 14:24:05 +0000
(08:24 -0600)
committer
Tom Tromey
<tromey@adacore.com>
Tue, 23 May 2023 19:57:54 +0000
(13:57 -0600)
parser_state::comma_terminates ought to be boolean, and changing it
does not require any other changes.
gdb/parser-defs.h
patch
|
blob
|
history
diff --git
a/gdb/parser-defs.h
b/gdb/parser-defs.h
index 2a246ff38f0f0eacf7f2217b53f11a843dc0fac7..e92b4804f47a818ea486dbb5058691f562141c01 100644
(file)
--- a/
gdb/parser-defs.h
+++ b/
gdb/parser-defs.h
@@
-277,7
+277,7
@@
struct parser_state : public expr_builder
/* Nonzero means stop parsing on first comma (if not within parentheses). */
-
int
comma_terminates;
+
bool
comma_terminates;
/* During parsing of a C expression, the pointer to the next character
is in this variable. */