[PyKDE] sip file syntax, Re: checking sip versions

Patrick Stinson ajole-1 at gci.net
Tue Feb 10 05:46:14 GMT 2004


On Monday 09 February 2004 02:14, Phil Thompson wrote:
> On Monday 09 February 2004 10:38 am, Patrick Stinson wrote:
> > Is there a clean way to check the sip version in a sip file, ie.
> > %If Version(- Qt_2_00)
> >             %If Version(Qt_1_43 -)
> >             %If Version(Qt_2_00 - Qt_2_1_0)
> >
> > but for sip itself?
>
> No, but (at the moment) there is no need.
>
> > I'm trying to keep my sip code somewhat portable (wrt
> > HeaderCode/TypeHeaderCode, other directives)
>
> SIP v3 == SIP v4 + deprecated features.
>
> So write for SIP v4 and it will work for SIP v3. I intend that future
> changes to SIP v4 will be backwards compatible.
>
> Phil

ajole at ajole pkaudio $ make
-- Generating sip code
sip -s ".cpp" -t WS_X11 -x SIP_DUMB_DIR -c sipcode pkaudiomod.sip
sip: pk_output.sip:10: parse error
make: *** [sipcode/sippkaudiocmodule.cpp] Error 1
ajole at ajole pkaudio $ cat pk_output.sip

namespace PK
{


class Output : PK::BeatClock, PK::Module
{


%TypeHeaderCode
#include <output.h>
%End

protected:
  void InitOutputModule();
  PK::Segment *GetInput();

public:

  Output(const char *,
            unsigned int = 4096,
            unsigned int = 44100);
  Output(PK::Output &);
  virtual ~Output();
  unsigned int BufferSize(unsigned int = 0);
  unsigned int SampleRate();
};

};
ajole at ajole pkaudio $ sip -V
3.8 (build 109)
ajole at ajole pkaudio $ 




More information about the PyQt mailing list