[PyKDE] SIP parse error
Phil Thompson
phil at riverbankcomputing.co.uk
Wed Jun 22 18:46:39 BST 2005
On Tuesday 21 June 2005 4:25 pm, Denis S. Otkidach wrote:
> On Tue, 21 Jun 2005 15:52:15 +0100 (BST)
>
> "Phil Thompson" <phil at riverbankcomputing.co.uk> wrote:
> > > I see some strange syntax errors with this snapshot for project
> > > successfully built with sip-snapshot-20050605. In all cases the error
> > > is in %Included file and in one case the error is at line 271 of file
> > > having 214 lines.
> >
> > Can you send me a test case?
>
> Looks like I've found one minimal example:
> == sip_bug.sip ==
> %Module sip_bug
>
> %PostInitialisationCode
> (void)0;
> %End
>
> %Include MyClass.sip
> == MyClass.sip ==
> %ModuleHeaderCode
> class MyClass {
> public:
> void method() {};
> };
> // If you remove next line the error gone
>
> %End
>
> class MyClass {
> public:
> void method();
> %MethodCode
> (void)0;
> %End
> };
> ==============
> $ ./configure_sip_bug.py
> sip -e -w -c . -b sip_bug.sbf sip_bug.sip
> sip: MyClass.sip:20: syntax error
>
> As you can see MyClass.sip consist of 16 lines only.
Hopefully fixed in tonight's snapshot.
Phil
More information about the PyQt
mailing list