[Chicken-hackers] Patch for fastcgi on chicken master

2011-03-24 Thread Peter Danenberg
The fastcgi egg doesn't build anymore with error such as: Error: illegal foreign argument type `(pointer c-string)' The attached patch merely replaces pointer with c-pointer; seems to work. Index: trunk/fastcgi.scm === ---

Re: [Chicken-hackers] Patch for fastcgi on chicken master

2011-03-24 Thread Peter Danenberg
Quoth Peter Danenberg on Pungenday, the 10th of Discord: The attached patch merely replaces pointer with c-pointer; seems to work. While we're at it, we should be able to send binary data over OUT; the signature of FCGX_PutStr is: DLLAPI int FCGX_PutStr(const char *str, int n, FCGX_Stream

Re: [Chicken-hackers] Patch for fastcgi on chicken master

2011-03-24 Thread Jim Ursetto
Hi Peter, On Mar 24, 2011, at 8:53 PM, Peter Danenberg wrote: so let's change the binding to: (foreign-lambda int FCGX_PutStr blob int fcgx-stream) Shouldn't this be scheme-pointer, not blob? I believe calling that with a string would result in a type error, so I am surprised you can get

Re: [Chicken-hackers] Patch for fastcgi on chicken master

2011-03-24 Thread Peter Danenberg
Quoth Jim Ursetto on Pungenday, the 10th of Discord: On Mar 24, 2011, at 8:53 PM, Peter Danenberg wrote: so let's change the binding to: (foreign-lambda int FCGX_PutStr blob int fcgx-stream) Shouldn't this be scheme-pointer, not blob? I believe calling that with a string would result

Re: [Chicken-hackers] Patch for fastcgi on chicken master

2011-03-24 Thread Jim Ursetto
OK, it turns out blob and scheme-pointer are equivalent in argument position (contrary to the docs, blob does not check for blobbiness, only blockiness, which is more general). Anyway, applied in fastcgi 1.1.1. Thanks! Jim On Mar 24, 2011, at 10:00 PM, Peter Danenberg wrote: Quoth Jim