[cffi-devel] New patches: 1-Feb-2006

2006-02-01 Thread Luis Oliveira
Wed Feb 1 21:57:29 CST 2006 Luis Oliveira <[EMAIL PROTECTED]> * Fix allegro's %load-foreign-library Versions prior to 7.0 don't have a :foreign keyword argument for LOAD. Reported by Andrew Philpot. M ./src/cffi-allegro.lisp -1 +2 Wed Feb 1 13:17:12 CST 2006 Luis Oliveira <[EMAI

Re: [cffi-devel] Problem with SDL_Init using CFFI with Clisp in W indows 98

2006-02-01 Thread Roger Sen Montero
Joerg, Jeremy, at this time with the current cffi sdl file I created for a small project I'm adding manually the following line (load-foreign-library "libSDL.so") after the (in-package #:sdl) in your windows platform you should add your dll, not the so file. I suspect you should add th

[cffi-devel] %LOAD-FOREIGN-LIBRARY and keyword :FOREIGN

2006-02-01 Thread Andrew Philpot
In Allegro 6.2 (and presumably all earlier versions), the keyword argument :FOREIGN to function LOAD is not defined. So perhaps you want something more like: (defun %load-foreign-library (name) "Load the foreign library NAME." ;; ACL 8.0 honors the :FOREIGN option and always tries to forei

Re: [cffi-devel] Re: [anaphora-devel] Python embedded API and passing arrays with CFFI

2006-02-01 Thread James Bielman
Jeremy Smith <[EMAIL PROTECTED]> writes: > I want an array of structs. Not pointers to structs, but actual > structs. So with an array of 4 16-byte structs, it should be 64 > bytes. > > I've got around the problem by using a struct which has 16 entries > (4 * the 4-entry struct), but that's not d

Re: [cffi-devel] Problem with SDL_Init using CFFI with Clisp in Windows 98

2006-02-01 Thread Jeremy Smith
"Hoehle, Joerg-Cyril" wrote: > > Hi, > > Jeremy Smith wrote: > >CFFI-based SDL > >module does not work on Windows 98 under Clisp. I just tested it on my > >Windows 98 laptop (P166 :-) and it says the same thing. "FFI: > >FOREIGN-LIBRARY-FUNCTION: No dynamic object named 'SDL_Init' in library > >:

[cffi-devel] Re: [anaphora-devel] Python embedded API and passing arrays with CFFI

2006-02-01 Thread Jeremy Smith
Jeremy Smith wrote: > > Hi folks, > > I'm trying to interface Python to Lisp using the official embedded API. > One aspect of this is that you can setup callback functions to pass data > from Python to Lisp. I've got this figured out, but I could still do with some help on the array thing. I wa

RE: [cffi-devel] Problem with SDL_Init using CFFI with Clisp in Windows 98

2006-02-01 Thread Frank Buss
Jorg Hohle wrote: > o Doesn't Frank Buss got a patch to make MS-Windows-98 work > (I lost track of it)? Yes, I have patched it: http://sourceforge.net/mailarchive/message.php?msg_id=14620889 The compiled CLISP version, but without command line support, is available at http://www.lispbuilder.o

Re: [cffi-devel] Problem with SDL_Init using CFFI with Clisp in W indows 98

2006-02-01 Thread Hoehle, Joerg-Cyril
Hi, Jeremy Smith wrote: >CFFI-based SDL >module does not work on Windows 98 under Clisp. I just tested it on my >Windows 98 laptop (P166 :-) and it says the same thing. "FFI: >FOREIGN-LIBRARY-FUNCTION: No dynamic object named 'SDL_Init' in library >:DEFAULT" I've a different opinion from James :)

[cffi-devel] Re: unnamed callback (closures?)

2006-02-01 Thread Hoehle, Joerg-Cyril
Jan Rychter wrote: >> What are the problems with unnamed callbacks? My guess was that they >> will never get garbage-collected, but how about storing all >of these in >> a table somewhere and explicitly freeing them after they are >no longer >> needed? In my case I do have a way of finding out wh

[cffi-devel] Re: AW: Bitfields and defcenum

2006-02-01 Thread Luís Oliveira
"Hoehle, Joerg-Cyril" <[EMAIL PROTECTED]> writes: >>(defbitfield name (0 sym1 sym2 ...) > Never thought about it. But who says bitfields will soon say > "arbitrary width". Not everything is a single bit. Yeah, I thought about that so I don't plan to place any restrictions on the mask (so the use

AW: [cffi-devel] Bitfields and defcenum

2006-02-01 Thread Hoehle, Joerg-Cyril
>But this makes me wonder if another abstraction, say DEFBITFIELD >would be useful. Something like: The more expressive, the better IMHO. >(defbitfield name > (0 sym1 sym2 ...) Never thought about it. But who says bitfields will soon say "arbitrary width". Not everything is a single bit. R

Re: [cffi-devel] Problem with SDL_Init using CFFI with Clisp in Windows 98

2006-02-01 Thread James Bielman
Jeremy Smith <[EMAIL PROTECTED]> writes: > I'm posting this to the CFFI discussion group, I previously posted it to > the Lisp Application Builder list. (Sorry for the delay in approving your message; the list gets so much spam I don't check it all that often.) > What I'm getting to is, I read o

[cffi-devel] Problem with SDL_Init using CFFI with Clisp in Windows 98

2006-02-01 Thread Jeremy Smith
Hi, I'm posting this to the CFFI discussion group, I previously posted it to the Lisp Application Builder list. Anyway, the L/AB people have made an SDL module that lets CFFI-supported Lisps use SDL (it's a very portable gaming library). I use Clisp exclusively, so I wanted to see SDL work prope

Re: [cffi-devel] darcs patch: Add check for FreeBSD and remove some redundant assign...

2006-02-01 Thread James Bielman
[EMAIL PROTECTED] writes: > Wed Feb 1 22:40:58 VLAT 2006 [EMAIL PROTECTED] > * Add check for FreeBSD and remove some redundant assignments. Thanks, I've merged this. James ___ cffi-devel mailing list cffi-devel@common-lisp.net http://common-lisp.ne

[cffi-devel] darcs patch: Add check for FreeBSD and remove some redundant assign...

2006-02-01 Thread keriax
Wed Feb 1 22:40:58 VLAT 2006 [EMAIL PROTECTED] * Add check for FreeBSD and remove some redundant assignments. New patches: [Add check for FreeBSD and remove some redundant assignments. [EMAIL PROTECTED] { hunk ./tests/Makefile 30 +CC := gcc +CFLAGS := -lm -Wall -std=c99 -p

Re: [cffi-devel] Re: unnamed callback (closures?)

2006-02-01 Thread Jan Rychter
> > On Wed, 01 Feb 2006 09:46:27 +0100, Jan Rychter <[EMAIL PROTECTED]> > > said: > > "Luís" == Luís Oliveira <[EMAIL PROTECTED]>: > > Luís> "Hoehle, Joerg-Cyril" <[EMAIL PROTECTED]> writes: > > >> In CLISP, every closure can be turned into a callback, and this is > > >> valuable si

Re: [cffi-devel] Re: unnamed callback (closures?)

2006-02-01 Thread Martin Simmons
> On Wed, 01 Feb 2006 09:46:27 +0100, Jan Rychter <[EMAIL PROTECTED]> said: > "Luís" == Luís Oliveira <[EMAIL PROTECTED]>: > Luís> "Hoehle, Joerg-Cyril" <[EMAIL PROTECTED]> writes: > >> In CLISP, every closure can be turned into a callback, and this is > >> valuable since it allows to re

Re: [cffi-devel] Re: unnamed callback (closures?)

2006-02-01 Thread Jan Rychter
> "James" == James Bielman <[EMAIL PROTECTED]> writes: James> Jan Rychter <[EMAIL PROTECTED]> writes: >> I mostly develop on SBCL/x86 and ECL, so even if a solution worked >> on these platforms only, I'd be really happy. James> If all else failed, you could resort to passing something like

Re: [cffi-devel] Re: unnamed callback (closures?)

2006-02-01 Thread James Bielman
Jan Rychter <[EMAIL PROTECTED]> writes: > I mostly develop on SBCL/x86 and ECL, so even if a solution worked > on these platforms only, I'd be really happy. If all else failed, you could resort to passing something like: #+sbcl (alien-sap (alien-lambda ...)) #+ecl #| whatever is appropriate for

[cffi-devel] Re: unnamed callback (closures?)

2006-02-01 Thread Jan Rychter
[resending directly as it seems messages posted through Gmane don't make it to the list :-/ ] > "Luís" == Luís Oliveira <[EMAIL PROTECTED]>: Luís> "Hoehle, Joerg-Cyril" <[EMAIL PROTECTED]> writes: >> In CLISP, every closure can be turned into a callback, and this is >> valuable since it all

[cffi-devel] Bitfields and defcenum

2006-02-01 Thread Luís Oliveira
Hello, While building CFFI bindings for GLUT and using enums for defining bitfield masks, I came across this example: (defcenum display-mode (:rgb 0) (:rgba 0) (:index 1) (:single 0) (:double 2) (:accum 4) (:alpha 8) (:depth 16) (:stencil 32) (:multisample 128) (:stereo