[Pyrex] typedef enum
Tom Kobialka
u3356514 at anu.edu.au
Thu Jun 3 09:27:43 CEST 2004
Hi,
I'd like to transalte the following into pyrex code, I'm a bit lost as
to how to approach it, perhaps an array ?
typedef enum
{FRNATIVE,
FRSWAP,
FRCONTRACT,
FREXPAND,
FRCONTRACT_AND_SWAP,
FREXPAND_AND_SWAP} FRFORMAT;
I don't think I can translate the following into pyrex, is there some
way I can circumvent the #ifdef issue?
typedef struct FrIO{
#ifdef FRIOCFILE
FILE *fp;
#else
int fd;
#endif
char buffer[FRIOBSIZE];
int position ;
};
Thanks in advance.
Tom
More information about the Pyrex
mailing list