- Android fixes
- null pointers
This commit is contained in:
@@ -61,6 +61,7 @@ and_put(int sno, int ch) {
|
||||
buff0 += ch;
|
||||
if (ch=='\n' || buff0.length() == 128) { //buff0+= '\0';
|
||||
streamerInstance->display(buff0);
|
||||
buff0.clear();
|
||||
}
|
||||
return ch;
|
||||
}
|
||||
|
@@ -14,6 +14,14 @@
|
||||
%include std_string.i
|
||||
%include std_vector.i
|
||||
|
||||
#if __ANDROID__
|
||||
%include "arrays_java.i";
|
||||
// %inline %{
|
||||
static YAPTerm Temp[1];
|
||||
// %}
|
||||
// %typemap(javapackage) std::vector<YAPTerm> "pt.up.yap.YAPTerm"
|
||||
//%template(VectorOfTerm) std::vector<YAPTerm>;
|
||||
#endif
|
||||
|
||||
%feature("novaluewrapper") std::vector<Term>;
|
||||
|
||||
@@ -34,10 +42,6 @@ class YAPEngine;
|
||||
|
||||
|
||||
|
||||
#if __ANDROID__
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef SWIGPYTHON
|
||||
#include <py4yap.h>
|
||||
|
||||
@@ -60,10 +64,6 @@ class YAPEngine;
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
#ifdef SWIGJAVA0
|
||||
%typemap(javapackage) std::vector<YAPTerm> "pt.up.yap.YAPTerm"
|
||||
%template(VectorOfTerm) std::vector<YAPTerm>;
|
||||
#endif
|
||||
}
|
||||
%}
|
||||
|
||||
|
Reference in New Issue
Block a user