Re: [Haskell-cafe] GHCi + FFI + global C variables

11 Dec
2012
11 Dec
'12
11:29 a.m.
On Tue, Dec 11, 2012 at 5:57 AM, Francisco Vieira de Souza < vieira.ufpi@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@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
4544
Age (days ago)
4544
Last active (days ago)
0 comments
1 participants
participants (1)
-
Brandon Allbery