1
1
Fork
You've already forked cleat
0
No description
  • C 95.4%
  • Meson 1.4%
  • Python 1.1%
  • Shell 0.8%
  • C++ 0.5%
  • Other 0.7%
2026年06月09日 21:30:43 -07:00
docs Fix, document and test last commit (GPT 5.5) 2026年06月09日 21:30:43 -07:00
include Fix, document and test last commit (GPT 5.5) 2026年06月09日 21:30:43 -07:00
src Refactor string debug display 2026年06月09日 21:17:41 -07:00
stc Merge commit ' 52d6403612 ' 2026年05月26日 16:56:35 -07:00
test Fix, document and test last commit (GPT 5.5) 2026年06月09日 21:30:43 -07:00
.gitignore Squashed 'stc/' changes from 29490421..6574a39b 2026年05月26日 16:56:35 -07:00
LICENSE Squashed 'stc/' changes from 29490421..6574a39b 2026年05月26日 16:56:35 -07:00
meson.build fix building and tests after STC bump 2026年05月26日 17:59:19 -07:00
readme.md Add cleat.h 2026年01月22日 18:02:04 -08:00
run-tests.sh Extend functionality of test runner script 2026年01月25日 13:52:29 -08:00
setup-example.sh Drop random space from script 2026年05月17日 18:14:00 -07:00

Cleat

Cleat (C Language Extensions And Tools) is a modern standard library for C. APIs are very unstable, documentation is WIP, see docs for what I've written so far.

Using in your project

setup-example.sh can be copied into your project as setup.sh to manage this and other dependencies. You could also use git subtrees, submodules, or any other way of obtaining the code.

Headers

cleat.h pulls in the most common headers (display, failable, panic, etc). It's recommended for source files and projects that are using several cleat's features. It defines a lot of macros and generally pollutes the namespace, so it may not be best to use in headers that you expect third parties to include. For those use the individual headers in the cleat/ subdirectory, and the _minimal versions where possible.

Meson

To use Cleat from meson run subdir('.../cleat') and then add dependencies: [cleat_dep] to your executable/library target. This will pull in both Cleat and the STC it comes vendored with. You can also add c_args: cleat_c_args if you want to enable the default compiler warnings/errors in your project (recommended).

Stability

Cleat is not stable in any way. It has no versions yet, and major breaking API changes are to be expected. It is recommended that you use a specific commit of Cleat and only change that commit when you're ready to fix and upgrade things.

License

Both Cleat and STC (which it comes with) are licensed under MIT.