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(infra): no identifiers Windows headers define as macros
Martin Vogel7b379f05b89f
diff --git a/src/discover/language.c b/src/discover/language.cindex e3f87cad7..a9a6d5b36 100644--- a/src/discover/language.c+++ b/src/discover/language.c@@ -980,7 +980,7 @@ CBMLanguage cbm_language_for_extension(const char *ext) {* ignore file (Dockerfile.dockerignore). */static bool lang_dockerfile_variant(const cbm_userconfig_t *ucfg, const char *filename) {static const char *const BASES[] = {"Dockerfile", "Containerfile"};- static const char IGNORE[] = ".dockerignore";+ static const char DOCKERIGNORE[] = ".dockerignore";for (size_t i = 0; i < sizeof(BASES) / sizeof(BASES[0]); i++) {size_t bl = strlen(BASES[i]);char sep = filename[bl];@@ -989,8 +989,8 @@ static bool lang_dockerfile_variant(const cbm_userconfig_t *ucfg, const char *ficontinue;}size_t fl = strlen(filename);- if (fl >= sizeof(IGNORE) - SKIP_ONE &&- strcmp(filename + fl - (sizeof(IGNORE) - SKIP_ONE), IGNORE) == 0) {+ if (fl >= sizeof(DOCKERIGNORE) - SKIP_ONE &&+ strcmp(filename + fl - (sizeof(DOCKERIGNORE) - SKIP_ONE), DOCKERIGNORE) == 0) {return false;}const char *last_dot = strrchr(filename, '.');diff --git a/src/pipeline/pass_docker.c b/src/pipeline/pass_docker.cindex fb6d8730b..4a2d83c2a 100644--- a/src/pipeline/pass_docker.c+++ b/src/pipeline/pass_docker.c@@ -1622,14 +1622,14 @@ static void dk_hub_collect(cbm_pipeline_ctx_t *ctx, CBMArena *a, int64_t img,}atomic_fetch_add_explicit(&g_dk_hub_edges, (uint64_t)n, memory_order_relaxed);}- static const char *const IN[] = {"USAGE", "DEPENDS_ON"};- for (size_t t = 0; t < sizeof(IN) / sizeof(IN[0]); t++) {- if (cbm_gbuf_find_edges_by_target_type(ctx->gbuf, img, IN[t], &es, &n) != 0) {+ static const char *const REF_TYPES[] = {"USAGE", "DEPENDS_ON"};+ for (size_t t = 0; t < sizeof(REF_TYPES) / sizeof(REF_TYPES[0]); t++) {+ if (cbm_gbuf_find_edges_by_target_type(ctx->gbuf, img, REF_TYPES[t], &es, &n) != 0) {continue;}atomic_fetch_add_explicit(&g_dk_hub_edges, (uint64_t)n, memory_order_relaxed);for (int i = 0; i < n; i++) {- if (dk_hub_ref(IN[t], es[i]->properties_json) &&+ if (dk_hub_ref(REF_TYPES[t], es[i]->properties_json) &&dk_prop(es[i]->properties_json, "image", ref, sizeof(ref))) {dk_tag(ref, tag, sizeof(tag));dk_hub_push(a, refs, es[i], tag);