From aerique at xs4all.nl Fri Dec 5 09:04:20 2008 From: aerique at xs4all.nl (Erik Winkels) Date: Fri, 5 Dec 2008 10:04:20 +0100 Subject: [ecl-readline-devel] Minor changes to make it compile on an ECL build --with-cxx Message-ID: <20081205090420.GA85134@xs4all.nl> 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 From aerique at xs4all.nl Fri Dec 5 11:06:15 2008 From: aerique at xs4all.nl (Erik Winkels) Date: Fri, 5 Dec 2008 12:06:15 +0100 Subject: [ecl-readline-devel] I forgot an #ifdef Message-ID: <20081205110615.GB85134@xs4all.nl> To follow up on my previous message, this would be better: (ffi:clines "#ifdef __cplusplus" "extern \"C\" {" "void add_history(const char*);" "int read_history(const char*);" "void stifle_history(int);" "int write_history(const char*);" "}" "#endif")