This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Marking JNI funtions extern


>>>>> "Ranjit" == Ranjit Mathew <rmathew@gmail.com> writes:

Ranjit> However, most likely these were introduced to fit in
Ranjit> "__declspec(dllexport)" and "__stdcall" from the
Ranjit> Windoze DLL world

Yeah, I agree with your analysis.

Ranjit> If we really want "extern" in our declarations (why?),
Ranjit> we should modify the JNIEXPORT definition for POSIXy
Ranjit> systems appropriately.

I think there's no reason to bother.

BTW, Mark, I agree it would be great if kaffe started using the
Classpath jni.h.  There's no point in having different versions of
this file.  (Ideally in Classpath we'd get rid of the "jni.h.in" hack,
and in libgcj we'd pull some code into jni_md.h so that we can also be
completely in sync.)

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]