From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by sourceware.org (Postfix) with ESMTPS id CE2E038582BD for ; Thu, 4 May 2023 14:21:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CE2E038582BD Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-io1-xd2a.google.com with SMTP id ca18e2360f4ac-769036b48b0so36160239f.0 for ; Thu, 04 May 2023 07:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1683210087; x=1685802087; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=o0zoI+4v+p1LTvLt5GPdLU+/9hDhnaytoX5FK4YZqzg=; b=Q9FKAtnfeYoBDAZFEXpcbHMNR0f1rKKF2MlymXHSWQWTpcXKaFlhWy+lk8BWTORquP xd/lPU/ZQp2XMcrQikCPeX7IDMaGa8QtOh779Sc/J/Z3ZU8+QMmhJ6kiVtEZVAfRNcl0 ujARNZdWPRbyjAs8VXnnnDR3EjDQrqOd1Q72K+tYJu3s+HfKLaOHUVe6OSXtjPaiU23t jCU2G3syjCQZ7DV0QlBgjwVHFgXRL583A1sCFhsDbytayBH9dfWykLmKw8zEzWE11+Dt 3htJbsR3bKw/xGaraoy1T7KLl3wjK2Nz1ipmJW34jytjzKk+7a3C1ncZh9t0SNwvFUOa wY2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683210087; x=1685802087; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=o0zoI+4v+p1LTvLt5GPdLU+/9hDhnaytoX5FK4YZqzg=; b=OTQXPt4ueS0IuFkjF0NhM90ktHiTmldtOGmZFATfcfu8QcLV18PlxnE1JZmosVRGJy G695sU8+MgVbdb2t1Y1i4HZMJuUVXGkmDQAeXVDD2naTr/eK7nIdm+4zdtOtDzOnaw2g MkBMdgUTVjfDWJWq9MM4KD91KQoY0RaWImnn6xwvTnrLm6jkIPQhefeJ3wwtOed/L6Bo 33pP/9l5EkJtYcAz887pybfO0fl5g2bG6iqaqJOBC3WAEkYUBRpV4nCNsf0Mq486/NB3 5rbiBPHxeU5q4unn1ntKUH9Ws1bb3ih728HFERb2EsCtdUSIhnMHG3O1lMelCy5KcLtK r5vQ== X-Gm-Message-State: AC+VfDys0c0C+x+7uJfFuzSUJpvSQ+KzBppZCJ8QR/z+5sDQysnzZeC1 1PaOQOAx6kJQNCW0YQiOQnjAdHGeolCIKjTIvEgXiw== X-Google-Smtp-Source: ACHHUZ5GTfqEeZQSdqHo5h9cCg8pn3Es246B4WGuYDqh6Eqkc8wlvsKIMinuZKy99YGO2IzD4GmJIQ== X-Received: by 2002:a6b:f81a:0:b0:759:6a8e:96e5 with SMTP id o26-20020a6bf81a000000b007596a8e96e5mr16568527ioh.17.1683210087145; Thu, 04 May 2023 07:21:27 -0700 (PDT) Received: from localhost.localdomain (71-211-191-82.hlrn.qwest.net. [71.211.191.82]) by smtp.gmail.com with ESMTPSA id r16-20020a6b4410000000b00760a07e4e09sm9983384ioa.5.2023.05.04.07.21.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 07:21:26 -0700 (PDT) From: Tom Tromey Date: Thu, 04 May 2023 08:21:26 -0600 Subject: [PATCH 05/11] Boolify parser_state::comma_terminates MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230504-frameless-v1-5-4191201740b0@adacore.com> References: <20230504-frameless-v1-0-4191201740b0@adacore.com> In-Reply-To: <20230504-frameless-v1-0-4191201740b0@adacore.com> To: gdb-patches@sourceware.org X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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(-) 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. */ -- 2.39.1