beremiz

fix many compilation warnings about static variables used by non-static functions

[CC] plc_main.c -> plc_main.o
/tmp/be/build/plc_main.c:396:40: warning: ‘LogBuff’ is static but used in inline function ‘copy_from_log’ which is not static
memcpy((char*)buf + remaining, LogBuff[level], size - remaining);
^
/tmp/be/build/plc_main.c:395:22: warning: ‘LogBuff’ is static but used in inline function ‘copy_from_log’ which is not static
memcpy(buf, &LogBuff[level][buffpos], remaining);
^
...

^
/tmp/be/build/plc_debugger.c:825:20: warning: ‘retain_offset’ is static but used in inline function ‘BufferIterator’ which is not static
Retain(retain_offset, size, real_value_p);
^
/tmp/be/build/plc_debugger.c:823:47: warning: ‘retain_offset’ is static but used in inline function ‘BufferIterator’ which is not static
unsigned int next_retain_offset = retain_offset + size;
^
^
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Python xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="py_ext_xsd.xsd">
<![CDATA[import threading, time
MyT = None
Stop = False
def StartLog():
global MyT
MyT=threading.Thread(target = DoLog)
MyT.start()
def DoLog():
global Stop
while not Stop:
PLCObject.LogMessage("Python side Logging (PLC is %s)"%PLCObject.PLCStatus)
time.sleep(0.3)
def StopLog():
global MyT,Stop
Stop=True
_runtime_init.append(StartLog)
_runtime_cleanup.append(StopLog)
]]>
</Python>