[PyKDE] SIP parse error
Denis S. Otkidach
ods at strana.ru
Tue Jun 21 16:25:03 BST 2005
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.
--
Denis S. Otkidach
http://www.python.ru/ [ru]
More information about the PyQt
mailing list