[Chicken-users] chicken-bind: don't get output for 'mosquitto.h'

2018-12-03 Thread Christoph Lange
lt; ;;; GENERATED BY CHICKEN-BIND FROM mosquitto.h (begin) ;;; END OF FILE 8< (this is the 'mosquitto.h' file: https://github.com/eclipse/mosquitto/blob/master/lib/mosquitto.h) Any idea, where I should look for the

[Chicken-users] Error installing egg, but only on Raspbian

2019-01-09 Thread Christoph Lange
I adapted the Telebot (Telegram client) egg to be installable as Chicken 5 egg: https://github.com/recumbentbirder/Telebot/tree/make-chicken-5-egg This works fine to install on my Arch Linux (Chicken installed via packet manager) to install via *chicken-install -s*. On my Raspberry Pi 3+ I ins

Re: [Chicken-users] Error installing egg, but only on Raspbian

2019-01-10 Thread Christoph Lange
error message was really strange ... On Wed, Jan 9, 2019 at 9:20 AM Christoph Lange wrote: > I adapted the Telebot (Telegram client) egg to be installable as Chicken 5 > egg: > > https://github.com/recumbentbirder/Telebot/tree/make-chicken-5-egg > > This works fine to install on

[Chicken-users] csc switch for linking foreign libraries?

2019-01-18 Thread Christoph Lange
Dear Chickeneers! I might be stupid or blind, but I can't find a way of announcing foreign libraries to 'csc' that have to be linked to my binary. I have the following code: *(import bind)* *(bind "int mosquitto_lib_init(void);")* *(display (mosquitto_lib_init))* When doing 'csc mqtt.scm' on it

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

2019-03-22 Thread Christoph Lange
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 m

[Chicken-users] more 'foreign' questions

2019-03-27 Thread Christoph Lange
After I now managed quite a lot of my interfacing to the mqtt library, I'm stuck with the following: I have the following definition of a message struct, which I in fact get back a pointer to, from a callback: (bind* "struct mosquitto_message{ int mid; char *topic;

Re: [Chicken-users] more 'foreign' questions

2019-03-27 Thread Christoph Lange
> > i haven’t used the bind egg but the documentation "General Operation” > section beginining with "Structure and union definitions …” seems relevant. > Haha, yes, thanks. Finding the relevant parts of the docs seems to be the challenge in the beginning. Will read that. it rolls access routines

Re: [Chicken-users] more 'foreign' questions

2019-03-27 Thread Christoph Lange
emory) > > > On Mar 27, 2019, at 12:14 PM, Christoph Lange > wrote: > > > > i haven’t used the bind egg but the documentation "General Operation” > section beginining with "Structure and union definitions …” seems relevant. > > > > Haha, yes, thanks. Fi

Re: [Chicken-users] more 'foreign' questions

2019-03-27 Thread Christoph Lange
Thanks! This all works now, and I learned a lot. I now get a void pointer to some data in memory, and the length of the > payload. How can I make that e.g. a blob? Or a string? > > we’re trying to stop using string for non-char data so blob please ;-) > Sorry. Didn't want to frighten you ;-) I al

[Chicken-users] FFI and callbacks -- in Scheme?!

2019-05-13 Thread Christoph Lange
in) >(newline))) > (let-values (((res major minor revision) (mosquitto-lib-version))) > (display major) (newline) > (display minor) (newline) > (display revision) (newline)) > ;; #f is equivalent to C's NULL > (define mqttc (mosquitto-new #f #t #f)) > (display &

German Umlauts / UTF8 with comparse

2020-02-17 Thread Christoph Lange
width works on the other hand: in the remaining string, the ä is represented by only one #\. If I don't use the UTF8 string equivalents by importing 'utf8', it would be two.) Any hint for me? /Christoph -- Christoph Lange Lotsarnas Väg 8 430 83 Vrångö

Re: German Umlauts / UTF8 with comparse

2020-02-17 Thread Christoph Lange
n though '(list->string (string->list s1))', with my pure ASCII string, reverses without fault. I guess I have some problems understanding some utf8 concepts?! /Christoph On Mon, Feb 17, 2020 at 3:38 PM wrote: > Christoph Lange wrote: > > meaning, that the ä isn&#x

Re: German Umlauts / UTF8 with comparse

2020-02-18 Thread Christoph Lange
44 PM wrote: > Christoph Lange wrote: > > Yes, this helps. Kind of ;-) ... using the character set > > char-set:alphabetic, my umlauts are now parsed. But I don't get them back > > in my result, at least not as printable characters. Instead, the > following > > h