Re: [Chicken-users] Code for parsing multipart/form-data

2011-09-20 Thread Santosh Rajan
Thanks all, for the links, will look into them. On Tue, Sep 20, 2011 at 12:40 PM, Peter Bex wrote: > On Tue, Sep 20, 2011 at 08:49:24AM +0530, Santosh Rajan wrote: > > Hi, > > > > I am looking for chicken code for parsing multipart/form-data. Can anyone > > point me

[Chicken-users] Code for parsing multipart/form-data

2011-09-19 Thread Santosh Rajan
Hi, I am looking for chicken code for parsing multipart/form-data. Can anyone point me to the code please? Sure it must be there somewhere, at least in the web server code. Thanks Santosh -- http://about.me/santosh.rajan ___ Chicken-users mailing list

[Chicken-users] Question regarding copyright notice

2011-08-30 Thread Santosh Rajan
I have been working on a small chicken scheme project, which I intend to release as open source on Github. The distribution will contain some of chicken scheme "C" source code, along with my scm files and other open source code. However I noticed that the compiled chicken "C" source code does not c

Re: [Chicken-users] double-free or corruption

2011-07-05 Thread Santosh Rajan
On Wed, Jul 6, 2011 at 9:22 AM, David N Murray wrote: > Hi all, > > I have some code that runs fine on my Mac and under OpenBSD. Under Linux > however, it crashes. Same code, all running under csi 4.7.0 64-bit. > Could this be an issue with my code? I'm not sure I fully understand the > ramific

Re: [Chicken-users] How to convert c-pointer to nonnull-c-string

2011-07-02 Thread Santosh Rajan
> > > > I have a c-pointer to a C buf and buf length. Buffer sizes may be large > so I > > cant use the stack. I pass a c-pointer and int length from C to the > > callback. > > If the string is zero-terminated, you can use > > (##sys#peek-c-string POINTER 0) > > If it isn't or may contain zeros, t

[Chicken-users] How to convert c-pointer to nonnull-c-string

2011-07-02 Thread Santosh Rajan
I have a c-pointer to a C buf and buf length. Buffer sizes may be large so I cant use the stack. I pass a c-pointer and int length from C to the callback. I want to load this into a string. I tried some things based on what I found in my search but didn't work. Is there a idiomatic way to do this?

Re: [Chicken-users] undefined reference to `C_library_2csrfi_2d69_toplevel

2011-06-27 Thread Santosh Rajan
> Hi Felix, > > Thanks for the reply. The "-uses library -uses srfi-69" option, doesn't > > work. Looks like a prob in srfi-69.c (just guessing). I will try the > latest > > from git repo though. > > What error message are you getting? > > > The first time i used "-explicit-use -uses library,srfi-6

Re: [Chicken-users] undefined reference to `C_library_2csrfi_2d69_toplevel

2011-06-27 Thread Santosh Rajan
> Hm. This looks like something got mixed up. srfi-69.c refers > to a unit named "library,srfi-69". Can you delete all the .o and .c > files and build everything from scratch? How did you obtain > "srfi-69.c"? > > Ya It works now. My bad. Must have messed up something while trying out something el

Re: [Chicken-users] undefined reference to `C_library_2csrfi_2d69_toplevel

2011-06-27 Thread Santosh Rajan
> > > Hi, Santosh! > > This is a bug in the processing of the "-uses" option. The > documentation says it allows multiple arguments, split by ",", > but that was actually wrong. This has been fixed in the git repository, > but you can simply replace "-uses library,srfi-69" with > "-uses library -us

[Chicken-users] undefined reference to `C_library_2csrfi_2d69_toplevel

2011-06-26 Thread Santosh Rajan
I am getting the an error while compiling my program with -explicit-use. $ make gcc server.c scm_uv.c runtime.o library.o srfi-69.o uv/uv.a -Os -fomit-frame-pointer -fno-strict-aliasing -o server -lm /tmp/ccxRIoEH.o: In function `C_toplevel': server.c:(.text+0x689): undefined reference to `C_libr