Andy Wingo <wi...@pobox.com> writes: >>> return scm_call_5 (scm_variable_ref (eval_string_var), >>> string, >> >> Wouldn't this arg need to be SCM-ized? viz. scm_from_locale_string >> (string) > > Indeed; though you should think about encodings here. There is also > scm_from_utf8_string and scm_from_latin1_string, and there will soon be > scm_from_latin1_keyword which is likely preferable to > scm_from_locale_keyword in this case.
FYI, I just pushed scm_from_latin1_keyword to git. It will be in 2.0.1. > >> I guess I'll need to read docs. From this sentence, I'd be guessing >> that I'd need to use "scm_call_7" and add: >> scm_from_locale_keyword("#:compile?"), scm_from_locale_keyword("#t"), > > ^ SCM_BOOL_T, of course. Also, the argument to scm_from_locale_keyword (or better yet, scm_from_latin1_keyword) should be "compile?", not "#:compile?". Best, Mark