Re:Git's list of banned C functions
by swlkr on Thursday March 04, 2021 @04:51PM
(#26348921)
I'm partial to https://github.com/antirez/sds these days
[ Parent
| on HN ]
The only problem I have with antirez's lib is that he didn't make it into a single header library.
Re:Git's list of banned C functions
by spacechild1 on Friday March 05, 2021 @09:06PM
(#26364582)
Is it so hard to add a single source file to your build system?
If yes, then you can do #include “sds.c“ in some random source file. In fact, that's what so-called header-only libraries in C implicitly do. shudder
A C file implies a compilation unit. For the projects I write I like to have a single compilation unit per binary (what's called a unity build). In the case of C, this doesn't bring much speed to the table, but it allows for a simpler build toolchain none the less.