From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9265 invoked by alias); 25 Jun 2002 17:40:14 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 9257 invoked from network); 25 Jun 2002 17:40:12 -0000 Received: from unknown (HELO gash2.peakpeak.com) (207.174.178.17) by sources.redhat.com with SMTP; 25 Jun 2002 17:40:12 -0000 Received: from fleche.redhat.com (ta0199.peakpeak.com [204.144.244.199]) by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id LAA09609 for ; Tue, 25 Jun 2002 11:40:11 -0600 Received: by fleche.redhat.com (Postfix, from userid 1000) id 5175D4F80AA; Tue, 25 Jun 2002 11:53:18 -0600 (MDT) To: gdb-patches@sources.redhat.com Subject: RFA: make add_setshow_cmd public From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom X-Zippy: FEELINGS are cascading over me!!! Date: Tue, 25 Jun 2002 10:40:00 -0000 Message-ID: <87wusndz3l.fsf@fleche.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-06/txt/msg00512.txt.bz2 This patch changes add_setshow_cmd to be public. After this goes in I can change all the callers to add_set_cmd and add_show_from_set. Then I will delete those functions. Ok? Tom Index: ChangeLog from Tom Tromey * command.h (add_setshow_cmd): Declare. * cli/cli-decode.c (add_setshow_cmd): No longer static. Index: command.h =================================================================== RCS file: /cvs/src/src/gdb/command.h,v retrieving revision 1.33 diff -u -r1.33 command.h --- command.h 15 Jun 2002 22:05:32 -0000 1.33 +++ command.h 25 Jun 2002 17:38:55 -0000 @@ -210,6 +210,15 @@ extern void help_cmd_list (struct cmd_list_element *, enum command_class, char *, int, struct ui_file *); +extern struct cmd_list_element *add_setshow_cmd (char *name, + enum command_class class, + var_types var_type, void *var, + char *set_doc, char *show_doc, + cmd_sfunc_ftype *set_func, + cmd_sfunc_ftype *show_func, + struct cmd_list_element **set_list, + struct cmd_list_element **show_list); + extern struct cmd_list_element *add_set_cmd (char *name, enum command_class class, var_types var_type, void *var, Index: cli/cli-decode.c =================================================================== RCS file: /cvs/src/src/gdb/cli/cli-decode.c,v retrieving revision 1.25 diff -u -r1.25 cli-decode.c --- cli/cli-decode.c 25 Jun 2002 05:39:18 -0000 1.25 +++ cli/cli-decode.c 25 Jun 2002 17:38:56 -0000 @@ -331,7 +331,7 @@ command. SET_FUNC and SHOW_FUNC are the callback functions (if non-NULL). SET_DOC and SHOW_DOC are the documentation strings. */ -static struct cmd_list_element * +struct cmd_list_element * add_setshow_cmd (char *name, enum command_class class, var_types var_type, void *var,