[SPAM: 3.000] [Pyrex] Re: Pyrex Header Wrapping
Greg Ewing
greg at cosc.canterbury.ac.nz
Fri Sep 10 03:08:48 CEST 2004
> I am currently wrapping the current header to implement a barcode
> scanner SDK in a python program. I am currently stuck with the
> following error:
>
> ScanAPI.pyx:39:38: C function definition not allowed here
>
> unsigned int fHardwareTrigger :1 # most likely a gun
Pyrex doesn't know about bitfield definitions, and in this case it
doesn't have to know. Just leave them out. The C compiler will see the
correct declaration in the header file.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Pyrex
mailing list