swig error handling fixes
This commit is contained in:
parent
0738fe0bd2
commit
0e79c53d1e
@ -30,6 +30,8 @@ public class JavaYap extends Activity
|
||||
YAPQuery q = eng.query( str );
|
||||
|
||||
YAPListTerm vs0 = q.namedVars();
|
||||
int rc;
|
||||
|
||||
// text.setText("");
|
||||
if (vs0.nil()) {
|
||||
if (q.next()) {
|
||||
@ -39,7 +41,7 @@ public class JavaYap extends Activity
|
||||
}
|
||||
} else {
|
||||
int i=1;
|
||||
while (q.next()) {
|
||||
while (rc = q.next()) {
|
||||
YAPListTerm vs = vs0;
|
||||
while(!vs.nil()){
|
||||
YAPTerm eq = vs.car();
|
||||
|
@ -33,7 +33,6 @@ class YAPPredicate;
|
||||
try {
|
||||
$action
|
||||
} catch (...) {
|
||||
fprintf(stderr,"here\n");
|
||||
PyErr_SetString(PyExc_SyntaxError, "syntax error");
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user