You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by ea...@apache.org on 2020/01/16 20:27:57 UTC

[uima-uimacpp] branch master updated: UIMA-5237 William Colen's patch to fix pythonnator.cpp for newer swig versions

This is an automated email from the ASF dual-hosted git repository.

eae pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/uima-uimacpp.git


The following commit(s) were added to refs/heads/master by this push:
     new 5eeb2ef  UIMA-5237 William Colen's patch to fix pythonnator.cpp for newer swig versions
5eeb2ef is described below

commit 5eeb2efa9f924c45cf1db268c4bc37759bdfc875
Author: Eddie Epstein <ea...@us.ibm.com>
AuthorDate: Thu Jan 16 15:23:08 2020 -0500

    UIMA-5237 William Colen's patch to fix pythonnator.cpp for newer swig versions
---
 scriptators/python/pythonnator.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/scriptators/python/pythonnator.cpp b/scriptators/python/pythonnator.cpp
index 4247559..3da1a40 100644
--- a/scriptators/python/pythonnator.cpp
+++ b/scriptators/python/pythonnator.cpp
@@ -189,7 +189,7 @@ public:
       }
 
       // convert cas and rs to python variables (parameters) 
-      swig_module_info *module = SWIG_Python_GetModule();
+      swig_module_info *module = SWIG_Python_GetModule(NULL);
       if (!module) {
         cerr << MODULENAME ": could not get Python swig module" << endl;
         _PY_END_BLOCK_THREADS_
@@ -230,7 +230,7 @@ public:
 
       if (function[FUNCTION_INITIALIZE]) {
         PyObject *arg1 = 
-           SWIG_Python_NewPointerObj(
+           SWIG_Python_NewPointerObj(NULL,
            reinterpret_cast<void *>( &ac),
            ac_type, 0);
         PyObject *rv = PyObject_CallFunctionObjArgs( 
@@ -284,7 +284,7 @@ public:
     }
     if (function[FUNCTION_TYPESYSTEMINIT] == 0) return UIMA_ERR_NONE;
     PyObject *arg1 = 
-       SWIG_Python_NewPointerObj(
+       SWIG_Python_NewPointerObj(NULL,
        reinterpret_cast<void *>( const_cast<TypeSystem *>(&ts)),
        ts_type, 0);
     PyObject *rv = PyObject_CallFunctionObjArgs( 
@@ -358,7 +358,7 @@ public:
 
     _PY_BEGIN_BLOCK_THREADS_
     PyObject *arg1 = 
-       SWIG_Python_NewPointerObj(
+       SWIG_Python_NewPointerObj(NULL,
        reinterpret_cast<void *>( &_cas), cas_type, 0);
     if (!arg1) {
       cerr << "process: could not allocate Python object for cas" << endl;
@@ -366,7 +366,7 @@ public:
       return UIMA_ERR_USER_ANNOTATOR_COULD_NOT_PROCESS;
     }
     PyObject *arg2 = 
-       SWIG_Python_NewPointerObj(
+       SWIG_Python_NewPointerObj(NULL,
        reinterpret_cast<void *>( 
 		const_cast<ResultSpecification *>(&_rs)),
        rs_type, 0);