[Patch] Clean up and reformat to config/numeric and time
Paolo Carlini
pcarlini@suse.de
Thu Jun 17 20:51:00 GMT 2004
Martin Sebor wrote:
> Interesting. This is quite similar to our own implementation (we
> also store the wchar_t representation internally, just as glibc
> appears to, but we store it in int32_t for better portability).
Hummm...
> Just a quick observation (it may or may not be relevant): the
> cast might be important if wchar_t is not the same size as int,
> e.g., with -fshort-wchar. But if this code is tied to glibc
> where wchar_t is always the same size as int (and if libstdc++
> doesn't allow -fshort-wchar) it should be safe.
Indeed, this specific file if for the 'gnu' locale model, the one
exploiting un underlying glibc, where, as you says, wchar_t is
always the same size as int (this clean up started from this
observation, indeed!)
Paolo.
More information about the Libstdc++
mailing list