diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sordi.c | 2 | ||||
-rw-r--r-- | src/sordmm_test.cpp | 25 |
2 files changed, 26 insertions, 1 deletions
diff --git a/src/sordi.c b/src/sordi.c index 123752a..dfcb85a 100644 --- a/src/sordi.c +++ b/src/sordi.c @@ -137,7 +137,7 @@ main(int argc, char** argv) SordQuad pat = { 0, 0, 0, 0 }; SordIter* iter = sord_find(sord, pat); for (; !sord_iter_end(iter); sord_iter_next(iter)) { - SordQuadConst tup; + SordQuad tup; sord_iter_get(iter, tup); const SordNode* s = tup[SORD_SUBJECT]; const SordNode* p = tup[SORD_PREDICATE]; diff --git a/src/sordmm_test.cpp b/src/sordmm_test.cpp new file mode 100644 index 0000000..bb53f52 --- /dev/null +++ b/src/sordmm_test.cpp @@ -0,0 +1,25 @@ +/* + Copyright 2011 David Robillard <http://drobilla.net> + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + + THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ + +#include "sord/sordmm.hpp" + +int +main(int argc, char** argv) +{ + Sord::World world; + Sord::Model model(world); + return 0; +} |