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

Fix: Replace wchar with wchar_t for standardization and compatibility #109

Merged
merged 2 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/CppAst.Tests/TestTypeAliases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public void TestSimple()
using Type_bool = bool;
using Type_wchar = wchar_t ;
using Type_wchar_t = wchar_t ;
using Type_char = char;
using Type_unsigned_char = unsigned char;
Expand Down
2 changes: 1 addition & 1 deletion src/CppAst.Tests/TestTypedefs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public void TestSimple()
typedef bool Type_bool;
typedef wchar_t Type_wchar;
typedef wchar_t Type_wchar_t;
typedef char Type_char;
typedef unsigned char Type_unsigned_char;
Expand Down
2 changes: 1 addition & 1 deletion src/CppAst/CppPrimitiveType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public override string ToString()
case CppPrimitiveKind.Void:
return "void";
case CppPrimitiveKind.WChar:
return "wchar";
return "wchar_t";
case CppPrimitiveKind.Char:
return "char";
case CppPrimitiveKind.Short:
Expand Down
Loading