• Xavier Leroy's avatar
    PR#6: fix handling of wchar_t and assignments from wide string literals. · 3b8a094d
    Xavier Leroy authored
    - cparser/Machine indicates whether wchar_t is signed or not
      (it is signed int in Linux and BSD, but unsigned short in Win32)
    - The type of a wide string literal is "wchar_t *" if the typedef "wchar_t"
      exists in the environment (e.g. after #include <stddef.h>).  Only if
      wchar_t is not defined do we use the default from Machine.
    - Permit initialization of any integer array from a wide string literal,
      not just an array of wchar_t.