Hello, On 05/29/12 at 12:29am, Ludovic Courtès wrote: > Hi, > > Jan Synacek <jsyna...@redhat.com> skribis: > > > It's a macro: > > > > #define scm_scm2str gh_scm2newstr > > > > I added additional > > > > #define gh_scm2newstr(a, b) scm_str2string((a)) > > This one is incorrect. You’d want ‘scm_to_locale_string’ instead, which > takes an ‘SCM’ and returns a ‘char *’ (which the caller has the > responsibility to free eventually.) > > Can you try and report back? Ok, the whole patch is actually much smaller than I thought:
#include <libguile/version.h> #if SCM_MAJOR_VERSION < 2 #include <guile/gh.h> #elif SCM_MAJOR_VERSION == 2 #include <libguile.h> #define gh_list scm_list_n #define gh_scm2newstr(a, b) scm_to_locale_string((a)) #define FN scm_t_subr inline char * gh_symbol2newstr(SCM sym, size_t *lenp) { return gh_scm2newstr (scm_symbol_to_string (sym), lenp); } #endif TeXmacs now compiles, thank you!! Unfortunately, it doesn't run well. Its window is blank after start. I captured a log [1]. Can you please take a look at it? What does "ERROR: no such language objcode" mean? The scheme files are there. [1] http://www.fpaste.org/okRT/ Thanks again and cheers, -- Jan Synacek Software Engineer, BaseOS team Brno, Red Hat