cute_framework icon indicating copy to clipboard operation
cute_framework copied to clipboard

Separate out hashtable/string/array C API into a SFH (ckit.h)

Open RandyGaul opened this issue 3 months ago • 2 comments

The main issue here is dependencies. For example the docs parser only uses some tables strings and arrays, but, depends on CF making CI builds for docs way slower than they should be. There's little reason to deeply embed these things altogether.

Most of this work is already done: https://github.com/RandyGaul/ckit.h

Remaining work is to get string over, and to think about perhaps making a separate header for the "advanced" hashtable (variable sized keys/values).

RandyGaul avatar Oct 08 '25 18:10 RandyGaul

I think the docsparser could be defined separately in CMake, with only 2-3 files. It should probably be moved to scripts/ or tools/ directory, too. Another option is using different tech, like Python or Ruby 😉

pusewicz avatar Oct 08 '25 20:10 pusewicz

Yes agreed, and I’m not opposed to eg python for a tool like this per se, it’s that I’m familiar with C so the risk of maintenance is lower in C land. Also, it’s a really great way to exercise more of the CF api and ensure its quality (dogfooding).

RandyGaul avatar Oct 08 '25 21:10 RandyGaul