aboutsummaryrefslogtreecommitdiff
path: root/src/ini.c
Commit message (Collapse)AuthorAgeFilesLines
* * Fix segmentation fault in ini_data_get() when section_name is not foundJoseph Hunkeler2024-01-301-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 pointersJoseph Hunkeler2023-12-101-14/+11
|
* Remove trailing whitespace from key nameJoseph Hunkeler2023-12-101-2/+4
|
* Fix segfault when section is not presentJoseph Hunkeler2023-12-101-0/+4
|
* Fix segfault on invalid section nameJoseph Hunkeler2023-12-101-0/+7
|
* Bugfix: Test for a comment first, then act accordingly, instead of testing ↵Joseph Hunkeler2023-11-211-3/+3
| | | | only when a variable is being read
* Fixes:Joseph Hunkeler2023-11-201-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 handlingJoseph Hunkeler2023-11-201-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_BUFSIZJoseph Hunkeler2023-11-201-4/+4
|
* Rebrand for the last timeJoseph Hunkeler2023-11-201-1/+1
| | | | | * Shorten OHMYCAL to OMC * Rename ohmycal.h to omc.h
* Only truncate value when length is greater than zeroJoseph Hunkeler2023-10-311-67/+6
| | | | * Remove unused code/comments
* Initial commitJoseph Hunkeler2023-10-261-0/+409