diff options
| author | Tyge Lovset <[email protected]> | 2023-05-21 23:30:25 +0200 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2023-05-21 23:30:25 +0200 |
| commit | 0b34cadda2bc4da1cb0904989c8a5f2fe0236358 (patch) | |
| tree | 038335539ecd9363fbfc70a850a340b291a10888 /include/stc/cregex.h | |
| parent | 56b0884044610861866a1a27fb64276411604986 (diff) | |
| download | STC-modified-0b34cadda2bc4da1cb0904989c8a5f2fe0236358.tar.gz STC-modified-0b34cadda2bc4da1cb0904989c8a5f2fe0236358.zip | |
NB! Made cstr.h header-only by default. Now requires #define i_static, i_implement or i_extern (includes utf8code.c) to implement non-inline functions (or link with libstc).
Diffstat (limited to 'include/stc/cregex.h')
| -rw-r--r-- | include/stc/cregex.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/stc/cregex.h b/include/stc/cregex.h index f90acbf4..bf239ff6 100644 --- a/include/stc/cregex.h +++ b/include/stc/cregex.h @@ -160,12 +160,14 @@ cstr cregex_replace_pattern_6(const char* pattern, const char* input, const char void cregex_drop(cregex* re); #endif // CREGEX_H_INCLUDED -#if defined(i_extern) +#if defined i_extern || defined i_implement # include "../../src/cregex.c" +#endif +#if defined i_extern # include "../../src/utf8code.c" -# undef i_extern #endif #undef i_opt #undef i_header #undef i_static #undef i_implement +#undef i_extern |
