Let me start by explaining that I am totally unfamiliar with Python. I
haven't so much as read the Wikipedia article.

However, it would be nice (for me) if comp could accept pointers as
variables (clearly it already automatically creates pointers for HAL
pins).
My particular application is calling some Hostmot2 functions that need
the address of a pointer.
We have got it working using the "option data" structure, but that is
described as deprecated, and significantly de-clarifies the comp file.

I am so much of a Python noob that I don't even know which file to
edit, whether comp.py or comp.g. I settled on comp.g because that one
is not .gitignored..

This patch seems to work. I feel sure that there are points I have
missed. It would be lovely if somebody with a clue could do the job
right.

It allows the use of

variable u32 *pointer

And then in the code you can use
*pointer = 22
r = somefunction(&pointer)

As far as I can see (in my naivety) that is all that is needed.

-- 
atp
"Torque wrenches are for the obedience of fools and the guidance of wise men"

Attachment: 0002-Allow-the-use-of-pointers-in-variable-declarations-i.patch
Description: Binary data

------------------------------------------------------------------------------
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been 
demonstrated beyond question. Learn why your peers are replacing JEE 
containers with lightweight application servers - and what you can gain 
from the move. http://p.sf.net/sfu/vmware-sfemails
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to