diff -r 3edd2f19bce2 -r e0424e96e3fd py_ext/plc_python.c --- a/py_ext/plc_python.c Wed May 09 00:39:54 2012 +0200 +++ b/py_ext/plc_python.c Sat May 12 11:21:10 2012 +0200 @@ -43,7 +43,7 @@ void UnLockPython(void); void LockPython(void); -int __init_%(location)s() +int __init_py_ext() { int i; /* Initialize cursors */ @@ -55,13 +55,13 @@ return 0; } -void __cleanup_%(location)s() +void __cleanup_py_ext() { PythonState = PYTHON_FINISHED; UnBlockPythonCommands(); } -void __retrieve_%(location)s() +void __retrieve_py_ext() { /* Check Python thread is not being * modifying internal python_eval data */ @@ -72,7 +72,7 @@ * and python_eval will no do anything */ } -void __publish_%(location)s() +void __publish_py_ext() { if(PythonState & PYTHON_LOCKED_BY_PLC){ /* If runnig PLC did push something in the fifo*/