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
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
> 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
* 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
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
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
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
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
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:
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
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
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
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
13 matches
Mail list logo