[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] SIP Support for wchar_t
From:       Giovanni Bajo <rasky () develer ! com>
Date:       2007-03-27 9:57:27
Message-ID: 4608EA87.9020203 () develer ! com
[Download RAW message or body]

On 3/25/2007 4:06 PM, Phil Thompson wrote:

> As of tonight's snapshot SIP has support for wchar_t. There are some issues 
> related to wide strings and the heap - see the documentation for details - 
> which could be partly addressed with some new annotations. I'd prefer that 
> any changes are based on real world examples, so let me have some feedback if 
> you use want to use wchar_t in your own bindings.

... and a bug report: SIP generates a sipFree() call to free the wchar_t 
memory after having used it. It works if the pointer is of type 
"wchar_t*", but it does not work if the pointer is of type "const wchar_t*":

error C2664: 'void (void *)' : cannot convert parameter 1 from 'const 
wchar_t *' to 'void *'
         Conversion loses qualifiers

I worked around it by dropping the const qualifiers from the parameter 
declarations in the SIP files.
-- 
Giovanni Bajo

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic