structs from the header files. So the from clauses are there purely to get the includes done for the generated C code. If that's the case, is there any way I can get a pyrex definition to create a header that's compatible with the layout defined in the pyrex struct? The crucial thing is that there should ideally be only one definition of these data layouts. -- Robin Becker