From: Wolfgang J. <wj...@so...> - 2007-07-20 13:52:12
|
Hi, when experimenting with the "gec" it happened that C compilation failed if the Eiffel code contains entities of expanded types. There are two kinds or errors: - wrong arrangement of type definitions in the *.h file - bad initializer of local variables (0 when a struct is expected) I tried several modifications of routine `ET_C_GENERATOR.print_types' to rearrange type definitions and achieved improvements but no satisfying solution. Probably, the routine must follow the graph of client relations (at least the subgraph of attribute relations) such that the "typedef" declarations are written in the pre-processing phase (to have the corresponding _pointer_ types defined in case of a cyclic dependency) whereas the "struct ..." definitions are written in the post-processing phase (when all attribute types have been processed). PS: The attachment contains the Eiffel classes of an example, an ACE file, and the compiler messages (for both, "cc" and "gcc"). PPS: Maybe you got this message a second time: I sent it a second time since the mail server told me that the original message had not been delivered. -- Wolfgang Jansen University of Potsdam, Germany mailto: wj...@so... |