Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-13 Thread Felix
From: David Dreisigmeyer Subject: Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type) Date: Sun, 13 Feb 2011 13:23:56 -0500 >> Maybe we need to rewind the discussion. What is it again you want >> to do?  I missed that part. > &g

Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-13 Thread John Cowan
Bobby Powers scripsit: > In C, at least on *nix machines, a long is defined to be the same as the > pointer size. So on 32-bit systems its synonymous with int, and on 64-bit > its the same as long long. Why then explicitly define C_word to int on > 32-bit then, as 'long' should work on both 32 a

Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-13 Thread David Dreisigmeyer
> Maybe we need to rewind the discussion. What is it again you want > to do?  I missed that part. I have a Python and a Chicken REPL embedded in a second Python REPL. I can call Chicken using CHICKEN_eval_string_to_string and return a string. But, I'd like to have this converted to a Python type

Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-13 Thread Christian Kellermann
* David Dreisigmeyer [110213 18:12]: > How do you go about translating a C_word into something that C can use? Maybe we need to rewind the discussion. What is it again you want to do? I missed that part. Kind regards, Christian ___ Chicken-users mai

Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-13 Thread David Dreisigmeyer
How do you go about translating a C_word into something that C can use? On Sun, Feb 13, 2011 at 7:43 AM, Felix wrote: > From: David Dreisigmeyer > Subject: Re: [Chicken-users] C_word type / Cython (warning: passing argument > 2 from incompatible pointer type) > Date: Sat, 12 Feb 2

Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-13 Thread Felix
From: Bobby Powers Subject: Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type) Date: Sun, 13 Feb 2011 00:51:07 -0800 > In C, at least on *nix machines, a long is defined to be the same as the > pointer size. So on 32-bit systems its syno

Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-13 Thread Felix
From: David Dreisigmeyer Subject: Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type) Date: Sat, 12 Feb 2011 07:47:09 -0500 > Thanks Felix, > > Mt question wasn't clear. What about C_word's use here: > > int CHICK

Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-13 Thread Bobby Powers
is returned instead of a string. > > > > > > On Sat, Feb 12, 2011 at 5:11 AM, Felix > > wrote: > >> From: David Dreisigmeyer > >> Subject: [Chicken-users] C_word type / Cython (warning: passing argument > 2 from incompatible pointer type) > >> D

Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-12 Thread Jim Ursetto
to return arbitrary results? I was thinking > that this is like CHICKEN_eval_string_to_string except an actual > scheme expression is returned instead of a string. > > > On Sat, Feb 12, 2011 at 5:11 AM, Felix > wrote: >> From: David Dreisigmeyer >> Subject:

Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-12 Thread David Dreisigmeyer
rned instead of a string. On Sat, Feb 12, 2011 at 5:11 AM, Felix wrote: > From: David Dreisigmeyer > Subject: [Chicken-users] C_word type / Cython (warning: passing argument 2 > from incompatible pointer type) > Date: Fri, 11 Feb 2011 17:47:24 -0500 > >> Here's the sol

Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-12 Thread Felix
From: David Dreisigmeyer Subject: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type) Date: Fri, 11 Feb 2011 17:47:24 -0500 > Here's the solution on the Cython side. > > Is C_word a long (or int) though? > A long on 64-bit platfo

[Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-11 Thread David Dreisigmeyer
Here's the solution on the Cython side. Is C_word a long (or int) though? > Here's my setup: > > OSX 10.6.6 > Chicken 4.6.0 > Python 2.7.1 > Cython 0.14 > > ** The Chicken part: > > What type is C_word?  The only thing I see is this in chicken.h > > #ifdef C_SIXTY_FOUR > # define C_word          

[Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type)

2011-02-11 Thread David Dreisigmeyer
Here's my setup: OSX 10.6.6 Chicken 4.6.0 Python 2.7.1 Cython 0.14 ** The Chicken part: What type is C_word? The only thing I see is this in chicken.h #ifdef C_SIXTY_FOUR # define C_word long # define C_u32uint32_t # define C_s32int32_t