Martin (OpenGeoMap) wrote: >> Neither C nor C++ define the specific sizes of different types. >> Therefore, "long long int" can be different sizes on different >> platforms, or even within different compilers for the same platform. >> Without more information, we cannot say for sure if a "long long int" >> is 64 bits or not on your platform. >> > yes, that´s the reason the define new types in QT or in the glib: > http://library.gnome.org/devel/glib/stable/glib-Basic-Types.html
I thought C99 had spesified these types (i.e. with C99 it is a part of C): http://en.wikipedia.org/wiki/C99 http://en.wikipedia.org/wiki/Stdint.h C99 include file stdint.h defines these types: uint64_t, int64_t, uin32_t, int32_t and so on. C99 also specifies a boolean value 'bool': http://en.wikipedia.org/wiki/Stdbool.h I understand that these types cannot be used directly in code that can be compiled on older compilers that does not support C99. But for those older compilers you can define a compability header file that defines these values. Then you can use C99 datatypes in your code and it is supported for newer and older compilers. And I personally thinks that using explicit datatypes like uin32_t is way more descriptive than 'unsigned int' and similar for datatypes where you really need to know the length. -- Roar Bjørgum Rotvik _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users