chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] NULL in calls to C functions with bind


From: Christoph Lange
Subject: [Chicken-users] NULL in calls to C functions with bind
Date: Fri, 22 Mar 2019 15:48:36 +0100

I wrote the following in my attempt to interface to the mosquitto MQTT library:


(bind* "struct mosquitto *mosquitto_new(const char *id,
                                        ___bool clean_session,
                                        void *obj);")

(define NULL (object->pointer 0))
(define mqttc (mosquitto-new NULL #t NULL))

But I'm unsure about my adventurous definition of `NULL`. It works, but is it correct?


Another thing: on the bind egg's documentation page, `___blob` is not mentioned, but I luckily found it in the sql-de-lite code, and it saved me a lot of headaches :-) Shouldn't it be there?

/Christoph

reply via email to

[Prev in Thread] Current Thread [Next in Thread]