diff options
| author | Tyge Løvset <[email protected]> | 2023-06-09 19:31:59 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-06-09 19:31:59 +0200 |
| commit | 72b0f0e7839b487a5df7c79ffe84511480cad251 (patch) | |
| tree | e38e997c39bbaad183250c39971222e48bb2d59e /include/stc/utf8.h | |
| parent | abd3b4372dee2291a81271f02588228279139960 (diff) | |
| download | STC-modified-72b0f0e7839b487a5df7c79ffe84511480cad251.tar.gz STC-modified-72b0f0e7839b487a5df7c79ffe84511480cad251.zip | |
Fixed issues with linking params i_implement, i_extern.
Diffstat (limited to 'include/stc/utf8.h')
| -rw-r--r-- | include/stc/utf8.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/include/stc/utf8.h b/include/stc/utf8.h index a4cc3846..338f0db9 100644 --- a/include/stc/utf8.h +++ b/include/stc/utf8.h @@ -1,3 +1,4 @@ + #ifndef UTF8_H_INCLUDED #define UTF8_H_INCLUDED @@ -5,7 +6,6 @@ #include "forward.h" #include "ccommon.h" -// utf8 methods defined in src/utf8code.c: enum { U8G_Cc, U8G_Lt, U8G_Nd, U8G_Nl, U8G_Pc, U8G_Pd, U8G_Pf, U8G_Pi, @@ -16,6 +16,7 @@ enum { U8G_SIZE }; +// utf8 methods defined in src/utf8code.c: extern bool utf8_isgroup(int group, uint32_t c); extern bool utf8_isalpha(uint32_t c); extern uint32_t utf8_casefold(uint32_t c); @@ -112,9 +113,16 @@ STC_INLINE const char* utf8_at(const char *s, intptr_t index) { STC_INLINE intptr_t utf8_pos(const char* s, intptr_t index) { return (intptr_t)(utf8_at(s, index) - s); } - #endif // UTF8_H_INCLUDED -#if defined(i_extern) + +#if defined i_extern || (defined i_implement && !defined _i_no_undef) # include "../../src/utf8code.c" -# undef i_extern #endif +#ifndef _i_no_undef +#undef i_static +#undef i_header +#undef i_implement +#undef i_extern +#undef i_opt +#endif +#undef _i_no_undef |
