From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Clinton Ebadi Newsgroups: gmane.lisp.guile.devel Subject: Re: scm_i_* in Snd Date: Sun, 01 Jun 2008 16:55:30 -0400 Message-ID: <87mym450zh.fsf@unknownlamer.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212353802 9557 80.91.229.12 (1 Jun 2008 20:56:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Jun 2008 20:56:42 +0000 (UTC) Cc: guile-devel@gnu.org To: "Kjetil S. Matheussen" Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Jun 01 22:57:23 2008 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.50) id 1K2ubs-00049s-UC for guile-devel@m.gmane.org; Sun, 01 Jun 2008 22:57:01 +0200 Original-Received: from localhost ([127.0.0.1]:35127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K2ub6-0000gU-Sn for guile-devel@m.gmane.org; Sun, 01 Jun 2008 16:56:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K2ub0-0000ey-It for guile-devel@gnu.org; Sun, 01 Jun 2008 16:56:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K2uay-0000cz-Tg for guile-devel@gnu.org; Sun, 01 Jun 2008 16:56:05 -0400 Original-Received: from [199.232.76.173] (port=55989 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K2uay-0000cc-Ku for guile-devel@gnu.org; Sun, 01 Jun 2008 16:56:04 -0400 Original-Received: from deleuze.hcoop.net ([69.90.123.67]:47575) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K2uaw-0006zt-6N for guile-devel@gnu.org; Sun, 01 Jun 2008 16:56:02 -0400 Original-Received: from [71.65.238.103] (helo=localhost.localdomain) by deleuze.hcoop.net with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1K2uah-0004Z8-Gl; Sun, 01 Jun 2008 16:55:47 -0400 In-Reply-To: (Kjetil S. Matheussen's message of "Sun\, 01 Jun 2008 22\:31\:49 +0200 \(CEST\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 1) 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:7296 Archived-At: "Kjetil S. Matheussen" writes: > Bill Schottstaedt: >> >>> `scm_i_string_chars ()' is used by Mailutils, Lilypond, AutoGen, SND >> >> I'm not knowingly using any scm_i_* entities in Snd. I removed the >> scm_i_procedure_arity use, and I think the SCM_STRING_CHARS macro >> is only used if it is defined. >> > > Well, I'm using scm_i_string_chars in eval-c.scm, so that's probably > explains Ludovic's hit. eval-c.scm contains these lines: > > "#ifdef SCM_STRING_CHARS" > "# define GET_STRING(a) (scm_is_false(a)?NULL:(char*)SCM_STRING_CHARS(a))" > "#else" > "# define GET_STRING(a) (scm_is_false(a)?NULL:(char*)scm_i_string_chars(a))" > "#endif" > > Is this okay, and in case not, is there a better way to convert a > char* into a guile string? SCM_API SCM scm_from_locale_string (const char *str); SCM_API SCM scm_from_locale_stringn (const char *str, size_t len); SCM_API SCM scm_take_locale_string (char *str); SCM_API SCM scm_take_locale_stringn (char *str, size_t len); -- No seed of hope nor ray of light, Scant succour from the blighted epoch. Rise like Socrates and fight; Take hate's chalice laced with hemlock.