aboutsummaryrefslogtreecommitdiff
path: root/include/ini.h
Commit message (Collapse)AuthorAgeFilesLines
* Rebrand OhMyCal (OMC) as STASIS (#7)Joseph Hunkeler2024-06-211-3/+3
|
* Unit tests (#6)Joseph Hunkeler2024-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial commit of unit tests [WIP] * Address shortcomings and bugs flushed out by unit tests * Enable unit testing in CI workflow * Enable verbose ctests * Handle lack of __FILE_NAME__ define * Only podman support `run --arch` argument * Skip docker build testing if CI system cannot pull an image * Remove errant call to puts() * Identify local repo user * Fix missing xmllint * NULL terminate arrays * Fix filename assignment in is_url mode * Break loop when expected lines are exhausted * strcmp_array expects NULL terminated array. Iterating by size in this case passes NULL to strcmp leading to an invalid read * Remove debug printf statements * Disable a few warnings for tests * Workaround for ctest junit xml truncation * Update checkout@v4 * Prevent false-positive result * Return zero on error * Fix strlist_remove function * Value argument can be constant * Fix test to match changes to startswith and endswith * Add test_ini.c * Fix redaction code to accept NULL pointers in array * And let the caller specify the length of the array of strings to redact. * Redactions now occur directly on authentication strings rather than their command line arguments * Fix BUILD_TESTING_DEBUG * Adds missing -D argument
* Add ini_has_key() and expose ini_section_search() functionJoseph Hunkeler2024-04-151-0/+20
| | | | * ini_section_search now has three matching modes _EXACT, _BEGINS, and _SUBSTR
* Add ini_setval() functionJoseph Hunkeler2024-04-151-0/+13
|
* Changes to ini_write() behavior:Joseph Hunkeler2024-04-021-1/+5
| | | | | | * Caller can choose to dump raw unmodified key/value pairs, or render all values through the template engine * Fixes spurious line feeds injected into the output stream * Uses LINE_SEP instead of "\n"
* Replace ini_show with ini_writeJoseph Hunkeler2024-03-141-2/+4
| | | | * One can still display the ini configuration by using ini_show(iniptr, stdout);
* Rebrand for the last timeJoseph Hunkeler2023-11-201-3/+3
| | | | | * Shorten OHMYCAL to OMC * Rename ohmycal.h to omc.h
* Add commentsJoseph Hunkeler2023-11-031-29/+156
|
* Initial commitJoseph Hunkeler2023-10-261-0/+54