From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 74507 invoked by alias); 17 Apr 2018 19:51:31 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 74409 invoked by uid 89); 17 Apr 2018 19:51:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.4 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.2 spammy= X-HELO: gateway24.websitewelcome.com Received: from gateway24.websitewelcome.com (HELO gateway24.websitewelcome.com) (192.185.51.36) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 17 Apr 2018 19:51:29 +0000 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway24.websitewelcome.com (Postfix) with ESMTP id 3EEBC460DD5 for ; Tue, 17 Apr 2018 14:51:28 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id 8WdUf3sNPA3CS8WdUfAzSG; Tue, 17 Apr 2018 14:51:28 -0500 X-Authority-Reason: nr=8 Received: from 97-122-176-117.hlrn.qwest.net ([97.122.176.117]:37488 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1f8WdU-000KUt-0p; Tue, 17 Apr 2018 14:51:28 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 1/4] Make c_type_print_varspec_suffix static Date: Tue, 17 Apr 2018 19:51:00 -0000 Message-Id: <20180417195125.14200-2-tom@tromey.com> In-Reply-To: <20180417195125.14200-1-tom@tromey.com> References: <20180417195125.14200-1-tom@tromey.com> X-BWhitelist: no X-Source-L: No X-Exim-ID: 1f8WdU-000KUt-0p X-Source-Sender: 97-122-176-117.hlrn.qwest.net (bapiya.Home) [97.122.176.117]:37488 X-Source-Auth: tom+tromey.com X-Email-Count: 7 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-SW-Source: 2018-04/txt/msg00357.txt.bz2 I noticed that c_type_print_varspec_suffix is only called from c-typeprint.c, so this patch makes it "static". ChangeLog 2018-04-17 Tom Tromey * typeprint.h (c_type_print_varspec_suffix): Don't declare. * c-typeprint.c (c_type_print_varspec_suffix): Now static. --- gdb/ChangeLog | 5 +++++ gdb/c-typeprint.c | 6 +++++- gdb/typeprint.h | 3 --- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index 1a8af78669..e26687ba25 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -50,6 +50,10 @@ enum access_specifier s_protected }; +static void c_type_print_varspec_suffix (struct type *, struct ui_file *, int, + int, int, + const struct type_print_options *); + static void c_type_print_varspec_prefix (struct type *, struct ui_file *, int, int, int, @@ -716,7 +720,7 @@ remove_qualifiers (char *qid) needed after the variable name (to describe its type). Args work like c_type_print_varspec_prefix. */ -void +static void c_type_print_varspec_suffix (struct type *type, struct ui_file *stream, int show, int passed_a_ptr, diff --git a/gdb/typeprint.h b/gdb/typeprint.h index 895eebd50a..74006b3058 100644 --- a/gdb/typeprint.h +++ b/gdb/typeprint.h @@ -120,9 +120,6 @@ private: void print_type_scalar (struct type * type, LONGEST, struct ui_file *); -void c_type_print_varspec_suffix (struct type *, struct ui_file *, int, - int, int, const struct type_print_options *); - void c_type_print_args (struct type *, struct ui_file *, int, enum language, const struct type_print_options *); -- 2.13.6