summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-27 23:36:19 +0000
committerDavid Robillard <d@drobilla.net>2011-04-27 23:36:19 +0000
commitf3b65ffd392579728490916ba0d0ad9cbcdcbf66 (patch)
treec32c5c64114d6bf49e6afa66fb001a5ceb446e45 /src
parentbb2c564579a402a92dbaa513b6a4c9641523efc5 (diff)
downloadsord-f3b65ffd392579728490916ba0d0ad9cbcdcbf66.tar.gz
sord-f3b65ffd392579728490916ba0d0ad9cbcdcbf66.tar.bz2
sord-f3b65ffd392579728490916ba0d0ad9cbcdcbf66.zip
Remove boost and glibmm dependencies from sordmm.hpp.
Add C++ (sordmm.hpp) compilation test. Fix utilities only building with --test. git-svn-id: http://svn.drobilla.net/sord/trunk@92 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src')
-rw-r--r--src/sordi.c2
-rw-r--r--src/sordmm_test.cpp25
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;
+}