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

chore: rename km_kbp_ to km_core_ #9724

Merged
merged 6 commits into from
Oct 10, 2023
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
12 changes: 6 additions & 6 deletions common/include/km_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ typedef uint8_t KMX_BYTE;
typedef uint16_t KMX_WORD;

#if defined(__cplusplus)
typedef char16_t km_kbp_cp;
typedef char32_t km_kbp_usv;
typedef char16_t km_core_cp;
typedef char32_t km_core_usv;
#else
typedef uint16_t km_kbp_cp; // code point
typedef uint32_t km_kbp_usv; // Unicode Scalar Value
typedef uint16_t km_core_cp; // code point
typedef uint32_t km_core_usv; // Unicode Scalar Value
#endif

typedef km_kbp_cp KMX_WCHAR; // wc, 16-bit UNICODE character
typedef km_core_cp KMX_WCHAR; // wc, 16-bit UNICODE character
typedef KMX_WCHAR* PKMX_WCHAR;

typedef char KMX_CHAR;
Expand All @@ -60,7 +60,7 @@ typedef KMX_DWORD* PKMX_DWORD;

#ifdef USE_CHAR16_T
#define lpuch(x) u ## x
typedef km_kbp_cp KMX_UCHAR;
typedef km_core_cp KMX_UCHAR;
#else
#define lpuch(x) L ## x
typedef wchar_t KMX_UCHAR;
Expand Down
2 changes: 1 addition & 1 deletion common/include/test_assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#endif
#define try_status(expr) { \
auto __s = (expr); \
if (__s != KM_KBP_STATUS_OK) { \
if (__s != KM_CORE_STATUS_OK) { \
_assert_failed(__s, u ## #expr); \
} \
}
Expand Down
2 changes: 1 addition & 1 deletion core/doc/markdown_files/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ Caps Lock.

### Namespace

All calls, types and enums are prefixed with the namespace identifier `km_kbp_`
All calls, types and enums are prefixed with the namespace identifier `km_core_`
Loading