]> git.wh0rd.org Git - ICEs.git/blob - 360229/xapian_wrap.i.1
more
[ICEs.git] / 360229 / xapian_wrap.i.1
1 extern "C" {
2         typedef struct {
3         } *__locale_t;
4         typedef struct _object {
5         } PyObject;
6 } namespace Xapian {
7         namespace Internal {
8                 template < class T > class RefCntPtr {
9                       public:T * operator->()const;
10                         T *get() const;
11                 };
12                  template < class T > inline T * RefCntPtr < T >::get() const {
13         }} class __attribute__ ((visibility("default"))) PositionIterator {
14               public:class Internal;
15                 Xapian::Internal::RefCntPtr < Internal > internal;
16         };
17         inline bool operator==(const PositionIterator & a,
18                                const PositionIterator & b) {
19                 return (a.internal.get() == b.internal.get());
20         };
21 }
22
23 static __attribute__ ((__unused__))
24 inline PyObject *SWIG_From_bool(bool value)
25 {
26 }
27
28 namespace Xapian {
29         __attribute__ ((visibility("default"))) void SetPythonException() {
30 }};
31 static __attribute__ ((__unused__))
32 bool Xapian_PositionIterator_equals(Xapian::PositionIterator const *self,
33                                     Xapian::PositionIterator const &other)
34 {
35         return (*self) == other;
36 };
37
38 extern "C" {
39         static
40             __attribute__ ((__unused__)) PyObject
41             *_wrap_PositionIterator_equals(PyObject *, PyObject * args) {
42                 PyObject *resultobj = 0;
43                  Xapian::PositionIterator * arg1 =
44                     (Xapian::PositionIterator *) 0;
45                  Xapian::PositionIterator * arg2 = 0;
46                 bool result;
47                 {
48                         {
49                                 try {
50                                         result =
51                                             (bool)
52                                             Xapian_PositionIterator_equals((Xapian::PositionIterator const *)arg1, (Xapian::PositionIterator const &)*arg2);
53                                 } catch(...) {
54                                 }
55                         }
56                 }
57                 resultobj = SWIG_From_bool(static_cast < bool > (result));
58         }
59 }