Skip to content

Conversation

@jserv
Copy link
Contributor

@jserv jserv commented Oct 16, 2025

This replaces 128 manually maintained func declarations with automated generation system. The build system automatically generates src/composite-decls.h from src/primitive.c macro patterns.


Summary by cubic

Automated generation of compositing function declarations from src/primitive.c macros. Replaces 128 manual declarations with a build-generated src/composite-decls.h to keep declarations in sync and reduce maintenance.

  • Refactors
    • Added scripts/gen-composite-decls.py to emit 3-operand, 2-operand, and vectorized decls.
    • Updated Makefile to generate src/composite-decls.h and ensure it exists before dependency scanning.
    • Replaced manual decls in src/twin_private.h with #include "composite-decls.h".
    • Ignored the generated header in .gitignore.

This replaces 128 manually maintained func declarations with automated
generation system. The build system automatically generates
src/composite-decls.h from src/primitive.c macro patterns.
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

@jserv jserv merged commit e30be04 into main Oct 16, 2025
9 checks passed
@jserv jserv deleted the gen-composite-decls branch October 16, 2025 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants