Skip to content

Commit

Permalink
Merge pull request #9724 from keymanapp/chore/core/9722-rename-km_kbp…
Browse files Browse the repository at this point in the history
…_-to_km_core_

chore: rename km_kbp_ to km_core_
  • Loading branch information
mcdurdin authored Oct 10, 2023
2 parents a3bcc8b + 97634f5 commit 7806192
Show file tree
Hide file tree
Showing 105 changed files with 3,215 additions and 3,215 deletions.
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

0 comments on commit 7806192

Please sign in to comment.