FFI and disjoint types

2010-03-01 Thread Ludovic Courtès
Hello, The nice thing about SMOBs is that they allow disjoint C types to be mapped to disjoint Scheme types. With ‘(system foreign)’, C pointers are mapped to Scheme foreign objects, regardless of the type of object pointed to. Thus, to get disjoint types in Scheme, foreign objects would need to

SCM_STATIC_ALIGNED_ARRAY

2010-03-01 Thread Ludovic Courtès
Hello Andy! "Andy Wingo" writes: > commit cee1d22c3c10b1892c82a5758ef69cd6fc9aba31 > Author: Andy Wingo > Date: Mon Feb 22 23:00:19 2010 +0100 > >actually capture partial continuations [...] > +#ifdef SCM_ALIGNED > +#define SCM_DECLARE_STATIC_ALIGNED_ARRAY(type, sym)\ > +static const ty

Re: broken VPATH build

2010-03-01 Thread Neil Jerram
Ken Raeburn writes: > Ah, yeah, I meant to send email about that too. This patch should fix it, > and bring it in line with the way the other source files are written: > > Use libguile/control.x explicitly. Looks good to me; presumably you'll commit this? Neil

Re: FFI and disjoint types

2010-03-01 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: > Hello, > > The nice thing about SMOBs is that they allow disjoint C types to be > mapped to disjoint Scheme types. > > With ‘(system foreign)’, C pointers are mapped to Scheme foreign > objects, regardless of the type of object pointed to. Thus, to get > d

Re: Mingw support.

2010-03-01 Thread Neil Jerram
"carlo.bramix" writes: > Hello, > after an hard work I was able to get an almost working build of the most > recent guile. > In the attached patch there are some little fixes and a bigger one, an almost > complete and working implementation of posix mmap()/munmap() for Windows: > this will all

Re: build problems

2010-03-01 Thread Ken Raeburn
On Feb 15, 2010, at 08:41, Ken Raeburn wrote: > #1: c-tokenize.lex declares yyget_leng() as returning int, but the flex > template defines it as returning yy_size_t (which is size_t, a.k.a. unsigned > long), so c-tokenize.c doesn't compile. Changing the declaration in > c-tokenize.lex to return

Re: broken VPATH build

2010-03-01 Thread Ken Raeburn
On Mar 1, 2010, at 14:24, Neil Jerram wrote: > Looks good to me; presumably you'll commit this? Sure, I'll check it in shortly. I also just sent a couple of patches in other mail (subject "Re: build problems"); Jose, you will probably need the patch to doc/ref/Makefile.am as well. Ken