[05/11] Boolify parser_state::comma_terminates

Message ID 20230504-frameless-v1-5-4191201740b0@adacore.com
State New
Headers
Series Fix frame-less expression evaluation in DAP |

Commit Message

Tom Tromey May 4, 2023, 2:21 p.m. UTC
  parser_state::comma_terminates ought to be boolean, and changing it
does not require any other changes.
---
 gdb/parser-defs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h
index 2a246ff38f0..e92b4804f47 100644
--- 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.  */