From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id WDCBHvCDJmK2GgAAWB0awg (envelope-from ) for ; Mon, 07 Mar 2022 17:15:12 -0500 Received: by simark.ca (Postfix, from userid 112) id 7A4CF1F3CB; Mon, 7 Mar 2022 17:15:12 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id A9D021F3B1 for ; Mon, 7 Mar 2022 17:15:11 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 63936385782B for ; Mon, 7 Mar 2022 22:15:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 63936385782B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1646691311; bh=rRQujnsq9O7MNAxKupVOyCZTDPb9bKJJOsIQGcAqMFY=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=paXvcuDGE3UDo/VRh3uhOJ4EMumtyxzgX8h8xOvUjR+ddg6ADxhgKJT9BzX1+3RdZ 44w0fD5JggfmWdmwYorgQSf+bQ5QDWxgja+PaoAOBicMrlc0xH0VfrTe3q79EvHyWE MYU0p35ThvKS/NUopn2Cc1kW7JSqI8WCcIglLTW0= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 8C386385841D for ; Mon, 7 Mar 2022 22:13:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8C386385841D Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-96-MsTMfF-PNGClivY0TAJREQ-1; Mon, 07 Mar 2022 17:13:54 -0500 X-MC-Unique: MsTMfF-PNGClivY0TAJREQ-1 Received: by mail-wr1-f69.google.com with SMTP id f9-20020a5d58e9000000b001f0247e5e96so4956079wrd.15 for ; Mon, 07 Mar 2022 14:13:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rRQujnsq9O7MNAxKupVOyCZTDPb9bKJJOsIQGcAqMFY=; b=hpy3qRioXyhOTLwSK+R5admb9h5UjfOlKDqQaYnN0mTi6KfrmjZhQxvA/sGl7C30Th WGO3O7GS0scgwQkA8YGhdnkjUrAM/qifdtznjmviJElNz7MGwAxuN7QmO/a1hOG+8/KN fusDMpWwp+A0XINo/wpThPLe2hyfIm/dr0jxm4enjYCbrc9CXk2t5eQLW7vmdXQEBEpR NAe0A3+/xCJug1qdz15HN66t7VEQWzlg1yznB3gYVOYetN/9+nvj6OGYhzWrS92Q2dYp XEJiwQLQZRMYkr4QHMmAIUfC8XLHTIudAWKxhgMcHCJB1uwU8/FFr5yuHy4DSEe0aCvr ervw== X-Gm-Message-State: AOAM531IHuxJlUbQfO6FUcJQbo13VpfBOLgzhWuw7ESzGnZFaWnrZO7c I5Z6cJ13rO5HyZPCTYCZIaBMIDH2vFUpVXfAqB5QJT9n/J0uAi0BvegjEbB1+tch2zOMJQTrQmQ FMdxLeLkbFK7jT4o6HS/b8zHV+cwK5pa52Q5d3I89xoRCBUmFIjZPPhNCysN4SsXqdy8yzOcFYg == X-Received: by 2002:a5d:6488:0:b0:1ea:7ff1:93e with SMTP id o8-20020a5d6488000000b001ea7ff1093emr10331874wri.284.1646691232485; Mon, 07 Mar 2022 14:13:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMQ2EZp2wTQ2BHLF9X0mhUsMKb24pAbGUZ9SsGhXPQsRuduZr6IT93IrFezNEPzS03X8L5YA== X-Received: by 2002:a5d:6488:0:b0:1ea:7ff1:93e with SMTP id o8-20020a5d6488000000b001ea7ff1093emr10331862wri.284.1646691232254; Mon, 07 Mar 2022 14:13:52 -0800 (PST) Received: from localhost (host86-134-151-205.range86-134.btcentralplus.com. [86.134.151.205]) by smtp.gmail.com with ESMTPSA id r2-20020a5d6942000000b001f0485057c4sm12521827wrw.74.2022.03.07.14.13.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 14:13:51 -0800 (PST) To: gdb-patches@sourceware.org Subject: [PATCHv3 02/15] gdb/tui: rename tui_layout_base::adjust_size to ::set_height Date: Mon, 7 Mar 2022 22:13:34 +0000 Message-Id: X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrew Burgess via Gdb-patches Reply-To: Andrew Burgess Cc: Andrew Burgess Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Rename tui_layout_base::adjust_size to tui_layout_base::set_height, the new name more accurately reflects what this member function does, and makes it easier for a later commit to add a new tui_layout_base::set_width member function. There should be no user visible changes after this commit. --- gdb/tui/tui-layout.c | 6 +++--- gdb/tui/tui-layout.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index f8388e3fca5..4c355c79d65 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -118,7 +118,7 @@ tui_apply_current_layout () void tui_adjust_window_height (struct tui_win_info *win, int new_height) { - applied_layout->adjust_size (win->name (), new_height); + applied_layout->set_height (win->name (), new_height); } /* Set the current layout to LAYOUT. */ @@ -570,7 +570,7 @@ tui_layout_split::set_weights_from_heights () /* See tui-layout.h. */ tui_adjust_result -tui_layout_split::adjust_size (const char *name, int new_height) +tui_layout_split::set_height (const char *name, int new_height) { /* Look through the children. If one is a layout holding the named window, we're done; or if one actually is the named window, @@ -579,7 +579,7 @@ tui_layout_split::adjust_size (const char *name, int new_height) for (int i = 0; i < m_splits.size (); ++i) { tui_adjust_result adjusted - = m_splits[i].layout->adjust_size (name, new_height); + = m_splits[i].layout->set_height (name, new_height); if (adjusted == HANDLED) return HANDLED; if (adjusted == FOUND) diff --git a/gdb/tui/tui-layout.h b/gdb/tui/tui-layout.h index b9a5d9b898d..acea7ac8f64 100644 --- a/gdb/tui/tui-layout.h +++ b/gdb/tui/tui-layout.h @@ -75,9 +75,9 @@ class tui_layout_base return nullptr; } - /* Adjust the size of the window named NAME to NEW_HEIGHT, updating + /* Set the height of the window named NAME to NEW_HEIGHT, updating the sizes of the other windows around it. */ - virtual tui_adjust_result adjust_size (const char *name, int new_height) = 0; + virtual tui_adjust_result set_height (const char *name, int new_height) = 0; /* Remove some windows from the layout, leaving the command window and the window being passed in here. */ @@ -127,7 +127,7 @@ class tui_layout_window : public tui_layout_base return m_contents.c_str (); } - tui_adjust_result adjust_size (const char *name, int new_height) override + tui_adjust_result set_height (const char *name, int new_height) override { return m_contents == name ? FOUND : NOT_FOUND; } @@ -192,7 +192,7 @@ class tui_layout_split : public tui_layout_base void apply (int x, int y, int width, int height) override; - tui_adjust_result adjust_size (const char *name, int new_height) override; + tui_adjust_result set_height (const char *name, int new_height) override; bool top_boxed_p () const override; -- 2.25.4