[ecl-readline-devel] Minor changes to make it compile on an ECL build --with-cxx

Erik Winkels aerique at xs4all.nl
Fri Dec 5 09:04:20 UTC 2008


Hi all,

This is for ecl-readline 0.2.0 downloadable from Cliki.

I had to change the following things to make ecl-readline work on an ECL
Configured and build with the --with-cxx parameter.

In ecl-readline.lisp I had to add:

45,50d44
< (ffi:clines "extern \"C\" {")
< (ffi:clines "void add_history(const char*);")
< (ffi:clines "int read_history(const char*);")
< (ffi:clines "void stifle_history(int);")
< (ffi:clines "int write_history(const char*);")
< (ffi:clines "}")

And in rl-completions.c I had to change:

56c56
<   g_completions = (char**)malloc(length * sizeof(char*) + 1);
---
>   g_completions = malloc(length * sizeof(char*) + 1);


Regards,
Erik




More information about the ecl-readline-devel mailing list