From patchwork Sat Aug 3 13:29:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 33934 Received: (qmail 95120 invoked by alias); 3 Aug 2019 13:29:34 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 94999 invoked by uid 89); 3 Aug 2019 13:29:33 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1366 X-HELO: gateway21.websitewelcome.com Received: from gateway21.websitewelcome.com (HELO gateway21.websitewelcome.com) (192.185.45.38) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 03 Aug 2019 13:29:32 +0000 Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway21.websitewelcome.com (Postfix) with ESMTP id DBF00400C832B for ; Sat, 3 Aug 2019 08:29:30 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id tu6Ehsg95iQertu6EhGra6; Sat, 03 Aug 2019 08:29:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ov82l4uV7GYXKbClf4k0X/yzWGdH4vC3tHv3kQJsq8E=; b=VWLSmHW6lwfVlm3E/917VGUVO8 TnsNd4kQ+unmU2f/w6jcx1WpXpIXhGGhoKFed8mmFNCVxrPDm/2Nax8mwiQb1/IIdZcoaMVS28B1t hyZm0d4qF1JdZYjs9ThBf5SOt; Received: from 97-122-178-82.hlrn.qwest.net ([97.122.178.82]:36980 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1htu6E-003nqS-Le; Sat, 03 Aug 2019 08:29:30 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 07/19] Make tui_default_win_height static Date: Sat, 3 Aug 2019 07:29:13 -0600 Message-Id: <20190803132925.25074-8-tom@tromey.com> In-Reply-To: <20190803132925.25074-1-tom@tromey.com> References: <20190803132925.25074-1-tom@tromey.com> tui_default_win_height is only used in tui-layout.c, so make it static. gdb/ChangeLog 2019-08-03 Tom Tromey * tui/tui-layout.h (tui_default_win_height): Don't declare. * tui/tui-layout.c (tui_default_win_height): Now static. --- gdb/ChangeLog | 5 +++++ gdb/tui/tui-layout.c | 2 +- gdb/tui/tui-layout.h | 2 -- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index 91db38404b3..f4f834dc83e 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -254,7 +254,7 @@ tui_add_win_to_layout (enum tui_win_type type) /* Answer the height of a window. If it hasn't been created yet, answer what the height of a window would be based upon its type and the layout. */ -int +static int tui_default_win_height (enum tui_win_type type, enum tui_layout_type layout) { diff --git a/gdb/tui/tui-layout.h b/gdb/tui/tui-layout.h index 5f1993387be..a7e1e908983 100644 --- a/gdb/tui/tui-layout.h +++ b/gdb/tui/tui-layout.h @@ -26,8 +26,6 @@ #include "tui/tui-data.h" extern void tui_add_win_to_layout (enum tui_win_type); -extern int tui_default_win_height (enum tui_win_type, - enum tui_layout_type); extern int tui_default_win_viewport_height (enum tui_win_type, enum tui_layout_type); extern void tui_set_layout (enum tui_layout_type);