summaryrefslogtreecommitdiffstats
path: root/src/util.c
AgeCommit message (Collapse)AuthorFilesLines
2020-12-18Fix build with ancient GCCDavid Robillard1-2/+2
2020-11-17Suppress internal deprecation warnings about serd_uri_to_path()David Robillard1-0/+9
This function is deprecated, but is only used here in the implementation of lilv_uri_to_path() which is also deprecated (for the same reason), so application code will still get the warning.
2020-08-06Rename some filename utilities for clarityDavid Robillard1-1/+1
Loosely inspired by Python and the std::filesystem API.
2020-08-06Separate filesystem utilitiesDavid Robillard1-383/+1
2020-07-16Fix potential va_list leakDavid Robillard1-0/+1
2020-07-16Add missing variable initializationsDavid Robillard1-2/+2
2020-07-16Fix conversion warningsDavid Robillard1-1/+1
2020-07-16Only define Windows path utility function on WindowsDavid Robillard1-0/+2
Avoids a warning about an unused fuction.
2020-06-19Check for CreateSymbolicLink at configure timeDavid Robillard1-18/+2
This uses the system CreateSymbolicLink if it is available at compile time, and if not, just acts as if the link failed (which is extremely likely anyway). This removes the ugly wrapper code that has been a constant source of compatibility headaches with weird toolchains.
2020-01-18Ensure state directory path always ends in a separatorDavid Robillard1-0/+19
This can cause problems when resolving relative paths against the bundle directory, and it's simpler to ensure that the path always ends in a separator than deal with both cases in every place it is used.
2019-10-17Fix Windows warningsDavid Robillard1-1/+5
2019-04-15Fix lilv_mkdir_p when used with forward slashes on WindowsDavid Robillard1-2/+3
2019-04-14Remove support for OSX < 10.6David Robillard1-11/+1
2019-01-13Update copyright datesDavid Robillard1-1/+1
2019-01-13Clean up includesDavid Robillard1-13/+18
Sorts includes from local to global (which catches errors) and fixes missing includes found by the resulting breakage and include-what-you-use.
2018-09-16Make handle parameter to lilv_path_exists constDavid Robillard1-2/+3
2018-09-15Fix building as C for WindowsRobin Gareus1-1/+4
2018-09-15Fix Windows and MinGW buildRobin Gareus1-1/+1
2018-09-15Fix creating directories across drives on WindowsDavid Robillard1-2/+17
2018-07-10Fix saving state when broken links are encounteredDavid Robillard1-0/+5
2018-07-10Fix Windows/MSVC buildDavid Robillard1-1/+3
2018-07-10Handle NULL gracefully in lilv_realpathDavid Robillard1-0/+4
2017-12-29Remove dead codeDavid Robillard1-5/+0
2017-12-29Use braces everywhereDavid Robillard1-1/+2
2017-02-12Remove use of deprecated readdir_rDavid Robillard1-5/+1
2016-10-01Transition away from deprecated _BSD_SOURCEDavid Robillard1-0/+1
2016-09-18Fix memory, file, and library leaksDavid Robillard1-0/+1
2016-09-16Add missing includeDavid Robillard1-2/+3
2016-07-31Fix Windows compilationDavid Robillard1-0/+2
2016-07-14Clean up and remove dead codeDavid Robillard1-7/+4
2016-07-12Fix state file versioningDavid Robillard1-28/+18
2016-03-16Always look up CreateSymbolicLink on WindowsRobin Gareus1-2/+0
2015-10-29Fix long linesDavid Robillard1-1/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5800 a436a847-0d15-0410-975c-d299462d15a1
2015-10-08Improve test coverageDavid Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5754 a436a847-0d15-0410-975c-d299462d15a1
2015-10-07Fix directory walking on some systemsDavid Robillard1-3/+10
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5750 a436a847-0d15-0410-975c-d299462d15a1
2015-10-04Fix compilation on BSDDavid Robillard1-1/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5744 a436a847-0d15-0410-975c-d299462d15a1
2015-10-04Improve test coverageDavid Robillard1-16/+10
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5742 a436a847-0d15-0410-975c-d299462d15a1
2015-08-14Add lilv_free() for systems picky about such things.David Robillard1-0/+6
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5706 a436a847-0d15-0410-975c-d299462d15a1
2015-08-13Fix lilv_realpath() on pre-POSIX-2008 systems.David Robillard1-4/+14
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5705 a436a847-0d15-0410-975c-d299462d15a1
2015-01-29Add lilv_file_uri_parse() for correct URI to path conversion.David Robillard1-0/+6
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5528 a436a847-0d15-0410-975c-d299462d15a1
2015-01-26Add missing include.David Robillard1-0/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5525 a436a847-0d15-0410-975c-d299462d15a1
2014-11-22Windows fixes (thanks John Emmas).David Robillard1-0/+14
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5491 a436a847-0d15-0410-975c-d299462d15a1
2014-11-17Fix a few minor/unlikely memory errors.David Robillard1-2/+4
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5484 a436a847-0d15-0410-975c-d299462d15a1
2014-08-08Use Markdown in doc comments for better source readability.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5429 a436a847-0d15-0410-975c-d299462d15a1
2014-08-08Update copyright dates.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5423 a436a847-0d15-0410-975c-d299462d15a1
2014-08-08Fix various warnings.David Robillard1-4/+4
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5421 a436a847-0d15-0410-975c-d299462d15a1
2012-08-09Use existing PAGE_SIZE if defined (fix compilation on Haiku).David Robillard1-3/+6
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4640 a436a847-0d15-0410-975c-d299462d15a1
2012-08-09Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes ↵David Robillard1-2/+2
-Wmissing-prototypes. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4631 a436a847-0d15-0410-975c-d299462d15a1
2012-05-13Gracefully handle allocation failure.David Robillard1-1/+6
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4393 a436a847-0d15-0410-975c-d299462d15a1
2012-04-06Fix compilation on Windows.David Robillard1-4/+5
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4150 a436a847-0d15-0410-975c-d299462d15a1