You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by dl...@apache.org on 2007/08/12 22:17:00 UTC

svn commit: r565132 - in /harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src: pjvm.c pjvm.h

Author: dlydick
Date: Sun Aug 12 13:16:59 2007
New Revision: 565132

URL: http://svn.apache.org/viewvc?view=rev&rev=565132
Log:
Added to separate out definition of 'pjvm' pointer from all
other code.

Added:
    harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/pjvm.c   (with props)
    harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/pjvm.h   (with props)

Added: harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/pjvm.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/pjvm.c?view=auto&rev=565132
==============================================================================
--- harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/pjvm.c (added)
+++ harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/pjvm.c Sun Aug 12 13:16:59 2007
@@ -0,0 +1,67 @@
+/*!
+ * @file pjvm.c
+ *
+ * @brief Main JVM control structure definition.
+ *
+ * Public symbol defining the main JVM control structure.
+ * This structure is defined in @link jvm/src/jvm.h jvm.h@endlink .
+ *
+ * @section Control
+ *
+ * \$URL$
+ *
+ * \$Id$
+ *
+ * Copyright 2006 The Apache Software Foundation
+ * or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 ("the License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied.
+ *
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * @version \$LastChangedRevision$
+ *
+ * @date \$LastChangedDate$
+ *
+ * @author \$LastChangedBy$
+ *
+ * @section Reference
+ *
+ */
+
+#include "arch.h"
+ARCH_SOURCE_COPYRIGHT_APACHE(pjvm, c,
+"$URL$",
+"$Id$");
+
+#include "jvmcfg.h"
+#include "classfile.h"
+#include "jvm.h"
+#include "pjvm.h"
+
+
+/*!
+ * @brief JVM main operational structure, part of which is
+ * used also by the utilities such as JAR.
+ *
+ * This pointer is initialized by jvm_model_init() and is
+ * used @e extensively throughout the code, both directly
+ * and through macros like @link #CLASS() CLASS@endlink and
+ * @link #OBJECT() OBJECT()@endlink.
+ *
+ */
+
+rjvm *pjvm = CHEAT_AND_USE_NULL_TO_INITIALIZE;
+
+
+/* EOF */

Propchange: harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/pjvm.c
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Added: harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/pjvm.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/pjvm.h?view=auto&rev=565132
==============================================================================
--- harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/pjvm.h (added)
+++ harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/pjvm.h Sun Aug 12 13:16:59 2007
@@ -0,0 +1,58 @@
+#ifndef _pjvm_h_included_
+#define _pjvm_h_included_
+
+/*!
+ * @file pjvm.h
+ *
+ * @brief Main JVM control structure external definition.
+ *
+ *
+ * @section Control
+ *
+ * \$URL$
+ *
+ * \$Id$
+ *
+ * Copyright 2006 The Apache Software Foundation
+ * or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 ("the License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied.
+ *
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * @version \$LastChangedRevision$
+ *
+ * @date \$LastChangedDate$
+ *
+ * @author \$LastChangedBy$
+ *
+ * @section Reference
+ *
+ */
+
+ARCH_HEADER_COPYRIGHT_APACHE(pjvm, h,
+"$URL$",
+"$Id$");
+
+
+/*!
+ * @brief Real machine implementation of a JVM.
+ *
+ */
+
+extern rjvm *pjvm;
+
+#endif /* _pjvm_h_included_ */
+
+
+/* EOF */

Propchange: harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/pjvm.h
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id