diff options
Diffstat (limited to 'lib/unicode/string/u8upper.c')
-rw-r--r-- | lib/unicode/string/u8upper.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/unicode/string/u8upper.c b/lib/unicode/string/u8upper.c index 5da49ba..df25ee7 100644 --- a/lib/unicode/string/u8upper.c +++ b/lib/unicode/string/u8upper.c @@ -1,6 +1,7 @@ #include <errno.h> #include <stdckdint.h> +#include "macros.h" #include "mbstring.h" #include "unicode/prop.h" #include "unicode/string.h" @@ -9,6 +10,9 @@ char8_t * u8upper(size_t *dstn, struct u8view sv, enum caseflags flags, alloc_fn alloc, void *alloc_ctx) { + ASSUME(dstn != nullptr); + ASSUME(alloc != nullptr); + struct ucctx ctx = { .az_or_tr = flags & CF_LANG_AZ, .lt = flags & CF_LANG_LT, |