X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fnative%2Fvm%2Fcldc1.1%2Fjava_lang_Double.cpp;h=6f5f701b3ffe3ba4d10c0ac65d72620635118ee9;hb=ccf261403b028f269c684d0d3b48242b2cfcc816;hp=772b603caa62d89473b6ba4d1b965fe8cf526fa3;hpb=24f009998e843b8a40f4e1b0f635262daecdd021;p=cacao.git diff --git a/src/native/vm/cldc1.1/java_lang_Double.cpp b/src/native/vm/cldc1.1/java_lang_Double.cpp index 772b603ca..6f5f701b3 100644 --- a/src/native/vm/cldc1.1/java_lang_Double.cpp +++ b/src/native/vm/cldc1.1/java_lang_Double.cpp @@ -27,14 +27,16 @@ #include -#include "native/jni.h" -#include "native/native.h" +#include "native/jni.hpp" +#include "native/native.hpp" #if defined(ENABLE_JNI_HEADERS) # include "native/include/java_lang_Double.h" #endif -#include "vm/builtin.h" +#include "vm/vm.hpp" + +#include "vm/jit/builtin.hpp" // Native functions are exported as C functions. @@ -105,16 +107,12 @@ static JNINativeMethod methods[] = { *******************************************************************************/ -// FIXME -extern "C" { void _Jv_java_lang_Double_init(void) { - utf *u; - - u = utf_new_char("java/lang/Double"); + utf* u = utf_new_char("java/lang/Double"); - native_method_register(u, methods, NATIVE_METHODS_COUNT); -} + NativeMethods& nm = VM::get_current()->get_nativemethods(); + nm.register_methods(u, methods, NATIVE_METHODS_COUNT); }