Re: function signature "funny"
Etienne Gagnon <[email protected]> Mon, 13 Jun 2005 10:26:48 -0400
| Newsgroups | gmane.comp.java.vm.sablevm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Peter, David and all, SableVM simply implements the published specification. In http://java.sun.com/docs/books/jni/html/functions.html you can read: GetStringUTFChars Prototype const jbyte * GetStringUTFChars(JNIEnv *env, jstring string, jboolean *isCopy); So, if Sun's "super secret" jni.h is different, I think there's a specification bug. This shows you Sun's arrogance; they don't think that fixing specification bugs is important... I do not look at Sun's jni.h file, as Sun claims that any source code in their software development kit is confidential intellectual property; I have no wish of "stealing" any of their super secret intellectual property. Etienne David Bélanger wrote: > On Sat, Jun 11, 2005 at 01:28:07PM -0400, Grzegorz B. Prokopski wrote: > >>On Wed, 2005-08-06 at 17:50 -0400, Peter Lovell wrote: >> >>>Hi folks, >>>I'm trying to get all the warnings out of code we have and I ran into >>>what seems to be to be an anomaly. >>> >>>Considering the following snippet from jni.h >>> >>> typedef _svmt_s8 jbyte; >>> >>> const jbyte *(JNICALL *GetStringUTFChars) (JNIEnv *env, jstring >>>string, >>> jboolean *isCopy); /* 169 */ >>> void (JNICALL *ReleaseStringUTFChars) (JNIEnv *env, jstring string, >>> const char *utf); /* 170 */ >>> >>>note also that jni_system_specific defines ... >>>typedef signed char _svmt_s8; >> >>Unless I misread, "const jbyte" becomes "const signed char". Isn't that >>just about the same as "const char"? I mean: "const char" is signed >>[*], isn't it? Am I missing something or GCC4 is overpicky here? >> > > > Maybe, but why in SableVM it is jbyte and not char? A small mistake or > there is some reason behind using jbyte that I don't see? -- Etienne M. Gagnon, Ph.D. http://www.info2.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ _______________________________________________ SableVM-devel mailing list [email protected] http://sablevm.org/lists/control/listinfo/sablevm-devel
signature.asc
(application/pgp-signature, 256 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCrZeojyrJi4rH84gRApvmAJ96V+qern8G0qWJN1e8gOd7GaLdFACfeM9E TXt5RjeOJwrRKs0+KFpHw2Y= =ObDq -----END PGP SIGNATURE-----