Hi all, Please advise if 'sysdepCallMethod' can be implemented by this way as bellow:

method 1:
 in JVM:
    typedef int (*FUNCTYPE)();  //function's return type is int
    FUNCTYPE *nativefunc = (FUNCTYPE)dlsym(handle, "foo");
//four argument
    (*nativefunc)(1, 2.5);

 in share library:
    int foo(int, double);

method 2:
 in JVM:
typedef int (*FUNCTYPE)(...); //function's return type is int, argument list is '...'
    FUNCTYPE *nativefunc = (FUNCTYPE)dlsym(handle, "foo");
//four argument
    (*nativefunc)(1, 2.5);

 in share library:
    int foo(int, double);

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn

_______________________________________________
kaffe mailing list
[email protected]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to