guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reprise: scm_c_eval_string_from_file_line


From: Mark H Weaver
Subject: Re: reprise: scm_c_eval_string_from_file_line
Date: Wed, 09 Mar 2011 01:30:15 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Andy Wingo <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]