summaryrefslogtreecommitdiffhomepage
path: root/src/cregex.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-06-09 19:31:59 +0200
committerTyge Løvset <[email protected]>2023-06-09 19:31:59 +0200
commit72b0f0e7839b487a5df7c79ffe84511480cad251 (patch)
treee38e997c39bbaad183250c39971222e48bb2d59e /src/cregex.c
parentabd3b4372dee2291a81271f02588228279139960 (diff)
downloadSTC-modified-72b0f0e7839b487a5df7c79ffe84511480cad251.tar.gz
STC-modified-72b0f0e7839b487a5df7c79ffe84511480cad251.zip
Fixed issues with linking params i_implement, i_extern.
Diffstat (limited to 'src/cregex.c')
-rw-r--r--src/cregex.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/cregex.c b/src/cregex.c
index 730d35a4..62a64b11 100644
--- a/src/cregex.c
+++ b/src/cregex.c
@@ -25,9 +25,24 @@ THE SOFTWARE.
*/
#ifndef CREGEX_C_INCLUDED
#define CREGEX_C_INCLUDED
-#include <stc/cstr.h>
-#include <stc/cregex.h> // header only
+
#include <setjmp.h>
+#ifdef i_extern
+# define _i_extern
+#endif
+#ifndef CREGEX_H_INCLUDED
+# include "../include/stc/cregex.h"
+#endif
+#ifdef _i_extern
+# include "utf8code.c"
+#endif
+#ifdef _i_extern
+# define i_implement
+#else
+# undef i_implement
+#endif
+#undef _i_extern
+#include "../include/stc/cstr.h"
typedef uint32_t _Rune; /* Utf8 code point */
typedef int32_t _Token;