#35: c2hs: Errors during expansion of binding hooks
--------------------+-------------------------------------------------------
Reporter: guest | Type: defect
Status: new | Priority: normal
Milestone: | Component: general
Version: 0.16.2 | Keywords:
--------------------+-------------------------------------------------------
Running c2hs on
--
module CDIO.Device where
#include
getHWInfo = {#call unsafe cdio_get_hwinfo#}
--
produces:
c2hs: Errors during expansion of binding hooks:
/usr/include/cdio/device.h:428: (column 3) [ERROR] >>> Illegal type!
The type specifiers of this declaration do not form a legal ANSI C(89)
type.
The C function cdio_get_hwinfo returns bool, which is defined in
cdio/types.h as
#define bool uint8_t
--
Ticket URL: http://hackage.haskell.org/trac/c2hs/ticket/35
c2hs http://www.cse.unsw.edu.au/~chak/haskell/c2hs/
C->Haskell, An Interface Generator for Haskell