Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 71199 invoked from network); 5 Apr 2006 05:09:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Apr 2006 05:09:06 -0000 Received: (qmail 98891 invoked by uid 500); 5 Apr 2006 05:09:05 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 98849 invoked by uid 500); 5 Apr 2006 05:09:05 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 98838 invoked by uid 99); 5 Apr 2006 05:09:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 22:09:05 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 04 Apr 2006 22:09:04 -0700 Received: (qmail 71125 invoked by uid 65534); 5 Apr 2006 05:08:44 -0000 Message-ID: <20060405050844.71124.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r391494 - /incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/class.h Date: Wed, 05 Apr 2006 05:08:44 -0000 To: harmony-commits@incubator.apache.org From: dlydick@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: dlydick Date: Tue Apr 4 22:08:43 2006 New Revision: 391494 URL: http://svn.apache.org/viewcvs?rev=391494&view=rev Log: Clarified arraylength comment. Added function prototypes for chass hierarchy detection. Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/class.h Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/class.h URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/class.h?rev=391494&r1=391493&r2=391494&view=diff ============================================================================== --- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/class.h (original) +++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/class.h Tue Apr 4 22:08:43 2006 @@ -176,16 +176,21 @@ * is set */ - jint *arraylength; /**< Array of length @p @b arraydims - * containing the length of array in each of - * those dimensions. E.g., @b arraydims is - * 4 for new X[7][3][9][2] so this parameter - * will be a 4-element array containing the - * numbers {7, 3, 9, 2} */ + jint arraylength; /**< First dimension of array of length + * @p @b arraydims as passed in to + * class_static_new(), which contains the + * length of array in each of those dimensions. + * Meaningful only when @link + #CLASS_STATUS_ARRAY CLASS_STATUS_ARRAY@endlink + * is set. E.g., @b arraydims is 4 for a new + * array XYZ[7][3][9][2] so this field will + * store the value '7' from a 4-element array + * containing the numbers {7, 3, 9, 2} + */ jvm_class_index lower_dim_array; /**< Class table index of * version of this class with one fewer array - * dimensions, meaningful only when @link + * dimensions. Meaningful only when @link #CLASS_STATUS_ARRAY CLASS_STATUS_ARRAY@endlink * is set. */ @@ -296,14 +301,20 @@ /* Prototypes for functions in 'classutil.c' */ -extern rboolean classutil_subclass_of(jvm_class_index clsidx1, - jvm_class_index clsidx2); +extern rboolean classutil_class_is_a(jvm_class_index clsidx1, + jvm_class_index clsidx2); -extern rboolean classutil_implements_interface(jvm_class_index clsidx1, +extern rboolean classutil_class_implements_interface( + jvm_class_index clsidx1, jvm_class_index clsidx2); -extern rboolean classutil_superinterface_of(jvm_class_index clsidx1, - jvm_class_index clsidx2); +extern rboolean classutil_class_is_superinterface_of( + jvm_class_index clsidx1, + jvm_class_index clsidx2); + +extern rboolean classutil_class_is_accessible_to( + jvm_class_index clsidx1, + jvm_class_index clsidx2); extern rboolean classutil_interface_implemented_by_arrays(jvm_class_index clsidx);