Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wide character type is inconsistent with Zilog ABI #51

Open
calc84maniac opened this issue Jan 16, 2025 · 0 comments
Open

Wide character type is inconsistent with Zilog ABI #51

calc84maniac opened this issue Jan 16, 2025 · 0 comments

Comments

@calc84maniac
Copy link

calc84maniac commented Jan 16, 2025

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant