Land el cluster: #66 engram search + natives, #79 truncation fix, + release-runtime Windows port (reconciled) #80

Merged
will.anderson merged 14 commits from reconcile/el-cluster-windows-runtime into dev 2026-07-22 21:06:40 +00:00
Showing only changes of commit 5c41c66a0f - Show all commits
+5
View File
@@ -5880,6 +5880,10 @@ el_val_t getpid_now(void) {
* Returns 0 always (the only non-return path is the exit() branch).
*/
el_val_t el_mem_check(void) {
#ifdef _WIN32
/* getrusage is POSIX-only — memory guard disabled on Windows. */
return 0;
#else
/* Read limit from env; default 512 MB. */
long limit_mb = 512;
const char *env_val = getenv("ELC_MAX_MEM_MB");
@@ -5905,6 +5909,7 @@ el_val_t el_mem_check(void) {
exit(1);
}
return 0;
#endif
}
/* ── args() — command-line argument access ──────────────────────────────────