This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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: Patch: Add JNICALL/JNIEXPORT attributes to JNI functions in jni.h/jni.cc


Tom Tromey wrote:
Ranjit> Most of the JNI functions like "static int _Jv_JNI_FooBar(
Ranjit> ...)" in jni.cc have been redefined as "static int JNICALL
Ranjit> _Jv_JNI_FooBar( ...)"  *except* for those that return pointers
Ranjit> - here I've had to define them as "static JNICALL int *
Ranjit> _Jv_JNI_FooBar( ...)" to avoid compiler errors.

What did you try for the pointer-returning ones?  (Putting it between
the `int' and `*' probably won't work...)  In any case sometimes there
are oddities with attributes; this is the source of an occasional
minor flame war on the gcc list.
Ooops! I seem to have hit a MinGW GCC 3.2 C++ front-end
bug with this! For more details, see the thread starting
with this message posted by me to the mingw-users list:

http://www.geocrawler.com/lists/3/SourceForge/6013/25/10198478/

A couple of workarounds were suggested and if the issue isn't
resolved soon, I'll use these and repost the patch.

Sincerely Yours,
Ranjit.

--
Ranjit Mathew          Email: rmathew AT hotmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/




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