Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Stop iteration on match | Joseph Hunkeler | 2024-04-15 | 1 | -0/+3 |
| | |||||
* | Add ini_has_key() and expose ini_section_search() function | Joseph Hunkeler | 2024-04-15 | 1 | -9/+53 |
| | | | | * ini_section_search now has three matching modes _EXACT, _BEGINS, and _SUBSTR | ||||
* | Add ini_setval() function | Joseph Hunkeler | 2024-04-15 | 1 | -0/+18 |
| | |||||
* | Fix invalid read on operator | Joseph Hunkeler | 2024-04-12 | 1 | -1/+5 |
| | | | | * If no data exists beyond the operator, set the value to an empty string | ||||
* | Fix size of data array in section | Joseph Hunkeler | 2024-04-12 | 1 | -4/+4 |
| | | | | * Fix realloc error handler | ||||
* | Changes to ini_write() behavior: | Joseph Hunkeler | 2024-04-02 | 1 | -7/+20 |
| | | | | | | * 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" | ||||
* | Lock output behind DEBUG define | Joseph Hunkeler | 2024-04-02 | 1 | -0/+9 |
| | |||||
* | Close handle | Joseph Hunkeler | 2024-03-25 | 1 | -0/+1 |
| | |||||
* | Fix up section->data realloc | Joseph Hunkeler | 2024-03-24 | 1 | -4/+17 |
| | | | | * Add error handling | ||||
* | Duplicate keys and values instead of copying their pointers. | Joseph Hunkeler | 2024-03-22 | 1 | -15/+31 |
| | | | | * ini_open uses the stack instead of malloc | ||||
* | Fix size of realloc'd data | Joseph Hunkeler | 2024-03-22 | 1 | -6/+12 |
| | | | | * Fix up error handling for relloc'd data | ||||
* | Move collapse_whitespace to utils.c / utils.h | Joseph Hunkeler | 2024-03-22 | 1 | -11/+0 |
| | |||||
* | Replace ini_show with ini_write | Joseph Hunkeler | 2024-03-14 | 1 | -4/+23 |
| | | | | * One can still display the ini configuration by using ini_show(iniptr, stdout); | ||||
* | Use do/while in guard_* macros to make them behave more like functions | Joseph Hunkeler | 2024-03-10 | 1 | -11/+11 |
| | |||||
* | Fixes several memory leaks | Joseph Hunkeler | 2024-02-26 | 1 | -1/+0 |
| | |||||
* | * Fix segmentation fault in ini_data_get() when section_name is not found | Joseph Hunkeler | 2024-01-30 | 1 | -25/+25 |
| | | | | | | * Rename ini_section_record() to ini_section_create() * Remove unnecessary trigger from unquote() * Rename long_data to multiline_data to visually clarify what's going on | ||||
* | guard_free() all pointers | Joseph Hunkeler | 2023-12-10 | 1 | -14/+11 |
| | |||||
* | Remove trailing whitespace from key name | Joseph Hunkeler | 2023-12-10 | 1 | -2/+4 |
| | |||||
* | Fix segfault when section is not present | Joseph Hunkeler | 2023-12-10 | 1 | -0/+4 |
| | |||||
* | Fix segfault on invalid section name | Joseph Hunkeler | 2023-12-10 | 1 | -0/+7 |
| | |||||
* | Bugfix: Test for a comment first, then act accordingly, instead of testing ↵ | Joseph Hunkeler | 2023-11-21 | 1 | -3/+3 |
| | | | | only when a variable is being read | ||||
* | Fixes: | Joseph Hunkeler | 2023-11-20 | 1 | -47/+53 |
| | | | | | | | | | * ini_section_record() returns status now * Reading long data variables (multi-line arrays) behaves consistently Refactor: * ini_data_record() is now ini_data_append() | ||||
* | Implements slightly improved error handling | Joseph Hunkeler | 2023-11-20 | 1 | -8/+17 |
| | | | | | | | * Return status from conda_ and delivery_ functions * Caller prints meaningful error, and handles it * Enable warnings during compilation * Squelch format-truncation warning -- those strings are extremely unlikely to overflow (famous last words) | ||||
* | Replaces BUFSIZ with OMC_BUFSIZ | Joseph Hunkeler | 2023-11-20 | 1 | -4/+4 |
| | |||||
* | Rebrand for the last time | Joseph Hunkeler | 2023-11-20 | 1 | -1/+1 |
| | | | | | * Shorten OHMYCAL to OMC * Rename ohmycal.h to omc.h | ||||
* | Only truncate value when length is greater than zero | Joseph Hunkeler | 2023-10-31 | 1 | -67/+6 |
| | | | | * Remove unused code/comments | ||||
* | Initial commit | Joseph Hunkeler | 2023-10-26 | 1 | -0/+409 |