https://github.com/negrel/xstd.h
Extension of C standard library in pure C11.
https://github.com/negrel/xstd.h
Last synced: 3 months ago
JSON representation
Extension of C standard library in pure C11.
- Host: GitHub
- URL: https://github.com/negrel/xstd.h
- Owner: negrel
- License: mit
- Created: 2024-03-26T14:07:18.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-26T13:05:54.000Z (11 months ago)
- Last Synced: 2025-01-08T09:13:56.437Z (5 months ago)
- Language: C
- Size: 138 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `xstd.h` - Extension of C standard library.
Extension of C standard library in pure C11 in a form of single-file header.
## Get started
To add `xstd` to your project, just copy and paste `xstd.h` which is a vendored
bundle of all header files.### Getting latest bundle
You can get latest/unstable bundle by running `make bundle`
### Running the tests
```shell
make tests
```## Conventions
### Globals
Globals are written in snake case and prefixed with `g_`.
### Type Names
Private type names are written in `snake_case` with an `xstd_` prefix.
Public type names are `typedef` with a `CamelCase` name.
### Interfaces
Interfaces implementations are decoupled in three parts:
* virtual table: a struct containing pointer to methods
* interface struct: a struct containing a pointer to a virtual table and an offset to the body
* body: private field specific to interface implementations## Contributing
If you want to contribute to `xstd.h` to add a feature or improve the code contact
me at [[email protected]](mailto:[email protected]), open an
[issue](https://github.com/negrel/xstd.h/issues) or make a
[pull request](https://github.com/negrel/xstd.h/pulls).## :stars: Show your support
Please give a :star: if this project helped you!
[](https://www.buymeacoffee.com/negrel)
## :scroll: License
MIT © [Alexandre Negrel](https://www.negrel.dev/)