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: WIN-09.: shs.h, shs.cc, natSimpleSHSStream.cc: use uint<n>_t instead of LONG and BYTE


>>>>> "Adam" == Adam Megacz <patches@lists.megacz.com> writes:

Adam> Is this kosher? uint<n>_t should be more portable than simply
Adam> assuming that a "unsigned int" is 32 bits. Win32 typedef's LONG
Adam> to something obscure anyways.

Can we assume uint<n>_t on all platforms?  Or would we need configury
support here?

Adam> -typedef unsigned char BYTE;
Adam> -typedef unsigned int LONG; /* A 32-bit type */

Simpler in our code would be to use jbyte and jint.
We know jint is a 32-bit integer.
However, I don't know if `unsigned jint' will work or not.

Tom


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