double indirection

Nicholas Jordan asdf at some.com
Mon Mar 16 12:12:09 PDT 2009


By advice given, I ran the conversion tool.

It came up with this for the Java Interface:

struct JNINativeInterface_
{
    void *reserved0;
    void *reserved1;
    void *reserved2;
    void *reserved3;
    int  function(JNINativeInterface_ **env)GetVersion;
    _jobject * function(JNINativeInterface_ **env, char *name,
_jobject *loader, sbyte *buf, int len)DefineClass;
    _jobject * function(JNINativeInterface_ **env, char
*name)FindClass;

.... and so on for several hundred lines.

so how do I get at the **env ....

this is gonna be slogging trying to find it by myself, if someone ||
anyone can just suggest where to read.

As well, it is all in a structure. Never had any instruction on how to
call a function in a structre.

Makes sense, just need to know how to do it.



More information about the Digitalmars-d-learn mailing list