Files
codebase-memory-mcp/vendored/tre/tre_all.c
Martin Vogel 07f82b9c54 Vendor TRE regex for Windows, fix cbm_mkdtemp buffer overflow
- Vendor TRE regex library (BSD-licensed, ~9K LOC) for Windows —
  eliminates the TODO stub that caused all regex tests to fail
- Fix cbm_mkdtemp stack-buffer-overflow: use static buffer for
  /tmp/ → %TEMP%\ path translation (Windows paths are longer)
- Wine test results: 1861 passed, 50 failed (Wine filesystem limits),
  75 skipped — remaining failures are Wine-specific, not Windows bugs
2026-03-19 01:47:37 +01:00

31 lines
716 B
C

/*
* tre_all.c — Single compilation unit for vendored TRE regex library.
* Only compiled on Windows (POSIX systems use system <regex.h>).
*/
#ifdef _WIN32
#include "tre-config.h"
/* Core library sources */
#include "tre-ast.c"
#include "tre-compile.c"
#include "tre-mem.c"
#include "tre-parse.c"
#include "tre-stack.c"
/* Matchers (tre-match-utils.h has include guard to handle being
* included by both matcher .c files in same translation unit) */
#include "tre-match-parallel.c"
#include "tre-match-backtrack.c"
/* Approximate matching + filter */
#include "tre-match-approx.c"
#include "tre-filter.c"
/* POSIX API */
#include "regcomp.c"
#include "regexec.c"
#include "regerror.c"
#endif /* _WIN32 */