unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Andy Wingo <wingo@pobox.com>
Cc: tès <ludo@gnu.org>, Ludovic@gnu.org, "Bruce Korb" <bkorb@gnu.org>,
	"guile-devel Development" <guile-devel@gnu.org>
Subject: Re: reprise: scm_c_eval_string_from_file_line
Date: Wed, 09 Mar 2011 01:30:15 -0500	[thread overview]
Message-ID: <87k4g8x0ug.fsf@netris.org> (raw)
In-Reply-To: <m3fwqx8bu5.fsf@unquote.localdomain> (Andy Wingo's message of "Tue, 08 Mar 2011 23:52:02 +0100")

Andy Wingo <wingo@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



  reply	other threads:[~2011-03-09  6:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4.1298297717.17321.info-gnu@gnu.org>
     [not found] ` <87vd0cqjvx.fsf@gnu.org>
     [not found]   ` <4D643043.6080406@gnu.org>
     [not found]     ` <4D658101.7030307@gnu.org>
     [not found]       ` <87sjvdl6ce.fsf@gnu.org>
2011-02-24 22:58         ` reprise: scm_c_eval_string_from_file_line Bruce Korb
2011-02-25 11:13           ` Andy Wingo
2011-03-08 22:28           ` Andy Wingo
2011-03-08 22:45             ` Bruce Korb
2011-03-08 22:52               ` Andy Wingo
2011-03-09  6:30                 ` Mark H Weaver [this message]
2011-03-09 10:07               ` Ludovic Courtès
2011-03-09 20:15                 ` Andy Wingo
2011-03-10  9:35                   ` Bruce Korb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k4g8x0ug.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=Ludovic@gnu.org \
    --cc=bkorb@gnu.org \
    --cc=guile-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=wingo@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).