[Haskell-cafe] GHCi + FFI + global C variables
Brandon Allbery
allbery.b at gmail.com
Tue Dec 11 17:29:29 CET 2012
On Tue, Dec 11, 2012 at 5:57 AM, Francisco Vieira de Souza <
vieira.ufpi at gmail.com> wrote:
> Hi Simon! Is it not necessary to show the type of igraph_bool_t
> igraphhaskell_initialized like
>
> "int igraph_bool_t igraphhaskell_initialized = 0"?
>
"igraph_bool_t" uses the _t suffix convention for typedefs in C; in other
words, it *is* the type. (And if it weren't, that would be a compile time
error, not link time.)
--
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20121211/c49b532d/attachment.htm>
More information about the Glasgow-haskell-users
mailing list