aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* runtime_set takes pointer to char, instead of constant pointer to charJoseph Hunkeler2023-11-201-1/+1
|
* Fix type for counter. ssize_t was expected, but we were using size_t insteadJoseph Hunkeler2023-11-201-3/+3
| | | | * Also removed redundant __environ symbol
* continue_on_error is no longer controlled by the deliveryJoseph Hunkeler2023-11-201-3/+0
| | | | * Moved to the global configuration file, and CLI argument parser
* 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()
* Add shell_output() and use xmkstemp()Joseph Hunkeler2023-11-202-8/+37
|
* Fix warnings and add xmkstempJoseph Hunkeler2023-11-202-6/+30
| | | | | | * Reduce stack usage for status variable in msg() * Bugfix: write OMC_COLOR_RESET to the requested stream instead of stdout * Add helper function xmkstemp to avoid clutter when using disposable files
* Remove unused variablesJoseph Hunkeler2023-11-201-4/+0
|
* Prevent lstrip() will remove leading whitespace and new lines, but NOT if ↵Joseph Hunkeler2023-11-201-3/+8
| | | | | | the line consists of one whitepace or new line character * Document strsort()
* Reduce stack usage for archsuffix variableJoseph Hunkeler2023-11-201-3/+3
| | | | * Add spaces to banner
* Replace mkdir() calls with mkdirs() (from copy.h)Joseph Hunkeler2023-11-201-10/+7
|
* Add copy.cJoseph Hunkeler2023-11-201-0/+1
|
* Use globalsJoseph Hunkeler2023-11-203-0/+15
| | | | | | * continue_on_error set by omc config * always_update_base_environment set by omc config * Passing OMC_MSG_RESTRICT flag to msg() will print only in verbose mode
* Implements slightly improved error handlingJoseph Hunkeler2023-11-207-92/+216
| | | | | | | * 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)
* Implements getopt argument parsingJoseph Hunkeler2023-11-201-3/+132
| | | | | | * Initial SPM_GLOBAL structure * Allow override of target python version * Add usage statement generator
* Add copy.c, copy.hJoseph Hunkeler2023-11-202-0/+210
| | | | | | * copytree() * mkdirs() * copy2()
* RebrandingJoseph Hunkeler2023-11-206-22/+34
|
* Replaces BUFSIZ with OMC_BUFSIZJoseph Hunkeler2023-11-206-15/+15
|
* Rebrand for the last timeJoseph Hunkeler2023-11-2012-29/+35
| | | | | * Shorten OHMYCAL to OMC * Rename ohmycal.h to omc.h
* Rebrand SPM to OHMYCALJoseph Hunkeler2023-11-033-14/+14
|
* Add commentsJoseph Hunkeler2023-11-031-105/+27
|
* Add commentsJoseph Hunkeler2023-11-032-98/+367
|
* Initial commit of example.iniJoseph Hunkeler2023-11-011-0/+56
|
* Remove debug shell callJoseph Hunkeler2023-10-311-8/+2
|
* Add placeholders for conda.tool[_build_]versionJoseph Hunkeler2023-10-311-0/+4
|
* Guard ini_free() in case cfg is not in useJoseph Hunkeler2023-10-311-1/+4
| | | | * Free delivery delivery context
* Remove or disable dead codeJoseph Hunkeler2023-10-311-5/+1
|
* Use new info.release_name memberJoseph Hunkeler2023-10-311-0/+3
|
* Removes code that has moved to various source filesJoseph Hunkeler2023-10-311-142/+0
|
* Consolidate conda_setup_headless() from main.cJoseph Hunkeler2023-10-312-1/+16
|
* Parse output of "printenv -0" to preserve environment correctlyJoseph Hunkeler2023-10-311-10/+30
| | | | | | * Use fgetc in place of fgets * Split key/value on '=' * Issue warnings on invalid key/value
* Consolidate functions and defines from main.cJoseph Hunkeler2023-10-312-5/+133
|
* Add delivery get_spec_header()Joseph Hunkeler2023-10-312-0/+16
|
* Add delivery_free functionJoseph Hunkeler2023-10-312-0/+49
| | | | * Add guard_free_ macros
* Fixes memory leak in conv_ macrosJoseph Hunkeler2023-10-311-3/+4
|
* Add new members to DeliveryJoseph Hunkeler2023-10-311-0/+11
|
* Remove const type constraint from input stringJoseph Hunkeler2023-10-311-1/+1
|
* Consume up to one '=', instead of splitting on all occurrencesJoseph Hunkeler2023-10-311-4/+3
|
* Fixes maximum number of tokens parsed by split() functionJoseph Hunkeler2023-10-311-9/+12
| | | | * Resets the string pointer before returning to avoid freeing the wrong address in memory
* Fixes potential double-free conditionJoseph Hunkeler2023-10-311-2/+7
| | | | | * Only free pStrList->data[i] and pStrList->data if they are not NULL * Free tokenized string after append
* Close dangling file descriptorJoseph Hunkeler2023-10-311-1/+8
| | | | * Only remove temporary script file if it exists
* msg() function is now type voidJoseph Hunkeler2023-10-312-3/+14
| | | | * Add debug_shell() function to interactively examine the runtime environment
* Ignore generated documentationJoseph Hunkeler2023-10-311-0/+1
|
* Initial commit of DoxyfileJoseph Hunkeler2023-10-311-0/+405
|
* Only truncate value when length is greater than zeroJoseph Hunkeler2023-10-311-67/+6
| | | | * Remove unused code/comments
* Initial commitJoseph Hunkeler2023-10-2631-0/+4871