Hi,<br><br>I'm using SIP 4.5.2 to wrap a C library and I've noticed the following:<br><br>* SIP does not recognise C prototypes without parameters i.e. "void myfunction(void);"; you have to replace "(void)" by "()". It would be nice if SIP supported this syntax (which I believe is valid in C++ too).
<br><br>* SIP does not allow opaque structs i.e. "struct mystruct;". To make this work I've had to do the following:<br><br>struct mystruct /Abstract/ {<br>%TypeHeaderCode<br><br>%End<br>};<br><br>Again, it would be nice if the C syntax was supported.
<br><br>Secondly, just as an idea, I think it would be useful to have some simple way of specifying read-only global variables and struct members e.g:<br><br>const float x = 0.2f;<br>struct mystruct {<br> void *const mymember;
<br>};<br><br>This can of course be already achieved using SIP directives and CPython calls, but it would be nice if there was a clearer, shorter way of doing it.<br><br>I'm fairly new to SIP so there might be some point I've missed; if so, please feel free to point it out.
<br><br>Thanks,<br>Miguel<br><br>