change the API for literals in Java and Python. The input sentence is no longer a parameter to the callbacks.

This commit is contained in:
krasimir committed 2016-05-20 15:20:02 +00:00
1 parent 1a0defc0fc
commit fdf4bd3196
8 files changed
+26 -23

No files matched your search

+3 -3
View File
@@ -1280,11 +1280,11 @@ pypgf_literal_callback_match(PgfLiteralCallback* self, PgfConcr* concr,
gu_container(self, PyPgfLiteralCallback, callback);
PyObject* result =
PyObject_CallFunction(callback->pycallback, "isi",
lin_idx, sentence, *poffset);
PyObject_CallFunction(callback->pycallback, "ii",
lin_idx, *poffset);
if (result == NULL)
return NULL;
if (result == Py_None) {
Py_DECREF(result);
return NULL;