From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5005 invoked by alias); 21 Oct 2013 17:00:37 -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 4995 invoked by uid 89); 21 Oct 2013 17:00:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 21 Oct 2013 17:00:36 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r9LFbYqD012841 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 21 Oct 2013 11:37:35 -0400 Received: from redhat.brq.redhat.com (unused-4-133.brq.redhat.com [10.34.4.133]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r9LFbRIm025201; Mon, 21 Oct 2013 11:37:33 -0400 From: Ondrej Oprala To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 04/18] poison "public" Date: Mon, 21 Oct 2013 17:00:00 -0000 Message-Id: <1382369846-5817-5-git-send-email-ooprala@redhat.com> In-Reply-To: <1382369846-5817-1-git-send-email-ooprala@redhat.com> References: <1382369846-5817-1-git-send-email-ooprala@redhat.com> X-IsSubscribed: yes X-SW-Source: 2013-10/txt/msg00664.txt.bz2 From: Tom Tromey gdb/ChangeLog 2013-10-21 Tom Tromey * gdbtypes.c (public_flag): Renamed from public. --- gdb/gdbtypes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index bbac3c6..c09c9f3 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -2154,7 +2154,7 @@ class_types_same_p (const struct type *a, const struct type *b) distance_to_ancestor (A, D, 1) = -1. */ static int -distance_to_ancestor (struct type *base, struct type *dclass, int public) +distance_to_ancestor (struct type *base, struct type *dclass, int public_flag) { int i; int d; @@ -2167,10 +2167,10 @@ distance_to_ancestor (struct type *base, struct type *dclass, int public) for (i = 0; i < TYPE_N_BASECLASSES (dclass); i++) { - if (public && ! BASETYPE_VIA_PUBLIC (dclass, i)) + if (public_flag && ! BASETYPE_VIA_PUBLIC (dclass, i)) continue; - d = distance_to_ancestor (base, TYPE_BASECLASS (dclass, i), public); + d = distance_to_ancestor (base, TYPE_BASECLASS (dclass, i), public_flag); if (d >= 0) return 1 + d; } -- 1.8.3.1