summaryrefslogtreecommitdiffstats
path: root/src/util.c
AgeCommit message (Collapse)AuthorFilesLines
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
2012-03-10Tolerate nonexistent paths in lilv_realpath.David Robillard1-1/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4043 a436a847-0d15-0410-975c-d299462d15a1
2012-03-08Fix memory leaks.David Robillard1-33/+37
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4028 a436a847-0d15-0410-975c-d299462d15a1
2012-02-01Windows compatibility fixes.David Robillard1-18/+20
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3971 a436a847-0d15-0410-975c-d299462d15a1
2012-01-28Update state interface to support multiple state snapshots with shared files.David Robillard1-16/+99
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3967 a436a847-0d15-0410-975c-d299462d15a1
2012-01-18Fix memory leaks.David Robillard1-5/+8
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3966 a436a847-0d15-0410-975c-d299462d15a1
2012-01-18Fix memory error (fix #810).David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3965 a436a847-0d15-0410-975c-d299462d15a1
2012-01-17Tidy.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3959 a436a847-0d15-0410-975c-d299462d15a1
2012-01-17Add test cases for lilv_expand and fix bugs.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3958 a436a847-0d15-0410-975c-d299462d15a1
2012-01-17Remove use of wordexp.David Robillard1-27/+68
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3957 a436a847-0d15-0410-975c-d299462d15a1
2012-01-17Support compilation as C++ under MSVC++,David Robillard1-14/+42
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3955 a436a847-0d15-0410-975c-d299462d15a1
2012-01-16Use correct WIN32 define.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3954 a436a847-0d15-0410-975c-d299462d15a1
2012-01-14Lint.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3948 a436a847-0d15-0410-975c-d299462d15a1
2012-01-09Make lilv_state_save take a full filename with extension.David Robillard1-0/+15
Use a proper path joining function for separator normalisation. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3927 a436a847-0d15-0410-975c-d299462d15a1
2012-01-08Fix compilation on Mac OS X.David Robillard1-2/+6
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3923 a436a847-0d15-0410-975c-d299462d15a1
2012-01-08Move all non-portable stuff to util.c.David Robillard1-2/+37
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3921 a436a847-0d15-0410-975c-d299462d15a1
2012-01-08Localise directory traversal stuff.David Robillard1-34/+49
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3920 a436a847-0d15-0410-975c-d299462d15a1
2012-01-08Use flock instead of lockf (seems to be more portable).David Robillard1-3/+6
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3919 a436a847-0d15-0410-975c-d299462d15a1
2012-01-08Add file support to state implementation.David Robillard1-1/+223
Use cleaner and more consistent names for world URIs. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3918 a436a847-0d15-0410-975c-d299462d15a1
2012-01-04Implement proper support for LV2_STATE_BUNDLE.David Robillard1-0/+39
Test saving state to default bundle path. Fix memory leaks. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3915 a436a847-0d15-0410-975c-d299462d15a1
2011-11-06Remove unnecessary _XOPEN_SOURCE defines causing problems on FreeBSD.David Robillard1-2/+0
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3600 a436a847-0d15-0410-975c-d299462d15a1
2011-05-24Re-use the SordNode of blank nodes when copying.David Robillard1-10/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3309 a436a847-0d15-0410-975c-d299462d15a1
2011-04-29Tidy.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3238 a436a847-0d15-0410-975c-d299462d15a1
2011-04-29Rename command line utilities to avoid clashing with slv2.David Robillard1-3/+3
Fix indentation. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3235 a436a847-0d15-0410-975c-d299462d15a1
2011-04-29Remove half-assed qname API.David Robillard1-23/+0
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3226 a436a847-0d15-0410-975c-d299462d15a1
2011-04-29Don't hide pointers behind typedefs.David Robillard1-1/+1
Use const appropriately in API (makes it clear from the type whether objects should be freed or not). git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3222 a436a847-0d15-0410-975c-d299462d15a1
2011-04-28Rename slv2 to lilv.David Robillard1-8/+8
API breakage was proving too much of a hassle, and would be even further of a mess after release and packaging. Best to make a clean break now, and fix installation to support parallel installs and prevent this kind of problem in the future. git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3217 a436a847-0d15-0410-975c-d299462d15a1
2011-04-23Improve node struct alignmentDavid Robillard1-2/+3
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3196 a436a847-0d15-0410-975c-d299462d15a1
2011-04-22Switch to ISC license (legally equivalent to MIT license but with less ↵David Robillard1-20/+11
obnoxious lawyer noise). git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3187 a436a847-0d15-0410-975c-d299462d15a1
2011-04-16Squeeze blank lines and delete trailing whitespace.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3152 a436a847-0d15-0410-975c-d299462d15a1
2011-03-28Fix Windows buildDavid Robillard1-2/+17
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3129 a436a847-0d15-0410-975c-d299462d15a1
2011-03-06Relicense to 2-clause BSD... for the good of LV2... and hopefully me... ↵David Robillard1-17/+24
eventually... in some very abstract kind of way... :/ git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3041 a436a847-0d15-0410-975c-d299462d15a1
2011-02-12Document entire API in a single header/page.David Robillard1-1/+0
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2925 a436a847-0d15-0410-975c-d299462d15a1
2011-02-11Tidy up includes.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2920 a436a847-0d15-0410-975c-d299462d15a1
2011-02-11Better, tested, i18n system.David Robillard1-16/+29
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2916 a436a847-0d15-0410-975c-d299462d15a1