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: [PATCH] Fix `get-string-n!' &i/o-decoding exception behavior Date: Sun, 11 Nov 2012 18:45:26 -0500 Message-ID: <87y5i77lgp.fsf@tines.lan> References: <1352332308-5191-1-git-send-email-a.rottmann@gmx.at> <874nkwa9bw.fsf@tines.lan> <87haow8004.fsf@delenn.home.rotty.xx.vu> <877gpr96qv.fsf@tines.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352677563 870 80.91.229.3 (11 Nov 2012 23:46:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2012 23:46:03 +0000 (UTC) Cc: guile-devel@gnu.org To: Andreas Rottmann Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Nov 12 00:46:13 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TXhEB-0001La-3c for guile-devel@m.gmane.org; Mon, 12 Nov 2012 00:46:11 +0100 Original-Received: from localhost ([::1]:58753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXhE1-0001jr-MW for guile-devel@m.gmane.org; Sun, 11 Nov 2012 18:46:01 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXhDv-0001dj-Ko for guile-devel@gnu.org; Sun, 11 Nov 2012 18:45:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TXhDs-0007wK-Hy for guile-devel@gnu.org; Sun, 11 Nov 2012 18:45:55 -0500 Original-Received: from world.peace.net ([96.39.62.75]:34983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXhDs-0007vc-Cm for guile-devel@gnu.org; Sun, 11 Nov 2012 18:45:52 -0500 Original-Received: from turntable.mit.edu ([18.160.0.29] helo=tines.lan) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TXhDm-0002jV-1c; Sun, 11 Nov 2012 18:45:46 -0500 In-Reply-To: <877gpr96qv.fsf@tines.lan> (Mark H. Weaver's message of "Sun, 11 Nov 2012 16:20:24 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 96.39.62.75 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:15159 Archived-At: I wrote: > (raise (make-i/o-decoding-error port)) > > This can be written in C as follows: > > scm_call_1 (scm_c_public_ref ("rnrs exceptions", "raise"), > scm_call_1 (scm_c_public_ref ("rnrs io ports", > "make-i/o-decoding-error"))); Sorry, I forgot to pass 'port'. It should be: scm_call_1 (scm_c_public_ref ("rnrs exceptions", "raise"), scm_call_1 (scm_c_public_ref ("rnrs io ports", "make-i/o-decoding-error"), port)); Mark