Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
Fix TRE wchar: undefine TRE_WCHAR/TRE_MULTIBYTE (ifdef checks presence)
Martin Vogel6f5b77aeba44
diff --git a/src/foundation/compat_regex.c b/src/foundation/compat_regex.cindex 715ffbbe2..93ab2dd63 100644--- a/src/foundation/compat_regex.c+++ b/src/foundation/compat_regex.c@@ -8,9 +8,9 @@#include <string.h>-#ifdef CBM_USE_TRE+#ifdef _WIN32-/* ── Vendored TRE regex (for environments without system <regex.h>) ── */+/* ── Windows: use vendored TRE regex ─────────────────────────── */#include "../../vendored/tre/regex.h"_Static_assert(sizeof(regex_t) <= 256, "cbm_regex_t opaque buffer too small for TRE regex_t");@@ -120,4 +120,4 @@ void cbm_regfree(cbm_regex_t *r) {regfree(re);}-#endif /* CBM_USE_TRE */+#endif /* _WIN32 */diff --git a/vendored/tre/tre-config.h b/vendored/tre/tre-config.hindex c1785bfbf..3f3632a81 100644--- a/vendored/tre/tre-config.h+++ b/vendored/tre/tre-config.h@@ -5,8 +5,10 @@#define HAVE_WCHAR_H 1#define HAVE_WCTYPE_H 1#define HAVE_MBSTATE_T 1-#define TRE_MULTIBYTE 0-#define TRE_WCHAR 0+/* Do NOT define TRE_MULTIBYTE or TRE_WCHAR — we use single-byte char only.+ * #ifdef checks presence, not value, so defining as 0 still enables them. */+/* #undef TRE_MULTIBYTE */+/* #undef TRE_WCHAR */#define TRE_APPROX 0#define TRE_REGEX_T_FIELD value#define HAVE_MBRTOWC 1