Re: [Chicken-users] static library and link

2006-05-24 Thread Thomas Chust
On Wed, 24 May 2006, felix winkelmann wrote: On 5/23/06, Frédéric Peschanski [EMAIL PROTECTED] wrote: [...] Finally, I don't really understand which commands I should use for compilation : [...] - of the library .o == .so csc X.o Y.o -s -o libXY.so [...] Hello, as I already pointed

[Chicken-users] sed_quote_subst for CFLAGS with commas

2006-05-24 Thread Burton Samograd
Hi, I'm building chicken and found a slight problem with the Makefile. The variable sed_quote_subst didn't handle my CFLAGS properly, since I'm using the -mfpmath=sse,387 option. I fixed it by changing the variable to include a comma: Makefile: line 1628 after rule csc.scm: csc.scm.in

Re: [Chicken-users] most-{positive,negative}-fixnum

2006-05-24 Thread Alejandro Forero Cuervo
I need to determine the most positive and most negative fixnums, given that Chicken has both 32-bit and 64-bit builds. Can these be added as constants, or is there some easy way to compute them? I used the following: (use format) (define (find type) (let loop ((i type) (mult 2))

Re: [Chicken-users] static library and link

2006-05-24 Thread felix winkelmann
On 5/24/06, John Cowan [EMAIL PROTECTED] wrote: We can also combine multiple library units into a static library: % ar cru libxy.a x.o y.o % csc z.scm -L. -lxy This, however, pukes on Cygwin as follows: ./libxy.a(y.o): In function `C_y_toplevel': /tmp/y.c:56: undefined reference to

Re: [Chicken-users] most-{positive,negative}-fixnum

2006-05-24 Thread felix winkelmann
On 5/23/06, Kon Lovett [EMAIL PROTECTED] wrote: On May 22, 2006, at 7:14 AM, John Cowan wrote: I need to determine the most positive and most negative fixnums, given that Chicken has both 32-bit and 64-bit builds. Can these be added as constants, or is there some easy way to compute them?

Re: [Chicken-users] most-{positive,negative}-fixnum

2006-05-24 Thread John Cowan
felix winkelmann scripsit: Right, sth like: (define most-positive-fixnum (foreign-value C_MOST_POSITIVE_FIXNUM int)) (define most-negative-fixnum (foreign-value C_MOST_NEGATIVE_FIXNUM int)) should do the job. Thanks! It works. (felix) Felix? Felix? /me shakes Felix. Oh dear!

Re: [Chicken-users] static library and link

2006-05-24 Thread Sven . Hartrumpf
Wed, 24 May 2006 12:13:25 + (GMT), chust wrote: as I already pointed out in my earlier reply to this thread (which is apparently, like so often these days, delayed forever by the mailing list software) Not the software, it's us, the moderators who sometimes get lost among 20 spam mails

Re: [Chicken-users] static library and link

2006-05-24 Thread Thomas Chust
On Wed, 24 May 2006, [EMAIL PROTECTED] wrote: Wed, 24 May 2006 12:13:25 + (GMT), chust wrote: as I already pointed out in my earlier reply to this thread (which is apparently, like so often these days, delayed forever by the mailing list software) Not the software, it's us, the

Re: [Chicken-users] is case-lambda expensive?

2006-05-24 Thread Kon Lovett
On May 24, 2006, at 9:25 AM, Matthew David Parker wrote: Hi I've got functions for my SDL layer that I want to put like this: (define msdl.pixel (case-lambda (() (printf (msdl.pixel x y rgb alpha [img])\n)) ((x y rgb alpha)

Re: [Chicken-users] is case-lambda expensive?

2006-05-24 Thread Matthew David Parker
Ex: (w/ csi) #;1 (define (msdl.pixel x y rgb alpha #!optional (img 0)) 'foo) #;2 (procedure-information msdl.pixel) (msdl.pixel x y rgb alpha #!optional (img 0)) #;3 (msdl.pixel 3) Error: too few arguments - received 1 but expected 4: #procedure (msdl.pixel x y rgb alpha #!optional (img

Re: [Chicken-users] is case-lambda expensive?

2006-05-24 Thread Kon Lovett
On May 24, 2006, at 10:33 AM, Matthew David Parker wrote: Ex: (w/ csi) #;1 (define (msdl.pixel x y rgb alpha #!optional (img 0)) 'foo) #;2 (procedure-information msdl.pixel) (msdl.pixel x y rgb alpha #!optional (img 0)) #;3 (msdl.pixel 3) Error: too few arguments - received 1 but expected

Re: [Chicken-users] is case-lambda expensive?

2006-05-24 Thread Matthew David Parker
Alright I'll just use case-lambda for portability reasons. I'm sure the delay from using case-lambda is minimal compared to the time it takes to actually write a pixel to the screen or draw a rectangle. Matt On Wed, 24 May 2006, Kon Lovett wrote: On May 24, 2006, at 10:33 AM, Matthew David

[Chicken-users] SOAP implementations/libraries

2006-05-24 Thread Jim Miller
Having gotten tired of parsing through google results with the words 'scheme' and 'soap', I figure I'll ask here. Is there a standard library or reference for implementing soap services and clients in scheme? thanks ___ Chicken-users mailing list

[Chicken-users] Enumerating Macros and Special Forms

2006-05-24 Thread Heath Johns
Hi again. Happy to report that everything is working on the new readline egg (paren bouncing, tab completion, some other odds and ends). However, I have two questions: - I'm using C_find_symbol_table and C_enumerate_symbols to get the symbols for tab completion, which work great, but they