aboutsummaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* file_readlines now accepts STDIN (filename = "-")Joseph Hunkeler2020-05-261-7/+22
|
* Errors set return value and jump to end of functionJoseph Hunkeler2020-05-261-31/+35
|
* NevermindJoseph Hunkeler2020-05-261-0/+1
|
* Make a copy of the pathJoseph Hunkeler2020-05-261-2/+9
|
* Add strlist_append_file()Joseph Hunkeler2020-05-251-10/+94
| | | | * Add reader_strlist_append_file() as default reader function
* readlines() return NULL array instead of array with a blank string.Joseph Hunkeler2020-05-251-1/+0
|
* Error handler:Joseph Hunkeler2020-05-251-0/+5
| | | | | * Add spm_die() * Add SPM_ERR_FETCH to handle non-package download failures
* Implement -F|--from-file argumentJoseph Hunkeler2020-05-251-6/+10
|
* Move file_readlines function out of mirrors.cJoseph Hunkeler2020-05-252-81/+83
|
* Use the correct type to support large return by version_from()Joseph Hunkeler2020-05-241-7/+7
|
* Fix leakJoseph Hunkeler2020-05-241-0/+1
|
* Add version type and functions:Joseph Hunkeler2020-05-241-304/+103
| | | | | | * struct Version * version_{init,read,free} * version_from() now wraps new functions to return a uint64_t
* Add string functions:Joseph Hunkeler2020-05-241-0/+27
| | | | | * isdigit_s() * tolower_s()
* Handle DarwinJoseph Hunkeler2020-05-211-12/+40
|
* Rewrite version_from() to be input agnosticJoseph Hunkeler2020-05-211-7/+137
|
* Add strlist_remove()Joseph Hunkeler2020-05-211-0/+22
|
* Use pkg-configJoseph Hunkeler2020-05-071-1/+4
|
* Adjust compilation flags for DarwinJoseph Hunkeler2020-05-061-2/+7
|
* Add TODO itemJoseph Hunkeler2020-05-061-0/+1
|
* Add install_name_tool and Darwin specific branchesJoseph Hunkeler2020-05-011-3/+22
|
* Add SPM_ERR_NOT_IMPLEMENTED error typeJoseph Hunkeler2020-05-011-0/+1
|
* Fix typoJoseph Hunkeler2020-04-291-1/+1
|
* Add install_name_toolJoseph Hunkeler2020-04-291-57/+38
| | | | * Begin refactoring to support macos more easily
* refactor shlib_deps_objdump to become a generic objdump-erJoseph Hunkeler2020-04-291-4/+87
|
* Fix formatter bugJoseph Hunkeler2020-04-281-1/+1
|
* Remove TODOJoseph Hunkeler2020-04-281-1/+0
|
* Improved strlist:Joseph Hunkeler2020-04-281-59/+54
| | | | | | | * Use strto*() functions instead of ato*() * Add _cmp and _copy functions * Removed compare functions * Replaced qsort call with strsort
* Consolidate platform detection preprocessor checksJoseph Hunkeler2020-04-245-7/+8
|
* Add macos specific codeJoseph Hunkeler2020-04-241-11/+73
|
* Handle NULL reasonJoseph Hunkeler2020-04-211-3/+9
|
* Empty manifests are OK hereJoseph Hunkeler2020-04-201-5/+0
|
* hmmJoseph Hunkeler2020-04-191-2/+2
|
* Properly declare SPM_ERR_STRING globalJoseph Hunkeler2020-04-191-0/+12
|
* Better reporting when a package does not existJoseph Hunkeler2020-04-196-15/+73
| | | | | | | | * Add additional errors * Fix user_input function missing an error return value * spmbuild sources a temporary file instead of output from a sub-shell * Fix indentation problem * A reason can be attached to spmerrno using spmerrno_cause()
* Implement error handlingJoseph Hunkeler2020-04-195-16/+53
| | | | * Die on bad root directory
* Add error handlerJoseph Hunkeler2020-04-191-0/+27
|
* spm_mkdtemp requires a base directory:Joseph Hunkeler2020-04-183-6/+14
| | | | * test_spm_mkdtemp revealed a difference in how variables are stored (Linux vs. MacOS)
* Clean up find_by_strspecJoseph Hunkeler2020-04-141-20/+11
|
* Add functions:Joseph Hunkeler2020-04-141-0/+127
| | | | | | | | | | | touch() fslist() * Add type: struct FSList * Consolidate platform specific includes
* lib/fs.cJoseph Hunkeler2020-04-101-2/+5
|
* Fail if seek failsJoseph Hunkeler2020-04-091-1/+3
|
* relocate() return -1 on NULL argumentsJoseph Hunkeler2020-04-081-3/+10
|
* Add test_relocation_file_replace_text (#14)Joseph Hunkeler2020-04-081-5/+6
| | | | | | | | | * Add test_relocation_file_replace_text * Fix bad BUFSIZ allocation and interaction * Use the line limit not the number of lines * Zero line buffer before next read
* Test replace_text (#13)Joseph Hunkeler2020-04-061-9/+13
| | | | | | | * Add test boilerplate * Add replace_text test * Redo replace_text
* Merge pull request #11 from jhunkeler/strlist-fixesJoseph Hunkeler2020-04-011-5/+31
|\ | | | | strlist: Handle NULL input (for most cases)
| * Handle NULL input (for most cases)Joseph Hunkeler2020-04-011-5/+31
| |
* | Add test_config_read testJoseph Hunkeler2020-04-011-4/+9
|/ | | | * config_read removes whitespace correctly near inline comments
* Fix shell command benchmarkingJoseph Hunkeler2020-03-301-11/+12
|
* bugfix: spm_prompt_user did not capture input and process it as intendedJoseph Hunkeler2020-03-281-54/+19
|
* Add strcmp_array() functionJoseph Hunkeler2020-03-281-0/+41
|