From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.devel Subject: Re: reprise: scm_c_eval_string_from_file_line Date: Wed, 09 Mar 2011 01:30:15 -0500 Message-ID: <87k4g8x0ug.fsf@netris.org> References: <87vd0cqjvx.fsf@gnu.org> <4D643043.6080406@gnu.org> <4D658101.7030307@gnu.org> <87sjvdl6ce.fsf@gnu.org> <4D66E288.7030608@gnu.org> <4D76B1A1.9020502@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1299653369 21182 80.91.229.12 (9 Mar 2011 06:49:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Mar 2011 06:49:29 +0000 (UTC) Cc: =?utf-8?Q?t=C3=A8s?= , Ludovic@gnu.org, Bruce Korb , guile-devel Development To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Mar 09 07:49:24 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PxDD2-0008NS-Jc for guile-devel@m.gmane.org; Wed, 09 Mar 2011 07:49:24 +0100 Original-Received: from localhost ([127.0.0.1]:43882 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxD9a-0001sI-Ak for guile-devel@m.gmane.org; Wed, 09 Mar 2011 01:45:50 -0500 Original-Received: from [140.186.70.92] (port=35966 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxD9H-0001Oq-PC for guile-devel@gnu.org; Wed, 09 Mar 2011 01:45:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxCue-0002Td-R7 for guile-devel@gnu.org; Wed, 09 Mar 2011 01:30:25 -0500 Original-Received: from world.peace.net ([216.204.32.208]:50198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PxCuc-0002TB-Lo; Wed, 09 Mar 2011 01:30:22 -0500 Original-Received: from ip68-9-118-38.ri.ri.cox.net ([68.9.118.38] helo=freedomincluded) by world.peace.net with esmtpa (Exim 4.69) (envelope-from ) id 1PxCuX-0008Eu-1Q; Wed, 09 Mar 2011 01:30:17 -0500 Original-Received: from mhw by freedomincluded with local (Exim 4.69) (envelope-from ) id 1PxCuV-0004Hz-9m; Wed, 09 Mar 2011 01:30:15 -0500 In-Reply-To: (Andy Wingo's message of "Tue, 08 Mar 2011 23:52:02 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 216.204.32.208 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11836 Archived-At: Andy Wingo 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