From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: port-for-each vs lazy sweep Date: Mon, 01 Oct 2007 22:23:18 +0200 Message-ID: <87r6kezirt.fsf@chbouib.org> References: <878x88pbcc.fsf@zip.com.au> <46D0AB14.3030508@xs4all.nl> <8764328bxq.fsf@chbouib.org> <46D1C142.3080308@xs4all.nl> <87zm03ll78.fsf@laas.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1191270274 3450 80.91.229.12 (1 Oct 2007 20:24:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Oct 2007 20:24:34 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Oct 01 22:24:30 2007 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 1IcRob-0000co-BA for guile-devel@m.gmane.org; Mon, 01 Oct 2007 22:24:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IcRoW-0000m5-UA for guile-devel@m.gmane.org; Mon, 01 Oct 2007 16:24:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IcRoT-0000lq-KT for guile-devel@gnu.org; Mon, 01 Oct 2007 16:24:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IcRoS-0000le-1x for guile-devel@gnu.org; Mon, 01 Oct 2007 16:24:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IcRoR-0000lb-TO for guile-devel@gnu.org; Mon, 01 Oct 2007 16:24:19 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IcRoR-0008Ql-Hy for guile-devel@gnu.org; Mon, 01 Oct 2007 16:24:19 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IcRoD-00049N-Kb for guile-devel@gnu.org; Mon, 01 Oct 2007 20:24:05 +0000 Original-Received: from 201.120.155.228 ([201.120.155.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Oct 2007 20:24:05 +0000 Original-Received: from ludo by 201.120.155.228 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Oct 2007 20:24:05 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 64 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 201.120.155.228 X-URL: http://www.laas.fr/~lcourtes/ X-PGP-Key-ID: 0xEB1F5364 X-PGP-Key: http://www.laas.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: i486-pc-linux-gnu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:Nvlp37EBjzc/i15gjDf+WvvEl9o= X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:6819 Archived-At: --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, ludovic.courtes@laas.fr (Ludovic Courtès) writes: > I noticed the (supposedly related) regression compared to 1.8. Consider > this program: > > (define p (open-output-file "TEST-FILE")) > > (setvbuf p _IOFBF 16384) > > (write "hello" p) > > When running it with "guile-1.8 the-program.scm", `TEST-FILE' contains > the string "hello" upon completion. However, with HEAD, `TEST-FILE' is > empty. I finally fixed this one (see attached file). Thanks, Ludovic. --=-=-= Content-Type: text/x-patch; charset=iso-8859-1 Content-Disposition: inline; filename*=us-ascii''%2c%2cport-fix.diff Content-Transfer-Encoding: 8bit Content-Description: The patch --- orig/libguile/ChangeLog +++ mod/libguile/ChangeLog @@ -1,3 +1,8 @@ +2007-10-01 Ludovic Courtès + + * ports.c (flush_output_port): Expect directly a port instead of + a pair. Fixes a bug in the new port table (2007-08-26). + 2007-09-11 Kevin Ryde * posix.c (scm_putenv): Confine the putenv("NAME=") bit to mingw, use --- orig/libguile/ports.c +++ mod/libguile/ports.c @@ -904,9 +904,8 @@ static void -flush_output_port (void *closure, SCM handle) +flush_output_port (void *closure, SCM port) { - SCM port = SCM_CDR (handle); if (SCM_OPOUTPORTP (port)) scm_flush (port); } --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel --=-=-=--