Skip to content
  • Rui Ueyama's avatar
    Accept multibyte character as wide character literal · cc2632fb
    Rui Ueyama authored
    On most Unix-like systems, wide character literal is 32-bit long
    and encodes a Unicode code point. On Windows, that is 16-bit
    long and encodes a UTF-16 code unit. Clearly, there's a portability
    issue here. Personally I've never used wide characters in my code
    as I didn't find it useful.
    
    Being said that, some header files contain wide character literal,
    so we need to support that so that chibicc can include such files.
    
    We assume that source files are always encoded in UTF-8.
    cc2632fb