The .hh files created with the header file generator are all
included here as are the C functions implementing these methods.
- $Id: native.c 1331 2004-07-21 15:46:54Z twisti $
+ $Id: native.c 1383 2004-08-02 07:27:00Z stefan $
*/
#include "nativetable.inc"
-/* searchpath for classfiles */
-char *classpath;
-
/* for java-string to char conversion */
#define MAXSTRINGSIZE 1000
}
-/********************* function: native_setclasspath **************************/
-
-void native_setclasspath(char *path)
-{
- /* set searchpath for classfiles */
- classpath = path;
-}
-
-
/*********************** Function: native_findfunction *************************
Looks up a method (must have the same class name, method name, descriptor
/* create new javastring */
js = LNEW(java_lang_String);
+#if defined(USE_THREADS) && defined(NATIVE_THREADS)
+ initObjectLock(&js->header);
+#endif
js->header.vftbl = class_java_lang_String->vftbl;
js->value = stringdata;
js->offset = 0;