[Chicken-hackers] [PATCH] disable SIGPIPE for sockets in iOS

2013-06-16 Thread Felix
The attached patch disables SIGPIPE for sockets, which appears to be an iOS-specific "Feature", and uses setsockopt(2) with the Mac/BSD-specific SO_NOSIGPIPE option. Pipe-errors are then returned as EPIPE in the usual fashion. cheers, felix >From 0d3e84bb647dc8899af724df583b79c1e0f1b07e Mon Sep 1

Re: [Chicken-hackers] [PATCH] Do not reset string size upon closing string output ports (R7RS compat)

2013-06-16 Thread Christian Kellermann
* Peter Bex [130608 17:43]: > Hi all, > > I noticed a bug in the R7RS egg's implementation of call-with-port, > which lead me to fix it and write a test, only to discover another > problem in core. > > For some reason if a string port is closed, the yielded string's > length gets set to the buff

[Chicken-hackers] Fix for #1016: allow non-integral flonums for numerator and denominator

2013-06-16 Thread Peter Bex
Hi all, Attached is a patch to allow non-integral flonum arguments for the numerator and denominator procedures. They are supposed to accept rational numbers, and flonums, though inexact, can be rational (if they're not Inf or NaN). This fixes #1016 for core and brings us closer to R5RS complian

Re: [Chicken-hackers] [PATCH] verify syntax in => cond clauses

2013-06-16 Thread Christian Kellermann
* Peter Bex [130605 20:10]: > On Sun, May 26, 2013 at 10:02:42PM -0700, Evan Hanson wrote: > > This patch improves cond's behavior on clauses which contain `=>` but do > > not match the precise definition of cond. > > Excellent patch, thanks! I signed it off as-is. I have pushed it, thanks. Ch

[Chicken-hackers] Redefinition of a syntax keyword

2013-06-16 Thread John Cowan
[+chicken-hackers] Evan Hanson scripsit: > I don't think this is specific to `rec`, but is simply the way CHICKEN > handles syntax, I don't mean to imply otherwise. But I consider it a pretty serious bug. A REPL should allow the redefinition of a syntax keyword as a variable. What we get now i