Skip to content

Wide character type is inconsistent with Zilog ABI #51

@calc84maniac

Description

@calc84maniac

ZDS II defines wchar_t as follows:

#ifndef WCHAR_T_DEFINED
#define WCHAR_T_DEFINED
typedef unsigned short wchar_t;
#endif

Meanwhile in ez80-clang, it's defined as SignedShort:

WCharType = SignedShort;

This type is unlikely to have been used yet in existing code, so it might be good to fix it sooner than later as there's beginning to be some implementation of the C wide character functions.

Signed wide characters would also cause a collision with WEOF if it's defined as -1 (as it is in the CE toolchain).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions