Boolify parser_state::comma_terminates
authorTom Tromey <tromey@adacore.com>
Fri, 28 Apr 2023 14:24:05 +0000 (08:24 -0600)
committerTom 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

index 2a246ff38f0f0eacf7f2217b53f11a843dc0fac7..e92b4804f47a818ea486dbb5058691f562141c01 100644 (file)
@@ -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.  */