[mercury-users] foreign_type / foreign_decl

Michael Day mikeday at bigpond.net.au
Tue Jul 9 14:46:49 AEST 2002


foreign_type can be in the interface, but foreign_decl can't. Unless you
are using intermodule optimization, this will cause errors in the
generated C code where a foreign_type is used in a function prototype
without including the necessary C header files that contain its
definition.

Michael

--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list