From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2764 invoked by alias); 17 Dec 2007 07:03:19 -0000 Received: (qmail 2754 invoked by uid 22791); 17 Dec 2007 07:03:17 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 17 Dec 2007 07:03:12 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 7827E2A963F for ; Mon, 17 Dec 2007 02:03:09 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wujx0hyu8KcE for ; Mon, 17 Dec 2007 02:03:09 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 81EA02A963E for ; Mon, 17 Dec 2007 02:03:08 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 536E6E7ACA; Mon, 17 Dec 2007 08:03:01 +0100 (CET) Date: Mon, 17 Dec 2007 07:14:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: [commit] language.h minor cleanup Message-ID: <20071217070301.GE32623@adacore.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="jho1yZJdad60DJr+" Content-Disposition: inline User-Agent: Mutt/1.4.2.2i 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 X-SW-Source: 2007-12/txt/msg00257.txt.bz2 --jho1yZJdad60DJr+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 633 Hello, This is something I noticed while working on the "struct parse_context" task: There was one commented-out enum declaration that I decommented, and also a couple of functions declarations were using struct language_defn before that struct was defined. I moved these declarations past the struct declaration. 2007-12-17 Joel Brobecker * language.h (enum exp_opcode): Add forward declaration. (language_string_char_type, language_lookup_primitive_type_by_name): Move declaration past declaration of language_defn. Tested on x86-linux by rebuilding GDB. Checked in. -- Joel --jho1yZJdad60DJr+ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="language.h.diff" Content-length: 1508 Index: language.h =================================================================== RCS file: /cvs/src/src/gdb/language.h,v retrieving revision 1.43 diff -u -p -r1.43 language.h --- language.h 4 Dec 2007 23:33:00 -0000 1.43 +++ language.h 17 Dec 2007 06:59:05 -0000 @@ -30,8 +30,7 @@ struct objfile; struct frame_info; struct expression; struct ui_file; - -/* enum exp_opcode; ANSI's `wisdom' didn't include forward enum decls. */ +enum exp_opcode; /* This used to be included to configure GDB for one or more specific languages. Now it is left out to configure for all of them. FIXME. */ @@ -129,13 +128,6 @@ struct language_arch_info struct type *string_char_type; }; -struct type *language_string_char_type (const struct language_defn *l, - struct gdbarch *gdbarch); - -struct type *language_lookup_primitive_type_by_name (const struct language_defn *l, - struct gdbarch *gdbarch, - const char *name); - /* Structure tying together assorted information about a language. */ struct language_defn @@ -314,6 +306,14 @@ extern enum language_mode language_mode_auto, language_mode_manual } language_mode; + +struct type *language_string_char_type (const struct language_defn *l, + struct gdbarch *gdbarch); + +struct type *language_lookup_primitive_type_by_name (const struct language_defn *l, + struct gdbarch *gdbarch, + const char *name); + /* These macros define the behaviour of the expression evaluator. */ --jho1yZJdad60DJr+--