note on wchar_t portability

From: Tomas Frydrych (tomas@frydrych.uklinux.net)
Date: Mon May 06 2002 - 11:47:48 EDT

  • Next message: Tomas Frydrych: "commit HEAD: Pango stuff"

    I have noticed code like this in the Wordperfect importer:

        afunction(UT_uint32 * pN);
        ...
        wchar_t c;
        afunction(&c);

    This assumes sizeof(wchar_t) == sizeof(UT_uint32). However,
    sizeof(wchar_t) varies on different systems, so this is not portable.

    Tomas



    This archive was generated by hypermail 2.1.4 : Mon May 06 2002 - 11:55:03 EDT