Re: missing types in GType



On Sat, 2008-07-19 at 12:17 +0200, Roberto -MadBob- Guido wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Is there any reason for which in the fundamental types listed in GType there 
> is no reference to int short values and wide chars ( wchar_t ) strings?
> Is it a desired missing or there are projects to include them in future?

int short: gint16

it is vastly preferable to be precise when naming data types. "short"
and "long" do not unambiguously define types. "int16_t" (ANSI C and C++)
or gint16 make it clear that you want a 16 bit integral value.

wchar_t is widely derided on unix platforms. its not useful and should
apparently be forgotten about if you want to write cross-platform code.
its not how internationalization is done on most POSIX-ish OS's.

--p





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]