This is a small utility library, based on somethings I read about decision/ condition tables.
The main principle is, execute a function when certain data exists or not.
The table below helps visualize how this works. The function on the left will be called if the data requirements are met.
Contrived Table
Function | User Data | Login Data | Network Data | Error Data |
---|---|---|---|---|
TryLogin() | - | Exists | Exists | - |
LoginFailed() | - | - | - | Exists |
RetryLogin() | Not Exist | Exists | Exists | Exists |
ShowLogout() | Exists | - | Exists | - |
ShowError() | - | - | - | Exists |
You can Find an bigger example in the test folder.
There is nothing special going on here, just build the 'C' files, with and include the 'include' path.
cc src/datadrive.c test/main.c -I ./include/ -Wall
- Allow the user to decide how big the data buffer is.
- Some unit tests.
- Some performances tests (Around CLZ).
- Some CI.
Things I read that made me want to write this.