summaryrefslogtreecommitdiffstats
path: root/src/sord.c
AgeCommit message (Collapse)AuthorFilesLines
2020-11-11Fix filtering query modesDavid Robillard1-1/+18
These were incorrect before because the tree was not ordered with respect to the search key. Enabling ZIX_BTREE_SORTED_CHECK (which should probably have a configure option) catches this.
2020-11-11Fix flaky literal comparisonDavid Robillard1-14/+37
2020-11-11Fix another unsigned integer underflowDavid Robillard1-1/+1
2020-11-11Fix unsigned integer underflowDavid Robillard1-1/+1
This is not undefined behaviour, but sanitizers have a check for it that is useful sometimes, and this makes the return value more predictable anyway.
2020-09-26Update zixDavid Robillard1-1/+1
2020-07-17Update zixDavid Robillard1-1/+1
Fixes an issue introduced by 616517f among various other minor things.
2020-07-17Fix potential string null termination issueDavid Robillard1-1/+1
2020-07-17Add missing break statementDavid Robillard1-0/+1
Completely redundant in this case, but avoids a warning.
2020-07-17Fix accidental use of comma operatorDavid Robillard1-1/+1
2020-07-17Remove dead codeDavid Robillard1-3/+0
2020-07-17Fix incorrect printf format specifiersDavid Robillard1-1/+8
2018-01-06Fix build with MSVCDavid Robillard1-1/+1
2017-12-29Remove pointless castDavid Robillard1-1/+1
2017-12-29Fix inconsistent parameter namesDavid Robillard1-90/+91
2017-12-16Fix various minor style issuesDavid Robillard1-13/+25
2016-09-18Fix erasing default graph iteratorsDavid Robillard1-1/+1
2016-07-31Fix compilation with C++David Robillard1-1/+1
2016-07-11Remove pointless assertionDavid Robillard1-1/+0
2016-07-09Fix construction of URIs with UTF-8 charactersDavid Robillard1-3/+2
2016-03-17Return NULL from sord_iter_get for end iteratorsDavid Robillard1-1/+3
2016-03-15Make sord_node_get_counted return byte countDavid Robillard1-2/+12
Also clarify formerly ambiguous documentation, and add sord_node_get_string_measured to get both byte and character counts. Technically, this breaks behaviour, but most (if not all) existing code that uses this function was actually expecting a byte count. This is unsurprising since a UTF-8 character count is almost always useless. This approach causes less problems in reality, since it fixes broken behaviour in the wild without requiring any changes in user code.
2015-10-04Improve test coverageDavid Robillard1-14/+14
git-svn-id: http://svn.drobilla.net/sord/trunk@335 3d64ff67-21c5-427c-a301-fe4f08042e5a
2015-10-03Improve test coverageDavid Robillard1-14/+9
git-svn-id: http://svn.drobilla.net/sord/trunk@331 3d64ff67-21c5-427c-a301-fe4f08042e5a
2015-09-10Fix crash caused by multiple deletion of datatype nodes.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@329 3d64ff67-21c5-427c-a301-fe4f08042e5a
2015-03-07Fix iteration during erase.David Robillard1-4/+16
git-svn-id: http://svn.drobilla.net/sord/trunk@326 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-12-18Fix deleting statements with no graph.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@320 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-11-03Fix bugs with stores that contain both graphs and default graph statements.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@315 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-09-24Add sord_erase() for erasing statements via an iterator.David Robillard1-9/+49
git-svn-id: http://svn.drobilla.net/sord/trunk@310 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-09-23Reduce memory usage and increase performance with a better data structure.David Robillard1-78/+42
git-svn-id: http://svn.drobilla.net/sord/trunk@307 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-08-08Use Markdown in doc comments for better source readability.David Robillard1-5/+5
git-svn-id: http://svn.drobilla.net/sord/trunk@301 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-08-08Update copyright dates.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@298 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-08-08Fix some const-correctness violations.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/sord/trunk@297 3d64ff67-21c5-427c-a301-fe4f08042e5a
2014-07-15Fix iteration over an entire graph (* * * graph).David Robillard1-6/+10
git-svn-id: http://svn.drobilla.net/sord/trunk@296 3d64ff67-21c5-427c-a301-fe4f08042e5a
2013-02-18Fix reference counting semantics of sord_get().David Robillard1-6/+6
git-svn-id: http://svn.drobilla.net/sord/trunk@286 3d64ff67-21c5-427c-a301-fe4f08042e5a
2013-02-18Update copyright year where appropriate.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@284 3d64ff67-21c5-427c-a301-fe4f08042e5a
2013-01-14Add sord_node_get() for easily getting single property values.David Robillard1-0/+25
git-svn-id: http://svn.drobilla.net/sord/trunk@280 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-08-10Shave 8 bytes off of SordNode.David Robillard1-39/+46
git-svn-id: http://svn.drobilla.net/sord/trunk@251 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-08-10Use a single node hash for all types of nodes.David Robillard1-144/+85
Inline nodes in hash table nodes and eliminate key+value pointer overhead. Use SSE 4.2 accelerated node and string hashing when available. git-svn-id: http://svn.drobilla.net/sord/trunk@250 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-08-09Get rid of language hash and store language inline with nodes.David Robillard1-38/+23
git-svn-id: http://svn.drobilla.net/sord/trunk@249 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-08-09Hide zix symbols (fix static builds with lilv).David Robillard1-4/+7
git-svn-id: http://svn.drobilla.net/sord/trunk@248 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-08-09Fix some const correctness violations (found by -Wcast-qual).David Robillard1-13/+13
Alas, not all... being truly clean of this warning would mean an API change. git-svn-id: http://svn.drobilla.net/sord/trunk@245 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-08-09Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes ↵David Robillard1-16/+16
-Wmissing-prototypes. git-svn-id: http://svn.drobilla.net/sord/trunk@244 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-07-06Don't print nonexistent file/line information in error messages.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@228 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-07-06Fix uninitialized values.David Robillard1-4/+6
git-svn-id: http://svn.drobilla.net/sord/trunk@227 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-07-05Add error callback to world for custom error reporting.David Robillard1-10/+41
git-svn-id: http://svn.drobilla.net/sord/trunk@226 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-03-30Add convenient sord_search(), sord_ask(), and sord_count().David Robillard1-0/+38
Add sord_validate tool for validating data against RDF/OWL schemas. git-svn-id: http://svn.drobilla.net/sord/trunk@211 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-03-18Fix rusty comment.David Robillard1-2/+1
git-svn-id: http://svn.drobilla.net/sord/trunk@208 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-03-09Add sord_new_relative_uri().David Robillard1-0/+20
git-svn-id: http://svn.drobilla.net/sord/trunk@204 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-03-08Refuse to intern relative URIs in sord_new_uri*().David Robillard1-1/+5
Make sord_iter_get_node() tolerate a NULL iterator. git-svn-id: http://svn.drobilla.net/sord/trunk@202 3d64ff67-21c5-427c-a301-fe4f08042e5a
2012-03-03Add sord_iter_get_node().David Robillard1-0/+6
git-svn-id: http://svn.drobilla.net/sord/trunk@201 3d64ff67-21c5-427c-a301-fe4f08042e5a