Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Differences in generated PtInRgn glue?

Hi,

After updating to HEAD and installing a new generator plugin this morning my
copy of os.c in Cocoa gets regenerated, and has this for PtInRgn:

#ifndef NO_PtInRgn
JNIEXPORT jboolean JNICALL OS_NATIVE(PtInRgn)
    (JNIEnv *env, jclass that, jshortArray arg0, jintLong arg1)
{
    jshort *lparg0=NULL;
    jboolean rc = 0;
    OS_NATIVE_ENTER(env, that, PtInRgn_FUNC);
    if (arg0) if ((lparg0 = (*env)->GetShortArrayElements(env, arg0, NULL))
== NULL) goto fail;
/*
    rc = (jboolean)PtInRgn(*(Point *)lparg0, arg1);
*/
    {
        LOAD_FUNCTION(fp, PtInRgn)
        if (fp) {
--->            rc = (jboolean)((jboolean (CALLING_CONVENTION*)(Point,
jintLong))fp)(*(Point *)lparg0, arg1);
        }
    }
fail:
    if (arg0 && lparg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0,
0);
    OS_NATIVE_EXIT(env, that, PtInRgn_FUNC);
    return rc;
}
#endif


The version on HEAD adds a * after Point, but if I add that to my local copy
I get a syntax error:

        [exec] os.c: In function
'Java_org_eclipse_swt_internal_cocoa_OS_PtInRgn':
        [exec] os.c:3051: error: incompatible type for argument 1 of 'fp'
        [exec] make: *** [os.o] Error 1

Any idea what could be the difference?

-- Scott



Back to the top