David Eriksson wrote: > On Wed, 2006-10-18 at 17:44 +0100, Pedro Alves wrote: > >> Hi all, >> >> That warning about casting pointer to non pointer and vice-versa caused by: >> >> /* A handle is usually a void*, but we must guarantee 32-bit! */ >> typedef uint32_t HANDLE; >> >> ... is annoying. >> >> Would it be possible to change it to something like this? >> >> #ifdef __GNUC__ >> >> typedef void* HANDLE; >> #else >> typedef uint32_t HANDLE; >> #endif >> >> I don't have a 64-bit system to test this, but it should force HANDLE to 32 >> bits. >> > > What does __attribute__((mode(SI))) mean? > > http://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html
__attribute__ ((mode)) is documented here: http://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html |mode (|mode|)| This attribute specifies the data type for the declaration—whichever type corresponds to the mode mode. This in effect lets you request an integer or floating point type according to its width. You may also specify a mode of `byte' or `__byte__' to indicate the mode corresponding to a one-byte integer, `word' or `__word__' for the mode of a one-word integer, and `pointer' or `__pointer__' for the mode used to represent pointers. About SI: http://www.delorie.com/gnu/docs/gcc/gccint_53.html (SImode) | SImode : |"Single Integer" mode represents a four-byte integer. Cheers, Pedro Alves ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Synce-devel mailing list Synce-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synce-devel