From patchwork Sat Dec 13 18:49:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 4236 Received: (qmail 31855 invoked by alias); 13 Dec 2014 18:50:47 -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 31846 invoked by uid 89); 13 Dec 2014 18:50:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f51.google.com Received: from mail-pa0-f51.google.com (HELO mail-pa0-f51.google.com) (209.85.220.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 13 Dec 2014 18:50:46 +0000 Received: by mail-pa0-f51.google.com with SMTP id ey11so9191703pad.24 for ; Sat, 13 Dec 2014 10:50:44 -0800 (PST) X-Received: by 10.70.89.237 with SMTP id br13mr37801639pdb.78.1418496644027; Sat, 13 Dec 2014 10:50:44 -0800 (PST) Received: from sspiff.org (173-13-178-50-sfba.hfc.comcastbusiness.net. [173.13.178.50]) by mx.google.com with ESMTPSA id o10sm2512799pdr.96.2014.12.13.10.50.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Dec 2014 10:50:43 -0800 (PST) Received: by sspiff.org (sSMTP sendmail emulation); Sat, 13 Dec 2014 10:49:49 -0800 From: Doug Evans To: gdb-patches@sourceware.org Subject: [PATCH] Rename find_type_baseclass_by_name to cp_find_type_baseclass_by_name Date: Sat, 13 Dec 2014 10:49:49 -0800 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Hi. There's a convention in cp-namespace.c that exported functions have a cp_ prefix, so I added one to the only one that doesn't have it. 2014-12-13 Doug Evans * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from find_type_baseclass_by_name. All callers updated. diff --git a/gdb/c-exp.y b/gdb/c-exp.y index 92ff3b6..9d1c4c7 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -3019,7 +3019,7 @@ classify_inner_name (struct parser_state *par_state, relative to the `this' pointer. */ if (yylval.ssym.sym == NULL) { - struct type *base_type = find_type_baseclass_by_name (type, copy); + struct type *base_type = cp_find_type_baseclass_by_name (type, copy); if (base_type != NULL) { @@ -3038,7 +3038,7 @@ classify_inner_name (struct parser_state *par_state, named COPY when we really wanted a base class of the same name. Double-check this case by looking for a base class. */ { - struct type *base_type = find_type_baseclass_by_name (type, copy); + struct type *base_type = cp_find_type_baseclass_by_name (type, copy); if (base_type != NULL) { diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index c083327..3066737 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -697,7 +697,7 @@ cp_lookup_symbol_nonlocal (const char *name, named NAME and return its type. If not found, return NULL. */ struct type * -find_type_baseclass_by_name (struct type *parent_type, const char *name) +cp_find_type_baseclass_by_name (struct type *parent_type, const char *name) { int i; @@ -713,7 +713,7 @@ find_type_baseclass_by_name (struct type *parent_type, const char *name) if (streq (base_name, name)) return type; - type = find_type_baseclass_by_name (type, name); + type = cp_find_type_baseclass_by_name (type, name); if (type != NULL) return type; } diff --git a/gdb/cp-support.h b/gdb/cp-support.h index efd1e18..2594e34 100644 --- a/gdb/cp-support.h +++ b/gdb/cp-support.h @@ -215,8 +215,8 @@ struct type *cp_lookup_transparent_type (const char *name); /* See description in cp-namespace.c. */ -struct type *find_type_baseclass_by_name (struct type *parent_type, - const char *name); +struct type *cp_find_type_baseclass_by_name (struct type *parent_type, + const char *name); /* Functions from cp-name-parser.y. */