[gambit-list] Little error in the docs?
Marc Feeley
feeley at iro.umontreal.ca
Sat Jan 12 19:11:59 EST 2008
On 12-Jan-08, at 6:18 PM, Esteban U. Caamano Castro wrote:
> But then in one of the examples:
>
> (define stdin ((c-lambda () (pointer "FILE") "___result = stdin;")))
>
> Shouldn't that be "___result_voidstar = (void*)stdin;", then?
>
Thanks! I have fixed it. Note that the cast to void* is not
necessary because in C (and C++) pointers of any type can be assigned
to the void* type:
(define stdin ((c-lambda () (pointer "FILE") "___result_voidstar =
stdin;")))
Marc
More information about the Gambit-list
mailing list