Skip to content

Commit

Permalink
Merge pull request #109 from antonmasnyi/wchar-to-wchar_t
Browse files Browse the repository at this point in the history
Fix: Replace wchar with wchar_t for standardization and compatibility
  • Loading branch information
xoofx authored Nov 13, 2024
2 parents 8c5212e + 4632ef0 commit 953d9f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit 953d9f8

Please sign in to comment.