minimal cross-platform standalone C headers
This report summarizes scanner evidence for floooh/sokol, a C project with 10,400 GitHub stars. SynthScan examined 111,481 lines of code across 135 source files, recording 295 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 3.7 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 258 finding(s).
Are imports declared and package/API names verified? 19 finding(s).
Are wrappers, guards, and repeated structures necessary? 23 finding(s).
Which changes need focused human review? 295 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 295 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sokol_args.h | 361 | #ifdef __cplusplus | COMMENT |
| LOW | sokol_args.h | 381 | #if defined(__EMSCRIPTEN__) | COMMENT |
| LOW | sokol_args.h | 401 | #else | COMMENT |
| LOW | sokol_audio.h | 541 | 3. This notice may not be removed or altered from any source | COMMENT |
| LOW | sokol_audio.h | 721 | COMMENT | |
| LOW | sokol_audio.h | 741 | #ifndef NDEBUG | COMMENT |
| LOW | sokol_audio.h | 761 | COMMENT | |
| LOW | sokol_audio.h | 781 | #elif defined(__ANDROID__) | COMMENT |
| LOW | sokol_audio.h | 801 | #if defined(SOKOL_DUMMY_BACKEND) | COMMENT |
| LOW | sokol_audio.h | 821 | #endif | COMMENT |
| LOW | sokol_audio.h | 841 | #endif | COMMENT |
| LOW | sokol_audio.h | 861 | #if __has_feature(objc_arc) && !__has_feature(objc_arc_fields) | COMMENT |
| LOW | sokol_audio.h | 881 | #include <alloca.h> | COMMENT |
| LOW | sokol_log.h | 101 | 3. This notice may not be removed or altered from any source | COMMENT |
| LOW | sokol_log.h | 141 | // ██ ███ ███ ██████ ██ ███████ ███ ███ ███████ ███ ██ ████████ █████ ████████ ██ ██████ ███ ██ | COMMENT |
| LOW | sokol_log.h | 161 | #define SOKOL_ASSERT(c) assert(c) | COMMENT |
| LOW | sokol_log.h | 181 | #elif defined(_WIN32) | COMMENT |
| LOW | sokol_log.h | 201 | #ifndef NOMINMAX | COMMENT |
| LOW | sokol_app.h | 1341 | 3. This notice may not be removed or altered from any source | COMMENT |
| LOW | sokol_app.h | 2301 | COMMENT | |
| LOW | sokol_app.h | 2321 | COMMENT | |
| LOW | sokol_app.h | 2341 | #define _SAPP_MAX_TITLE_LENGTH (128) | COMMENT |
| LOW | sokol_app.h | 2361 | #else | COMMENT |
| LOW | sokol_app.h | 2381 | #error("sokol_app.h: unknown 3D API selected for Win32, must be SOKOL_D3D11, SOKOL_GLCORE, SOKOL_WGPU, SOKOL_VULKAN | COMMENT |
| LOW | sokol_app.h | 2401 | #endif | COMMENT |
| LOW | sokol_app.h | 2421 | COMMENT | |
| LOW | sokol_app.h | 2441 | COMMENT | |
| LOW | sokol_app.h | 2461 | #ifndef GL_SILENCE_DEPRECATION | COMMENT |
| LOW | sokol_app.h | 2481 | #import <QuartzCore/CADisplayLink.h> | COMMENT |
| LOW | sokol_app.h | 2501 | #pragma warning(disable:4055) /* 'type cast': from data pointer */ | COMMENT |
| LOW | sokol_app.h | 2521 | COMMENT | |
| LOW | sokol_app.h | 2541 | COMMENT | |
| LOW | sokol_app.h | 2561 | #include <unistd.h> | COMMENT |
| LOW | sokol_app.h | 2581 | #include <X11/Xmd.h> /* CARD32 */ | COMMENT |
| LOW | sokol_app.h | 2601 | #endif | COMMENT |
| LOW | sokol_app.h | 3001 | #define WGL_TYPE_RGBA_ARB 0x202b | COMMENT |
| LOW | sokol_app.h | 3101 | EGLContext context; | COMMENT |
| LOW | sokol_app.h | 3121 | #define GLX_DOUBLEBUFFER 5 | COMMENT |
| LOW | sokol_app.h | 3341 | #elif defined(_SAPP_EMSCRIPTEN) | COMMENT |
| LOW | sokol_app.h | 3361 | #if defined(_SAPP_ANY_GL) | COMMENT |
| LOW | sokol_app.h | 3381 | static const char* _sapp_log_messages[] = { | COMMENT |
| LOW | sokol_app.h | 4381 | // | COMMENT |
| LOW | sokol_app.h | 5241 | _sapp.vk.device, | COMMENT |
| LOW | sokol_app.h | 5301 | COMMENT | |
| LOW | sokol_app.h | 7221 | @end | COMMENT |
| LOW | sokol_app.h | 8101 | // NOTE: charCode doesn't appear to be supported on Android Chrome | COMMENT |
| LOW | sokol_app.h | 8981 | #if defined(SOKOL_DEBUG) | COMMENT |
| LOW | sokol_app.h | 14441 | _sapp_discard_state(); | COMMENT |
| LOW | sokol_time.h | 101 | COMMENT | |
| LOW | sokol_time.h | 141 | #endif | COMMENT |
| LOW | sokol_fetch.h | 921 | 3. This notice may not be removed or altered from any source | COMMENT |
| LOW | sokol_fetch.h | 1121 | inline sfetch_handle_t sfetch_send(const sfetch_request_t& request) { return sfetch_send(&request); } | COMMENT |
| LOW | sokol_fetch.h | 1141 | #include <string.h> /* memset, memcpy */ | COMMENT |
| LOW | sokol_fetch.h | 1161 | #ifndef SOKOL_ASSERT | COMMENT |
| LOW | sokol_fetch.h | 1181 | #define _SFETCH_PLATFORM_WINDOWS (0) | COMMENT |
| LOW | sokol_fetch.h | 1201 | #define _SFETCH_PLATFORM_WINDOWS (0) | COMMENT |
| LOW | sokol_fetch.h | 1361 | sfetch_desc_t desc; | COMMENT |
| LOW | sokol_fetch.h | 1381 | // | COMMENT |
| LOW | sokol_glue.h | 81 | distribution. | COMMENT |
| LOW | sokol_glue.h | 121 | #endif | COMMENT |
| 161 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | bindgen/gen_odin.py | 375 | l(f' when USE_GL && ODIN_ARCH == .arm64 && DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dy | CODE |
| HIGH⚡ | bindgen/gen_odin.py | 376 | l(f' else when USE_GL && ODIN_ARCH == .arm64 && !DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dy | CODE |
| HIGH⚡ | bindgen/gen_odin.py | 377 | l(f' else when USE_GL && ODIN_ARCH == .amd64 && DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dy | CODE |
| HIGH⚡ | bindgen/gen_odin.py | 378 | l(f' else when USE_GL && ODIN_ARCH == .amd64 && !DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dy | CODE |
| HIGH⚡ | bindgen/gen_odin.py | 379 | l(f' else when !USE_GL && ODIN_ARCH == .arm64 && DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dy | CODE |
| HIGH⚡ | bindgen/gen_odin.py | 380 | l(f' else when !USE_GL && ODIN_ARCH == .arm64 && !DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dy | CODE |
| HIGH⚡ | bindgen/gen_odin.py | 381 | l(f' else when !USE_GL && ODIN_ARCH == .amd64 && DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dy | CODE |
| HIGH⚡ | bindgen/gen_odin.py | 382 | l(f' else when !USE_GL && ODIN_ARCH == .amd64 && !DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dy | CODE |
| HIGH | bindgen/gen_odin.py | 410 | l( '} else when ODIN_ARCH == .wasm32 || ODIN_ARCH == .wasm64p32 {') | CODE |
| HIGH⚡ | bindgen/gen_zig.py | 330 | l(f" {field_name}: [*c]const u8 = null,") | CODE |
| HIGH⚡ | bindgen/gen_zig.py | 332 | l(f" {field_name}: ?*const anyopaque = null,") | CODE |
| HIGH⚡ | bindgen/gen_zig.py | 334 | l(f" {field_name}: ?*anyopaque = null,") | CODE |
| HIGH⚡ | bindgen/gen_zig.py | 336 | l(f" {field_name}: ?[*]const {as_zig_prim_type(util.extract_ptr_type(field_type))} = null,") | CODE |
| HIGH⚡ | bindgen/gen_zig.py | 338 | l(f" {field_name}: ?*const fn ({funcptr_args_c(field_type, prefix)}) callconv(.c) {funcptr_result_c(field | CODE |
| HIGH | bindgen/gen_zig.py | 358 | l(f" {field_name}: [{array_sizes[0]}]?*const anyopaque = @splat(null),") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | util/gen_sokol_color.py | 1 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | util/gen_sokol_color.py | 3 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_odin.py | 2 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_odin.py | 6 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_d.py | 2 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_d.py | 10 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_c3.py | 2 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_c3.py | 6 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_zig.py | 2 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_zig.py | 9 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_jai.py | 2 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_jai.py | 6 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_rust.py | 2 | # ------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_rust.py | 8 | # ------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_ir.py | 2 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_ir.py | 4 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_nim.py | 2 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bindgen/gen_nim.py | 8 | #------------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bindgen/gen_odin.py | 232 | CODE | |
| LOW | bindgen/gen_odin.py | 325 | CODE | |
| LOW | bindgen/gen_odin.py | 489 | CODE | |
| LOW | bindgen/gen_odin.py | 512 | CODE | |
| LOW | bindgen/gen_d.py | 289 | CODE | |
| LOW | bindgen/gen_d.py | 418 | CODE | |
| LOW | bindgen/gen_c3.py | 256 | CODE | |
| LOW | bindgen/gen_c3.py | 383 | CODE | |
| LOW | bindgen/gen_c3.py | 404 | CODE | |
| LOW | bindgen/gen_zig.py | 190 | CODE | |
| LOW | bindgen/gen_zig.py | 216 | CODE | |
| LOW | bindgen/gen_zig.py | 267 | CODE | |
| LOW | bindgen/gen_zig.py | 315 | CODE | |
| LOW | bindgen/gen_zig.py | 406 | CODE | |
| LOW | bindgen/gen_zig.py | 445 | CODE | |
| LOW | bindgen/gen_zig.py | 508 | CODE | |
| LOW | bindgen/gen_jai.py | 217 | CODE | |
| LOW | bindgen/gen_jai.py | 294 | CODE | |
| LOW | bindgen/gen_jai.py | 448 | CODE | |
| LOW | bindgen/gen_jai.py | 469 | CODE | |
| LOW | bindgen/gen_rust.py | 248 | CODE | |
| LOW | bindgen/gen_rust.py | 278 | CODE | |
| LOW | bindgen/gen_rust.py | 329 | CODE | |
| LOW | bindgen/gen_rust.py | 402 | CODE | |
| LOW | bindgen/gen_rust.py | 710 | CODE | |
| LOW | bindgen/gen_rust.py | 793 | CODE | |
| LOW | bindgen/gen_ir.py | 59 | CODE | |
| LOW | bindgen/gen_ir.py | 130 | CODE | |
| LOW | bindgen/gen_nim.py | 299 | CODE | |
| LOW | bindgen/gen_nim.py | 452 | CODE | |
| LOW | bindgen/gen_nim.py | 594 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bindgen/gen_odin.py | 161 | def make_odin_module_directory(mod_name): | CODE |
| LOW | bindgen/gen_c3.py | 181 | def as_module_name_for_enum_type(enum_name, prefix): | CODE |
| LOW | bindgen/gen_c3.py | 191 | def as_parent_module_name_for_enum_type(enum_name, prefix): | CODE |
| LOW | bindgen/gen_c3.py | 377 | def gen_function_pointer_aliases(): | CODE |
| LOW | bindgen/gen_jai.py | 155 | def make_jai_module_directory(mod_name): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | sokol_fetch.h | 754 | Here's a simple example of sending 4 requests without upfront buffer | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | util/sokol_gl.h | 2922 | sg_pipeline dummy_id = { SG_INVALID_ID }; | CODE |
| LOW | util/sokol_gl.h | 2923 | return dummy_id; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bindgen/gen_zig.py | 10 | CODE | |
| LOW | bindgen/gen_rust.py | 9 | CODE |