[Python-Dev] building with C++

Jeremy Hylton jeremy at alum.mit.edu
Thu Apr 13 04:03:20 CEST 2006


On 4/12/06, Anthony Baxter <anthony at interlink.com.au> wrote:
> The code is _nearly_ building fine. there's an issue in _sre.c with
> some code that either returns a Py_UNICODE* or an SRE_CHAR* (unsigned
> char*) in a void*. The code probably needs a refactoring to deal with
> that. There's also
> Python/compile.c: In function 'int compiler_compare(compiler*,
> _expr*)':
> Python/compile.c:3065: error: invalid cast from type 'void*' to type
> 'cmpop_ty'
> Python/compile.c:3075: error: invalid cast from type 'void*' to type
> 'cmpop_ty'
> which I haven't looked at yet. Anyone else is welcome to fix these.

The code in compile.c is pretty dodgy.  I'd like to think of a better
way to represent an array of cmpop_ty objects than casting ints to
void* and then back.

Jeremy

> To get past those two, I've been building just those two files with
> gcc, with "make CC=gcc Python/compile.o Modules/_sre.o"
>
>
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/jeremy%40alum.mit.edu
>


More information about the Python-Dev mailing list