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
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
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
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
"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
> >:
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
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
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 :)
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
"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
>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
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
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
[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
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
> > 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
> 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
> "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
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
[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
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
21 matches
Mail list logo