mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-12-05 04:47:43 +08:00
- 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
31 lines
716 B
C
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 */
|