From 5f742fbd0ddb1b7e89bd9f7ce8fd38bed2ebc3db Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Wed, 21 Sep 2011 05:02:58 +0000 Subject: Java binding now working. Some interface types still need some work (e.g. iterators aren't functional). Also, output isn't very flexible yet, as I told SWIG to ignore all the operator<<'s. --- src/cvc4.i | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/cvc4.i') diff --git a/src/cvc4.i b/src/cvc4.i index e69150b7b..03c258778 100644 --- a/src/cvc4.i +++ b/src/cvc4.i @@ -19,7 +19,15 @@ using namespace CVC4; } } -%include "std_string.i" // map std::string to java.lang.String +// This is unfortunate, but seems to be necessary; if we leave NULL +// defined, swig will expand it to "(void*) 0", and some of swig's +// helper functions won't compile properly. +#undef NULL + +%include "java/typemaps.i" // primitive pointers and references +%include "java/std_string.i" // map std::string to java.lang.String +%include "java/arrays_java.i" // C arrays to Java arrays +%include "java/various.i" // map char** to java.lang.String[] %include "util/integer.i" %include "util/rational.i" -- cgit v1.2.3