* _no_threads_localref_table: Made non-static.
authortwisti <none@none>
Thu, 3 Nov 2005 20:40:52 +0000 (20:40 +0000)
committertwisti <none@none>
Thu, 3 Nov 2005 20:40:52 +0000 (20:40 +0000)
* LOCALREFTABLE: Moved to jni.h

src/native/jni.c
src/native/jni.h

index bd7680f768902c5e8a2040567e1a3a690a3f315d..b247ef3e7c47f4880981ba9f2294c2ccdf93e764 100644 (file)
@@ -31,7 +31,7 @@
             Martin Platter
             Christian Thalinger
 
-   $Id: jni.c 3505 2005-10-26 20:41:49Z twisti $
+   $Id: jni.c 3549 2005-11-03 20:40:52Z twisti $
 
 */
 
@@ -147,14 +147,8 @@ static classinfo *class_gnu_classpath_Pointer32;
 
 /* local reference table ******************************************************/
 
-#if defined(USE_THREADS)
-#define LOCALREFTABLE    (THREADINFO->_localref_table)
-#else
-#define LOCALREFTABLE    (_no_threads_localref_table)
-#endif
-
 #if !defined(USE_THREADS)
-static localref_table *_no_threads_localref_table;
+localref_table *_no_threads_localref_table;
 #endif
 
 
index c15507122aba0e57e86aa0a88cd1bde6590fa2a3..bc634885c1fb9221b1aec4f34ae381320dc95aec 100644 (file)
@@ -29,7 +29,7 @@
 
    Changes: Christian Thalinger
 
-   $Id: jni.h 3408 2005-10-12 08:47:23Z twisti $
+   $Id: jni.h 3549 2005-11-03 20:40:52Z twisti $
 
 */
 
@@ -628,6 +628,14 @@ struct localref_table {
        java_objectheader *refs[LOCALREFTABLE_CAPACITY]; /* references            */
 };
 
+#if defined(USE_THREADS)
+#define LOCALREFTABLE    (THREADINFO->_localref_table)
+#else
+extern localref_table *_no_threads_localref_table;
+
+#define LOCALREFTABLE    (_no_threads_localref_table)
+#endif
+
 
 #define setField(obj,typ,var,val) *((typ*) ((long int) obj + (long int) var->offset))=val;
 #define getField(obj,typ,var)     *((typ*) ((long int) obj + (long int) var->offset))