[PyKDE] SIP: unicode to wchar_t* in C modules

2006-03-29 Thread Matteo Beniamino
Hi, I'm having some trouble mapping a unicode Python variable to a C wchar_t* . I reused a MappedType directive that works flawlessy for a C++ module. First problem: SIP generates .c files containing some C++ directives (i.e.: delete and reinterpret_cast). I patched gencode.c[1] to handle C

Re: [PyKDE] SIP: unicode to wchar_t* in C modules

2006-03-29 Thread Phil Thompson
On Wednesday 29 March 2006 4:16 pm, Matteo Beniamino wrote: Hi, I'm having some trouble mapping a unicode Python variable to a C wchar_t* . I reused a MappedType directive that works flawlessy for a C++ module. %MappedTypes are for mapping classes and structs, not for basic types. If it

Re: [PyKDE] SIP: unicode to wchar_t* in C modules

2006-03-29 Thread Giovanni Bajo
Phil Thompson [EMAIL PROTECTED] wrote: I'm having some trouble mapping a unicode Python variable to a C wchar_t* . I reused a MappedType directive that works flawlessy for a C++ module. %MappedTypes are for mapping classes and structs, not for basic types. If it works in a C++ context then