targets/Win32/plc_Win32_main.c
changeset 521 02cb9e5fb6f6
parent 518 8e61b0066859
child 568 20a223828a06
equal deleted inserted replaced
520:ca5a2047e0ed 521:02cb9e5fb6f6
   225 void LockPython(void)
   225 void LockPython(void)
   226 {
   226 {
   227 	WaitForSingleObject(python_sem, INFINITE);
   227 	WaitForSingleObject(python_sem, INFINITE);
   228 }
   228 }
   229 
   229 
       
   230 int CheckRetainBuffer(void)
       
   231 {
       
   232 	return 1;
       
   233 }
       
   234 
   230 void Retain(unsigned int offset, unsigned int count, void * p)
   235 void Retain(unsigned int offset, unsigned int count, void * p)
   231 {
   236 {
   232     unsigned int position;
   237     unsigned int position;
   233     for(position=0; position<count; position++ ){
   238     for(position=0; position<count; position++ ){
   234         printf("%d : 0x%2.2x\n", offset+position, ((char*)p)[position]);
   239         printf("%d : 0x%2.2x\n", offset+position, ((char*)p)[position]);