[Chicken-users] bug in (hash-table-exists?)

2005-10-05 Thread Daniel B. Faken
It looks like it should be hash-table-ref/default instead of hash-table-ref, at extras.scm:1575 (otherwise you get: Error: call of non-procedure: #(42)) - Daniel ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] Chicken 2.2

2005-09-26 Thread Daniel B. Faken
Hi, Just FYI, the chicken.html packaged with 2.2 is out-of-date. 'make chicken.html' or make install will fix this. Daniel On Mon, 26 Sep 2005, Daishi Kato wrote: At Sun, 25 Sep 2005 17:00:20 +0200, felix winkelmann wrote: - Embedding: * All the `entry-point' related things have

Re: [Chicken-users] callbacks without having a C_toplevel()

2005-08-25 Thread Daniel B. Faken
On Thu, 25 Aug 2005, Daniel B. Faken wrote: I'm switching from using my own version of CHICKEN_eval_string() friends to the builtin one, which is now a callback. When I was using my own version, I defined it in the normal top-level scheme file, and my eval-fn had access to all the units

[Chicken-users] 'const' types not working in define-foreign-record

2005-08-25 Thread Daniel B. Faken
Hi, When I define a type like c-string, int, and others as 'const' (i.e. (const c-string), (const int), ..) their accessors give garbage output. Just wanted to note it.. maybe I'll have time to figure it out in a week or so. Just making them mutable for now.. thanks, Daniel

Re: [Chicken-users] A few questions...

2005-08-18 Thread Daniel B. Faken
On Wed, 17 Aug 2005, felix winkelmann wrote: [...] Q3: What are you missing most desperately from Chicken, or better: if there is one thing that you really want it to have, what would that be? my wish list.. :) * Better error-messages/debugging support. Even using the debug module, I find

[Chicken-users] [ANN] Alpha version of Scripting bindings to Chromium available

2005-07-31 Thread Daniel B. Faken
/generate_glenum_strings.py is taken from the original print SPU. AUTHOR Daniel B. Faken email: Daniel_Faken -at- brown.edu Some of this work was funded by grants from the U.S. Department of Energy. ___ Chicken-users

[Chicken-users] minor note for manual on (define-foreign-record)

2005-07-28 Thread Daniel B. Faken
Hi, The manual should probably note that recursive definitions don't work. E.g. in this code: (the structure is part of 'chromium') (define-foreign-record (SPU struct _SPUSTRUCT) [(const c-string) name] [(const c-string)

[Chicken-users] C_SIZEOF_FLONUM not really correct

2005-07-28 Thread Daniel B. Faken
Hi, In chicken.h we find #define C_SIZEOF_FLONUM 3 But (whereas this may have been right in the past), in runtime.c:C_flonum(): #ifndef C_SIXTY_FOUR /* Align double on 8-byte boundary: */ if(aligned8(p)) ++p; #endif ..which is not included in the size of '3', and which means

[Chicken-users] the (##sys#call-host) FFI trick

2005-07-27 Thread Daniel B. Faken
Hello, I've been trying out the trick we discussed (http://lists.gnu.org/archive/html/chicken-users/2005-07/msg00077.html), but having confusing issues. I just thought I would report on these.. I've attached a torture test for this method, below, which resembles my code pretty well (sans

Re: [Chicken-users] the (##sys#call-host) FFI trick

2005-07-27 Thread Daniel B. Faken
On Wed, 27 Jul 2005, Daniel B. Faken wrote: Hello, I've been trying out the trick we discussed (http://lists.gnu.org/archive/html/chicken-users/2005-07/msg00077.html), but having confusing issues. I just thought I would report on these.. [...] Oh, one more thing I tried

Re: [Chicken-users] signed-char* not handled correctly

2005-07-25 Thread Daniel B. Faken
On Mon, 25 Jul 2005, felix winkelmann wrote: On 7/22/05, Daniel B. Faken [EMAIL PROTECTED] wrote: Hello, I've been encountering problems using the FFI with functions that take a (signed char *). For example, with this short program: --- (define-foreign-type

Re: [Chicken-users] C_alloc OK before C_invoke? (was Re: Constructing parameter lists in C)

2005-07-22 Thread Daniel B. Faken
On Fri, 22 Jul 2005, felix winkelmann wrote: On 7/21/05, Daniel B. Faken [EMAIL PROTECTED] wrote: On a related note: is it OK to call C_alloc() to construct data to be passed via CHICKEN_invoke()? Yes, that should work. The manual entry for C_alloc() says ..Note that stack

[Chicken-users] signed-char* not handled correctly

2005-07-22 Thread Daniel B. Faken
Hello, I've been encountering problems using the FFI with functions that take a (signed char *). For example, with this short program: --- (define-foreign-type GLbyte signed-char) #! typedef signed char GLbyte; int call_fn(GLbyte x, GLbyte *y); #

[Chicken-users] minor documentation fix

2005-07-22 Thread Daniel B. Faken
Hi, The manual entry for (define-foreign-record) should indicate that, when using the (TYPENAME FOREIGNNAME) version of NAME, the FOREIGNNAME should be quoted. I actually only figured this out by vague recollection of other FFI behaviour, since if you try to compile this (as I did at

[Chicken-users] Constructing parameter lists in C: can I use FFI?

2005-07-21 Thread Daniel B. Faken
Hello all, I'm wondering how I can get access to Chicken's FFI for building function calls in C. The problem I have is that I need *entry points* as well as callbacks, because I am using Chicken as a (scripted) library which C programs will call out into (see

[Chicken-users] libffi in chicken-2.0

2005-07-18 Thread Daniel B. Faken
Hello all, I'm trying to build the new release with --with-libffi, but it appears that the configuration is messed up. (my compiler output is appended) Specifically, it seems that libffi is *not* compiled into libchicken, and so to use libchicken, libffi.a must be explicitly included when