Bug Summary

File:build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp
Warning:line 53930, column 5
Potential leak of memory pointed to by 'arg2'

Annotated Source Code

Press '?' to see keyboard shortcuts

clang -cc1 -triple x86_64-pc-linux-gnu -analyze -disable-free -disable-llvm-verifier -discard-value-names -main-file-name LLDBWrapPython.cpp -analyzer-store=region -analyzer-opt-analyze-nested-blocks -analyzer-checker=core -analyzer-checker=apiModeling -analyzer-checker=unix -analyzer-checker=deadcode -analyzer-checker=cplusplus -analyzer-checker=security.insecureAPI.UncheckedReturn -analyzer-checker=security.insecureAPI.getpw -analyzer-checker=security.insecureAPI.gets -analyzer-checker=security.insecureAPI.mktemp -analyzer-checker=security.insecureAPI.mkstemp -analyzer-checker=security.insecureAPI.vfork -analyzer-checker=nullability.NullPassedToNonnull -analyzer-checker=nullability.NullReturnedFromNonnull -analyzer-output plist -w -mrelocation-model pic -pic-level 2 -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -momit-leaf-frame-pointer -ffunction-sections -fdata-sections -resource-dir /usr/lib/llvm-8/lib/clang/8.0.0 -D HAVE_ROUND -D LLDB_CONFIGURATION_RELEASE -D _DEBUG -D _GNU_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -I /build/llvm-toolchain-snapshot-8~svn345461/build-llvm/tools/lldb/source/API -I /build/llvm-toolchain-snapshot-8~svn345461/tools/lldb/source/API -I /build/llvm-toolchain-snapshot-8~svn345461/build-llvm/tools/lldb/include -I /build/llvm-toolchain-snapshot-8~svn345461/tools/lldb/include -I /build/llvm-toolchain-snapshot-8~svn345461/build-llvm/include -I /build/llvm-toolchain-snapshot-8~svn345461/include -I /usr/include/python2.7 -I /build/llvm-toolchain-snapshot-8~svn345461/tools/clang/include -I /build/llvm-toolchain-snapshot-8~svn345461/build-llvm/tools/lldb/../clang/include -I /build/llvm-toolchain-snapshot-8~svn345461/tools/lldb/source/. -U NDEBUG -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/x86_64-linux-gnu/c++/6.3.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/x86_64-linux-gnu/c++/6.3.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/backward -internal-isystem /usr/include/clang/8.0.0/include/ -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-8/lib/clang/8.0.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -Wno-maybe-uninitialized -Wno-comment -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -Wno-sequence-point -Wno-cast-qual -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /build/llvm-toolchain-snapshot-8~svn345461/build-llvm/tools/lldb/source/API -ferror-limit 19 -fmessage-length 0 -fvisibility-inlines-hidden -fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp -analyzer-output=html -analyzer-config stable-report-filename=true -o /tmp/scan-build-2018-10-27-211344-32123-1 -x c++ /build/llvm-toolchain-snapshot-8~svn345461/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp -faddrsig
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 3.0.10
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11
12#ifndef SWIGPYTHON
13#define SWIGPYTHON
14#endif
15
16#define SWIG_PYTHON_THREADS
17#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
18
19
20#ifdef __cplusplus201103L
21/* SwigValueWrapper is described in swig.swg */
22template<typename T> class SwigValueWrapper {
23 struct SwigMovePointer {
24 T *ptr;
25 SwigMovePointer(T *p) : ptr(p) { }
26 ~SwigMovePointer() { delete ptr; }
27 SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
28 } pointer;
29 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
30 SwigValueWrapper(const SwigValueWrapper<T>& rhs);
31public:
32 SwigValueWrapper() : pointer(0) { }
33 SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
34 operator T&() const { return *pointer.ptr; }
35 T *operator&() { return pointer.ptr; }
36};
37
38template <typename T> T SwigValueInit() {
39 return T();
40}
41#endif
42
43/* -----------------------------------------------------------------------------
44 * This section contains generic SWIG labels for method/variable
45 * declarations/attributes, and other compiler dependent labels.
46 * ----------------------------------------------------------------------------- */
47
48/* template workaround for compilers that cannot correctly implement the C++ standard */
49#ifndef SWIGTEMPLATEDISAMBIGUATOR
50# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
51# define SWIGTEMPLATEDISAMBIGUATOR template
52# elif defined(__HP_aCC)
53/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
54/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
55# define SWIGTEMPLATEDISAMBIGUATOR template
56# else
57# define SWIGTEMPLATEDISAMBIGUATOR
58# endif
59#endif
60
61/* inline attribute */
62#ifndef SWIGINLINEinline
63# if defined(__cplusplus201103L) || (defined(__GNUC__4) && !defined(__STRICT_ANSI__1))
64# define SWIGINLINEinline inline
65# else
66# define SWIGINLINEinline
67# endif
68#endif
69
70/* attribute recognised by some compilers to avoid 'unused' warnings */
71#ifndef SWIGUNUSED__attribute__ ((__unused__))
72# if defined(__GNUC__4)
73# if !(defined(__cplusplus201103L)) || (__GNUC__4 > 3 || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4))
74# define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
75# else
76# define SWIGUNUSED__attribute__ ((__unused__))
77# endif
78# elif defined(__ICC)
79# define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__))
80# else
81# define SWIGUNUSED__attribute__ ((__unused__))
82# endif
83#endif
84
85#ifndef SWIG_MSC_UNSUPPRESS_4505
86# if defined(_MSC_VER)
87# pragma warning(disable : 4505) /* unreferenced local function has been removed */
88# endif
89#endif
90
91#ifndef SWIGUNUSEDPARM
92# ifdef __cplusplus201103L
93# define SWIGUNUSEDPARM(p)
94# else
95# define SWIGUNUSEDPARM(p) p SWIGUNUSED__attribute__ ((__unused__))
96# endif
97#endif
98
99/* internal SWIG method */
100#ifndef SWIGINTERNstatic __attribute__ ((__unused__))
101# define SWIGINTERNstatic __attribute__ ((__unused__)) static SWIGUNUSED__attribute__ ((__unused__))
102#endif
103
104/* internal inline SWIG method */
105#ifndef SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline
106# define SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline SWIGINTERNstatic __attribute__ ((__unused__)) SWIGINLINEinline
107#endif
108
109/* exporting methods */
110#if defined(__GNUC__4)
111# if (__GNUC__4 >= 4) || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4)
112# ifndef GCC_HASCLASSVISIBILITY
113# define GCC_HASCLASSVISIBILITY
114# endif
115# endif
116#endif
117
118#ifndef SWIGEXPORT__attribute__ ((visibility("default")))
119# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
120# if defined(STATIC_LINKED)
121# define SWIGEXPORT__attribute__ ((visibility("default")))
122# else
123# define SWIGEXPORT__attribute__ ((visibility("default"))) __declspec(dllexport)
124# endif
125# else
126# if defined(__GNUC__4) && defined(GCC_HASCLASSVISIBILITY)
127# define SWIGEXPORT__attribute__ ((visibility("default"))) __attribute__ ((visibility("default")))
128# else
129# define SWIGEXPORT__attribute__ ((visibility("default")))
130# endif
131# endif
132#endif
133
134/* calling conventions for Windows */
135#ifndef SWIGSTDCALL
136# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
137# define SWIGSTDCALL __stdcall
138# else
139# define SWIGSTDCALL
140# endif
141#endif
142
143/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
144#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
145# define _CRT_SECURE_NO_DEPRECATE
146#endif
147
148/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
149#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
150# define _SCL_SECURE_NO_DEPRECATE
151#endif
152
153/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
154#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
155# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
156#endif
157
158/* Intel's compiler complains if a variable which was never initialised is
159 * cast to void, which is a common idiom which we use to indicate that we
160 * are aware a variable isn't used. So we just silence that warning.
161 * See: https://github.com/swig/swig/issues/192 for more discussion.
162 */
163#ifdef __INTEL_COMPILER
164# pragma warning disable 592
165#endif
166
167
168#if defined(_DEBUG1) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
169/* Use debug wrappers with the Python release dll */
170# undef _DEBUG1
171# include <Python.h>
172# define _DEBUG1
173#else
174# include <Python.h>
175#endif
176
177/* -----------------------------------------------------------------------------
178 * swigrun.swg
179 *
180 * This file contains generic C API SWIG runtime support for pointer
181 * type checking.
182 * ----------------------------------------------------------------------------- */
183
184/* This should only be incremented when either the layout of swig_type_info changes,
185 or for whatever reason, the runtime changes incompatibly */
186#define SWIG_RUNTIME_VERSION"4" "4"
187
188/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
189#ifdef SWIG_TYPE_TABLE
190# define SWIG_QUOTE_STRING(x) #x
191# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
192# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
193#else
194# define SWIG_TYPE_TABLE_NAME
195#endif
196
197/*
198 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
199 creating a static or dynamic library from the SWIG runtime code.
200 In 99.9% of the cases, SWIG just needs to declare them as 'static'.
201
202 But only do this if strictly necessary, ie, if you have problems
203 with your compiler or suchlike.
204*/
205
206#ifndef SWIGRUNTIMEstatic __attribute__ ((__unused__))
207# define SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINTERNstatic __attribute__ ((__unused__))
208#endif
209
210#ifndef SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline
211# define SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINLINEinline
212#endif
213
214/* Generic buffer size */
215#ifndef SWIG_BUFFER_SIZE1024
216# define SWIG_BUFFER_SIZE1024 1024
217#endif
218
219/* Flags for pointer conversions */
220#define SWIG_POINTER_DISOWN0x1 0x1
221#define SWIG_CAST_NEW_MEMORY0x2 0x2
222
223/* Flags for new pointer objects */
224#define SWIG_POINTER_OWN0x1 0x1
225
226
227/*
228 Flags/methods for returning states.
229
230 The SWIG conversion methods, as ConvertPtr, return an integer
231 that tells if the conversion was successful or not. And if not,
232 an error code can be returned (see swigerrors.swg for the codes).
233
234 Use the following macros/flags to set or process the returning
235 states.
236
237 In old versions of SWIG, code such as the following was usually written:
238
239 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
240 // success code
241 } else {
242 //fail code
243 }
244
245 Now you can be more explicit:
246
247 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
248 if (SWIG_IsOK(res)) {
249 // success code
250 } else {
251 // fail code
252 }
253
254 which is the same really, but now you can also do
255
256 Type *ptr;
257 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
258 if (SWIG_IsOK(res)) {
259 // success code
260 if (SWIG_IsNewObj(res) {
261 ...
262 delete *ptr;
263 } else {
264 ...
265 }
266 } else {
267 // fail code
268 }
269
270 I.e., now SWIG_ConvertPtr can return new objects and you can
271 identify the case and take care of the deallocation. Of course that
272 also requires SWIG_ConvertPtr to return new result values, such as
273
274 int SWIG_ConvertPtr(obj, ptr,...) {
275 if (<obj is ok>) {
276 if (<need new object>) {
277 *ptr = <ptr to new allocated object>;
278 return SWIG_NEWOBJ;
279 } else {
280 *ptr = <ptr to old object>;
281 return SWIG_OLDOBJ;
282 }
283 } else {
284 return SWIG_BADOBJ;
285 }
286 }
287
288 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
289 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
290 SWIG errors code.
291
292 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
293 allows to return the 'cast rank', for example, if you have this
294
295 int food(double)
296 int fooi(int);
297
298 and you call
299
300 food(1) // cast rank '1' (1 -> 1.0)
301 fooi(1) // cast rank '0'
302
303 just use the SWIG_AddCast()/SWIG_CheckState()
304*/
305
306#define SWIG_OK(0) (0)
307#define SWIG_ERROR(-1) (-1)
308#define SWIG_IsOK(r)(r >= 0) (r >= 0)
309#define SWIG_ArgError(r)((r != (-1)) ? r : -5) ((r != SWIG_ERROR(-1)) ? r : SWIG_TypeError-5)
310
311/* The CastRankLimit says how many bits are used for the cast rank */
312#define SWIG_CASTRANKLIMIT(1 << 8) (1 << 8)
313/* The NewMask denotes the object was created (using new/malloc) */
314#define SWIG_NEWOBJMASK((1 << 8) << 1) (SWIG_CASTRANKLIMIT(1 << 8) << 1)
315/* The TmpMask is for in/out typemaps that use temporal objects */
316#define SWIG_TMPOBJMASK(((1 << 8) << 1) << 1) (SWIG_NEWOBJMASK((1 << 8) << 1) << 1)
317/* Simple returning values */
318#define SWIG_BADOBJ((-1)) (SWIG_ERROR(-1))
319#define SWIG_OLDOBJ((0)) (SWIG_OK(0))
320#define SWIG_NEWOBJ((0) | ((1 << 8) << 1)) (SWIG_OK(0) | SWIG_NEWOBJMASK((1 << 8) << 1))
321#define SWIG_TMPOBJ((0) | (((1 << 8) << 1) << 1)) (SWIG_OK(0) | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1))
322/* Check, add and del mask methods */
323#define SWIG_AddNewMask(r)((r >= 0) ? (r | ((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r | SWIG_NEWOBJMASK((1 << 8) << 1)) : r)
324#define SWIG_DelNewMask(r)((r >= 0) ? (r & ~((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_NEWOBJMASK((1 << 8) << 1)) : r)
325#define SWIG_IsNewObj(r)((r >= 0) && (r & ((1 << 8) << 1))
)
(SWIG_IsOK(r)(r >= 0) && (r & SWIG_NEWOBJMASK((1 << 8) << 1)))
326#define SWIG_AddTmpMask(r)((r >= 0) ? (r | (((1 << 8) << 1) << 1))
: r)
(SWIG_IsOK(r)(r >= 0) ? (r | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r)
327#define SWIG_DelTmpMask(r)((r >= 0) ? (r & ~(((1 << 8) << 1) <<
1)) : r)
(SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r)
328#define SWIG_IsTmpObj(r)((r >= 0) && (r & (((1 << 8) << 1)
<< 1)))
(SWIG_IsOK(r)(r >= 0) && (r & SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)))
329
330/* Cast-Rank Mode */
331#if defined(SWIG_CASTRANK_MODE)
332# ifndef SWIG_TypeRank
333# define SWIG_TypeRank unsigned long
334# endif
335# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
336# define SWIG_MAXCASTRANK (2)
337# endif
338# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT(1 << 8)) -1)
339# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
340SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_AddCast(int r)(int r) {
341 return SWIG_IsOK(r)(r >= 0) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR(-1)) : r;
342}
343SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_CheckState(int r)((int r >= 0) ? 1 : 0) {
344 return SWIG_IsOK(r)(r >= 0) ? SWIG_CastRank(r) + 1 : 0;
345}
346#else /* no cast-rank mode */
347# define SWIG_AddCast(r)(r) (r)
348# define SWIG_CheckState(r)((r >= 0) ? 1 : 0) (SWIG_IsOK(r)(r >= 0) ? 1 : 0)
349#endif
350
351
352#include <string.h>
353
354#ifdef __cplusplus201103L
355extern "C" {
356#endif
357
358typedef void *(*swig_converter_func)(void *, int *);
359typedef struct swig_type_info *(*swig_dycast_func)(void **);
360
361/* Structure to store information on one type */
362typedef struct swig_type_info {
363 const char *name; /* mangled name of this type */
364 const char *str; /* human readable name of this type */
365 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
366 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
367 void *clientdata; /* language specific type data */
368 int owndata; /* flag if the structure owns the clientdata */
369} swig_type_info;
370
371/* Structure to store a type and conversion function used for casting */
372typedef struct swig_cast_info {
373 swig_type_info *type; /* pointer to type that is equivalent to this type */
374 swig_converter_func converter; /* function to cast the void pointers */
375 struct swig_cast_info *next; /* pointer to next cast in linked list */
376 struct swig_cast_info *prev; /* pointer to the previous cast */
377} swig_cast_info;
378
379/* Structure used to store module information
380 * Each module generates one structure like this, and the runtime collects
381 * all of these structures and stores them in a circularly linked list.*/
382typedef struct swig_module_info {
383 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
384 size_t size; /* Number of types in this module */
385 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
386 swig_type_info **type_initial; /* Array of initially generated type structures */
387 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
388 void *clientdata; /* Language specific module data */
389} swig_module_info;
390
391/*
392 Compare two type names skipping the space characters, therefore
393 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
394
395 Return 0 when the two name types are equivalent, as in
396 strncmp, but skipping ' '.
397*/
398SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
399SWIG_TypeNameComp(const char *f1, const char *l1,
400 const char *f2, const char *l2) {
401 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
402 while ((*f1 == ' ') && (f1 != l1)) ++f1;
403 while ((*f2 == ' ') && (f2 != l2)) ++f2;
404 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
405 }
406 return (int)((l1 - f1) - (l2 - f2));
407}
408
409/*
410 Check type equivalence in a name list like <name1>|<name2>|...
411 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
412*/
413SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
414SWIG_TypeCmp(const char *nb, const char *tb) {
415 int equiv = 1;
416 const char* te = tb + strlen(tb);
417 const char* ne = nb;
418 while (equiv != 0 && *ne) {
419 for (nb = ne; *ne; ++ne) {
420 if (*ne == '|') break;
421 }
422 equiv = SWIG_TypeNameComp(nb, ne, tb, te);
423 if (*ne) ++ne;
424 }
425 return equiv;
426}
427
428/*
429 Check type equivalence in a name list like <name1>|<name2>|...
430 Return 0 if not equal, 1 if equal
431*/
432SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
433SWIG_TypeEquiv(const char *nb, const char *tb) {
434 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
435}
436
437/*
438 Check the typename
439*/
440SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
441SWIG_TypeCheck(const char *c, swig_type_info *ty) {
442 if (ty) {
443 swig_cast_info *iter = ty->cast;
444 while (iter) {
445 if (strcmp(iter->type->name, c) == 0) {
446 if (iter == ty->cast)
447 return iter;
448 /* Move iter to the top of the linked list */
449 iter->prev->next = iter->next;
450 if (iter->next)
451 iter->next->prev = iter->prev;
452 iter->next = ty->cast;
453 iter->prev = 0;
454 if (ty->cast) ty->cast->prev = iter;
455 ty->cast = iter;
456 return iter;
457 }
458 iter = iter->next;
459 }
460 }
461 return 0;
462}
463
464/*
465 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
466*/
467SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
468SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
469 if (ty) {
470 swig_cast_info *iter = ty->cast;
471 while (iter) {
472 if (iter->type == from) {
473 if (iter == ty->cast)
474 return iter;
475 /* Move iter to the top of the linked list */
476 iter->prev->next = iter->next;
477 if (iter->next)
478 iter->next->prev = iter->prev;
479 iter->next = ty->cast;
480 iter->prev = 0;
481 if (ty->cast) ty->cast->prev = iter;
482 ty->cast = iter;
483 return iter;
484 }
485 iter = iter->next;
486 }
487 }
488 return 0;
489}
490
491/*
492 Cast a pointer up an inheritance hierarchy
493*/
494SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline void *
495SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
496 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
497}
498
499/*
500 Dynamic pointer casting. Down an inheritance hierarchy
501*/
502SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
503SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
504 swig_type_info *lastty = ty;
505 if (!ty || !ty->dcast) return ty;
506 while (ty && (ty->dcast)) {
507 ty = (*ty->dcast)(ptr);
508 if (ty) lastty = ty;
509 }
510 return lastty;
511}
512
513/*
514 Return the name associated with this type
515*/
516SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char *
517SWIG_TypeName(const swig_type_info *ty) {
518 return ty->name;
519}
520
521/*
522 Return the pretty name associated with this type,
523 that is an unmangled type name in a form presentable to the user.
524*/
525SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
526SWIG_TypePrettyName(const swig_type_info *type) {
527 /* The "str" field contains the equivalent pretty names of the
528 type, separated by vertical-bar characters. We choose
529 to print the last name, as it is often (?) the most
530 specific. */
531 if (!type) return NULL__null;
532 if (type->str != NULL__null) {
533 const char *last_name = type->str;
534 const char *s;
535 for (s = type->str; *s; s++)
536 if (*s == '|') last_name = s+1;
537 return last_name;
538 }
539 else
540 return type->name;
541}
542
543/*
544 Set the clientdata field for a type
545*/
546SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
547SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
548 swig_cast_info *cast = ti->cast;
549 /* if (ti->clientdata == clientdata) return; */
550 ti->clientdata = clientdata;
551
552 while (cast) {
553 if (!cast->converter) {
554 swig_type_info *tc = cast->type;
555 if (!tc->clientdata) {
556 SWIG_TypeClientData(tc, clientdata);
557 }
558 }
559 cast = cast->next;
560 }
561}
562SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
563SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
564 SWIG_TypeClientData(ti, clientdata);
565 ti->owndata = 1;
566}
567
568/*
569 Search for a swig_type_info structure only by mangled name
570 Search is a O(log #types)
571
572 We start searching at module start, and finish searching when start == end.
573 Note: if start == end at the beginning of the function, we go all the way around
574 the circular list.
575*/
576SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
577SWIG_MangledTypeQueryModule(swig_module_info *start,
578 swig_module_info *end,
579 const char *name) {
580 swig_module_info *iter = start;
581 do {
582 if (iter->size) {
583 size_t l = 0;
584 size_t r = iter->size - 1;
585 do {
586 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
587 size_t i = (l + r) >> 1;
588 const char *iname = iter->types[i]->name;
589 if (iname) {
590 int compare = strcmp(name, iname);
591 if (compare == 0) {
592 return iter->types[i];
593 } else if (compare < 0) {
594 if (i) {
595 r = i - 1;
596 } else {
597 break;
598 }
599 } else if (compare > 0) {
600 l = i + 1;
601 }
602 } else {
603 break; /* should never happen */
604 }
605 } while (l <= r);
606 }
607 iter = iter->next;
608 } while (iter != end);
609 return 0;
610}
611
612/*
613 Search for a swig_type_info structure for either a mangled name or a human readable name.
614 It first searches the mangled names of the types, which is a O(log #types)
615 If a type is not found it then searches the human readable names, which is O(#types).
616
617 We start searching at module start, and finish searching when start == end.
618 Note: if start == end at the beginning of the function, we go all the way around
619 the circular list.
620*/
621SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
622SWIG_TypeQueryModule(swig_module_info *start,
623 swig_module_info *end,
624 const char *name) {
625 /* STEP 1: Search the name field using binary search */
626 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
627 if (ret) {
628 return ret;
629 } else {
630 /* STEP 2: If the type hasn't been found, do a complete search
631 of the str field (the human readable name) */
632 swig_module_info *iter = start;
633 do {
634 size_t i = 0;
635 for (; i < iter->size; ++i) {
636 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
637 return iter->types[i];
638 }
639 iter = iter->next;
640 } while (iter != end);
641 }
642
643 /* neither found a match */
644 return 0;
645}
646
647/*
648 Pack binary data into a string
649*/
650SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
651SWIG_PackData(char *c, void *ptr, size_t sz) {
652 static const char hex[17] = "0123456789abcdef";
653 const unsigned char *u = (unsigned char *) ptr;
654 const unsigned char *eu = u + sz;
655 for (; u != eu; ++u) {
656 unsigned char uu = *u;
657 *(c++) = hex[(uu & 0xf0) >> 4];
658 *(c++) = hex[uu & 0xf];
659 }
660 return c;
661}
662
663/*
664 Unpack binary data from a string
665*/
666SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
667SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
668 unsigned char *u = (unsigned char *) ptr;
669 const unsigned char *eu = u + sz;
670 for (; u != eu; ++u) {
671 char d = *(c++);
672 unsigned char uu;
673 if ((d >= '0') && (d <= '9'))
674 uu = (unsigned char)((d - '0') << 4);
675 else if ((d >= 'a') && (d <= 'f'))
676 uu = (unsigned char)((d - ('a'-10)) << 4);
677 else
678 return (char *) 0;
679 d = *(c++);
680 if ((d >= '0') && (d <= '9'))
681 uu |= (unsigned char)(d - '0');
682 else if ((d >= 'a') && (d <= 'f'))
683 uu |= (unsigned char)(d - ('a'-10));
684 else
685 return (char *) 0;
686 *u = uu;
687 }
688 return c;
689}
690
691/*
692 Pack 'void *' into a string buffer.
693*/
694SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
695SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
696 char *r = buff;
697 if ((2*sizeof(void *) + 2) > bsz) return 0;
698 *(r++) = '_';
699 r = SWIG_PackData(r,&ptr,sizeof(void *));
700 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
701 strcpy(r,name);
702 return buff;
703}
704
705SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
706SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
707 if (*c != '_') {
708 if (strcmp(c,"NULL") == 0) {
709 *ptr = (void *) 0;
710 return name;
711 } else {
712 return 0;
713 }
714 }
715 return SWIG_UnpackData(++c,ptr,sizeof(void *));
716}
717
718SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
719SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
720 char *r = buff;
721 size_t lname = (name ? strlen(name) : 0);
722 if ((2*sz + 2 + lname) > bsz) return 0;
723 *(r++) = '_';
724 r = SWIG_PackData(r,ptr,sz);
725 if (lname) {
726 strncpy(r,name,lname+1);
727 } else {
728 *r = 0;
729 }
730 return buff;
731}
732
733SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
734SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
735 if (*c != '_') {
736 if (strcmp(c,"NULL") == 0) {
737 memset(ptr,0,sz);
738 return name;
739 } else {
740 return 0;
741 }
742 }
743 return SWIG_UnpackData(++c,ptr,sz);
744}
745
746#ifdef __cplusplus201103L
747}
748#endif
749
750/* Errors in SWIG */
751#define SWIG_UnknownError-1 -1
752#define SWIG_IOError-2 -2
753#define SWIG_RuntimeError-3 -3
754#define SWIG_IndexError-4 -4
755#define SWIG_TypeError-5 -5
756#define SWIG_DivisionByZero-6 -6
757#define SWIG_OverflowError-7 -7
758#define SWIG_SyntaxError-8 -8
759#define SWIG_ValueError-9 -9
760#define SWIG_SystemError-10 -10
761#define SWIG_AttributeError-11 -11
762#define SWIG_MemoryError-12 -12
763#define SWIG_NullReferenceError-13 -13
764
765
766
767/* Compatibility macros for Python 3 */
768#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
769
770#define PyClass_Check(obj)((obj)->ob_type == &PyClass_Type) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
771#define PyInt_Check(x)((((x)->ob_type)->tp_flags & ((1L<<23))) != 0
)
PyLong_Check(x)((((((PyObject*)(x))->ob_type))->tp_flags & ((1L<<
24))) != 0)
772#define PyInt_AsLong(x) PyLong_AsLong(x)
773#define PyInt_FromLong(x) PyLong_FromLong(x)
774#define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
775#define PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
PyBytes_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
776#define PyString_FromString(x) PyUnicode_FromStringPyUnicodeUCS4_FromString(x)
777#define PyString_Format(fmt, args) PyUnicode_FormatPyUnicodeUCS4_Format(fmt, args)
778#define PyString_AsString(str) PyBytes_AsStringPyString_AsString(str)
779#define PyString_Size(str) PyBytes_SizePyString_Size(str)
780#define PyString_InternFromString(key) PyUnicode_InternFromString(key)
781#define Py_TPFLAGS_HAVE_CLASS(1L<<8) Py_TPFLAGS_BASETYPE(1L<<10)
782#define PyString_AS_STRING(x)(((PyStringObject *)(x))->ob_sval) PyUnicode_AS_STRING(x)
783#define _PyLong_FromSsize_tPyLong_FromSsize_t(x) PyLong_FromSsize_t(x)
784
785#endif
786
787#ifndef Py_TYPE
788# define Py_TYPE(op)(((PyObject*)(op))->ob_type) ((op)->ob_type)
789#endif
790
791/* SWIG APIs for compatibility of both Python 2 & 3 */
792
793#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
794# define SWIG_Python_str_FromFormatPyString_FromFormat PyUnicode_FromFormatPyUnicodeUCS4_FromFormat
795#else
796# define SWIG_Python_str_FromFormatPyString_FromFormat PyString_FromFormat
797#endif
798
799
800/* Warning: This function will allocate a new string in Python 3,
801 * so please call SWIG_Python_str_DelForPy3(x) to free the space.
802 */
803SWIGINTERNstatic __attribute__ ((__unused__)) char*
804SWIG_Python_str_AsChar(PyObject *str)
805{
806#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
807 char *cstr;
808 char *newstr;
809 Py_ssize_t len;
810 str = PyUnicode_AsUTF8StringPyUnicodeUCS4_AsUTF8String(str);
811 PyBytes_AsStringAndSizePyString_AsStringAndSize(str, &cstr, &len);
812 newstr = (char *) malloc(len+1);
813 memcpy(newstr, cstr, len+1);
814 Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(str)))); } while (0); } while (0)
;
815 return newstr;
816#else
817 return PyString_AsString(str);
818#endif
819}
820
821#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
822# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
823#else
824# define SWIG_Python_str_DelForPy3(x)
825#endif
826
827
828SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
829SWIG_Python_str_FromChar(const char *c)
830{
831#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
832 return PyUnicode_FromStringPyUnicodeUCS4_FromString(c);
833#else
834 return PyString_FromString(c);
835#endif
836}
837
838/* Add PyOS_snprintf for old Pythons */
839#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
840# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
841# define PyOS_snprintf _snprintf
842# else
843# define PyOS_snprintf snprintf
844# endif
845#endif
846
847/* A crude PyString_FromFormat implementation for old Pythons */
848#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
849
850#ifndef SWIG_PYBUFFER_SIZE
851# define SWIG_PYBUFFER_SIZE 1024
852#endif
853
854static PyObject *
855PyString_FromFormat(const char *fmt, ...) {
856 va_list ap;
857 char buf[SWIG_PYBUFFER_SIZE * 2];
858 int res;
859 va_start(ap, fmt)__builtin_va_start(ap, fmt);
860 res = vsnprintf(buf, sizeof(buf), fmt, ap);
861 va_end(ap)__builtin_va_end(ap);
862 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
863}
864#endif
865
866#ifndef PyObject_DELPyObject_Free
867# define PyObject_DELPyObject_Free PyObject_DelPyObject_Free
868#endif
869
870/* A crude PyExc_StopIteration exception for old Pythons */
871#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
872# ifndef PyExc_StopIteration
873# define PyExc_StopIteration PyExc_RuntimeError
874# endif
875# ifndef PyObject_GenericGetAttr
876# define PyObject_GenericGetAttr 0
877# endif
878#endif
879
880/* Py_NotImplemented is defined in 2.1 and up. */
881#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02010000
882# ifndef Py_NotImplemented(&_Py_NotImplementedStruct)
883# define Py_NotImplemented(&_Py_NotImplementedStruct) PyExc_RuntimeError
884# endif
885#endif
886
887/* A crude PyString_AsStringAndSize implementation for old Pythons */
888#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02010000
889# ifndef PyString_AsStringAndSize
890# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
891# endif
892#endif
893
894/* PySequence_Size for old Pythons */
895#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02000000
896# ifndef PySequence_Size
897# define PySequence_Size PySequence_LengthPySequence_Size
898# endif
899#endif
900
901/* PyBool_FromLong for old Pythons */
902#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
903static
904PyObject *PyBool_FromLong(long ok)
905{
906 PyObject *result = ok ? Py_True((PyObject *) &_Py_TrueStruct) : Py_False((PyObject *) &_Py_ZeroStruct);
907 Py_INCREF(result)( ((PyObject*)(result))->ob_refcnt++);
908 return result;
909}
910#endif
911
912/* Py_ssize_t for old Pythons */
913/* This code is as recommended by: */
914/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
915#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000 && !defined(PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1))
916typedef int Py_ssize_t;
917# define PY_SSIZE_T_MAX((Py_ssize_t)(((size_t)-1)>>1)) INT_MAX2147483647
918# define PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1) INT_MIN(-2147483647 -1)
919typedef inquiry lenfunc;
920typedef intargfunc ssizeargfunc;
921typedef intintargfunc ssizessizeargfunc;
922typedef intobjargproc ssizeobjargproc;
923typedef intintobjargproc ssizessizeobjargproc;
924typedef getreadbufferproc readbufferproc;
925typedef getwritebufferproc writebufferproc;
926typedef getsegcountproc segcountproc;
927typedef getcharbufferproc charbufferproc;
928static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc))
929{
930 long result = 0;
931 PyObject *i = PyNumber_Int(x);
932 if (i) {
933 result = PyInt_AsLong(i);
934 Py_DECREF(i)do { if ( --((PyObject*)(i))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(i)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(i)))); } while (0)
;
935 }
936 return result;
937}
938#endif
939
940#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000
941#define PyInt_FromSize_t(x) PyInt_FromLong((long)x)
942#endif
943
944#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02040000
945#define Py_VISIT(op)do { if (op) { int vret = visit((PyObject *)(op), arg); if (vret
) return vret; } } while (0)
\
946 do { \
947 if (op) { \
948 int vret = visit((op), arg); \
949 if (vret) \
950 return vret; \
951 } \
952 } while (0)
953#endif
954
955#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
956typedef struct {
957 PyTypeObject type;
958 PyNumberMethods as_number;
959 PyMappingMethods as_mapping;
960 PySequenceMethods as_sequence;
961 PyBufferProcs as_buffer;
962 PyObject *name, *slots;
963} PyHeapTypeObject;
964#endif
965
966#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
967typedef destructor freefunc;
968#endif
969
970#if ((PY_MAJOR_VERSION2 == 2 && PY_MINOR_VERSION7 > 6) || \
971 (PY_MAJOR_VERSION2 == 3 && PY_MINOR_VERSION7 > 0) || \
972 (PY_MAJOR_VERSION2 > 3))
973# define SWIGPY_USE_CAPSULE
974# define SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ) ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4" ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME)
975#endif
976
977#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03020000
978#define PyDescr_TYPE(x)(((PyDescrObject *)(x))->d_type) (((PyDescrObject *)(x))->d_type)
979#define PyDescr_NAME(x)(((PyDescrObject *)(x))->d_name) (((PyDescrObject *)(x))->d_name)
980#endif
981
982/* -----------------------------------------------------------------------------
983 * error manipulation
984 * ----------------------------------------------------------------------------- */
985
986SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
987SWIG_Python_ErrorType(int code) {
988 PyObject* type = 0;
989 switch(code) {
990 case SWIG_MemoryError-12:
991 type = PyExc_MemoryError;
992 break;
993 case SWIG_IOError-2:
994 type = PyExc_IOError;
995 break;
996 case SWIG_RuntimeError-3:
997 type = PyExc_RuntimeError;
998 break;
999 case SWIG_IndexError-4:
1000 type = PyExc_IndexError;
1001 break;
1002 case SWIG_TypeError-5:
1003 type = PyExc_TypeError;
1004 break;
1005 case SWIG_DivisionByZero-6:
1006 type = PyExc_ZeroDivisionError;
1007 break;
1008 case SWIG_OverflowError-7:
1009 type = PyExc_OverflowError;
1010 break;
1011 case SWIG_SyntaxError-8:
1012 type = PyExc_SyntaxError;
1013 break;
1014 case SWIG_ValueError-9:
1015 type = PyExc_ValueError;
1016 break;
1017 case SWIG_SystemError-10:
1018 type = PyExc_SystemError;
1019 break;
1020 case SWIG_AttributeError-11:
1021 type = PyExc_AttributeError;
1022 break;
1023 default:
1024 type = PyExc_RuntimeError;
1025 }
1026 return type;
1027}
1028
1029
1030SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1031SWIG_Python_AddErrorMsg(const char* mesg)
1032{
1033 PyObject *type = 0;
1034 PyObject *value = 0;
1035 PyObject *traceback = 0;
1036
1037 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
1038 if (value) {
1039 char *tmp;
1040 PyObject *old_str = PyObject_Str(value);
1041 PyErr_Clear();
1042 Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt
++); } while (0)
;
1043
1044 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
1045 SWIG_Python_str_DelForPy3(tmp);
1046 Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(old_str)))); } while (0)
;
1047 Py_DECREF(value)do { if ( --((PyObject*)(value))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(value)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(value)))); } while (0)
;
1048 } else {
1049 PyErr_SetString(PyExc_RuntimeError, mesg);
1050 }
1051}
1052
1053#if defined(SWIG_PYTHON_NO_THREADS)
1054# if defined(SWIG_PYTHON_THREADS)
1055# undef SWIG_PYTHON_THREADS
1056# endif
1057#endif
1058#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
1059# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
1060# if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
1061# define SWIG_PYTHON_USE_GIL
1062# endif
1063# endif
1064# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
1065# ifndef SWIG_PYTHON_INITIALIZE_THREADSPyEval_InitThreads()
1066# define SWIG_PYTHON_INITIALIZE_THREADSPyEval_InitThreads() PyEval_InitThreads()
1067# endif
1068# ifdef __cplusplus201103L /* C++ code */
1069 class SWIG_Python_Thread_Block {
1070 bool status;
1071 PyGILState_STATE state;
1072 public:
1073 void end() { if (status) { PyGILState_Release(state); status = false;} }
1074 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
1075 ~SWIG_Python_Thread_Block() { end(); }
1076 };
1077 class SWIG_Python_Thread_Allow {
1078 bool status;
1079 PyThreadState *save;
1080 public:
1081 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
1082 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
1083 ~SWIG_Python_Thread_Allow() { end(); }
1084 };
1085# define SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block SWIG_Python_Thread_Block _swig_thread_block
1086# define SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end() _swig_thread_block.end()
1087# define SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow SWIG_Python_Thread_Allow _swig_thread_allow
1088# define SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end() _swig_thread_allow.end()
1089# else /* C code */
1090# define SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
1091# define SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end() PyGILState_Release(_swig_thread_block)
1092# define SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow PyThreadState *_swig_thread_allow = PyEval_SaveThread()
1093# define SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end() PyEval_RestoreThread(_swig_thread_allow)
1094# endif
1095# else /* Old thread way, not implemented, user must provide it */
1096# if !defined(SWIG_PYTHON_INITIALIZE_THREADSPyEval_InitThreads())
1097# define SWIG_PYTHON_INITIALIZE_THREADSPyEval_InitThreads()
1098# endif
1099# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block)
1100# define SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block
1101# endif
1102# if !defined(SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end())
1103# define SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end()
1104# endif
1105# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow)
1106# define SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow
1107# endif
1108# if !defined(SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end())
1109# define SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end()
1110# endif
1111# endif
1112#else /* No thread support */
1113# define SWIG_PYTHON_INITIALIZE_THREADSPyEval_InitThreads()
1114# define SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block
1115# define SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end()
1116# define SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow
1117# define SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end()
1118#endif
1119
1120/* -----------------------------------------------------------------------------
1121 * Python API portion that goes into the runtime
1122 * ----------------------------------------------------------------------------- */
1123
1124#ifdef __cplusplus201103L
1125extern "C" {
1126#endif
1127
1128/* -----------------------------------------------------------------------------
1129 * Constant declarations
1130 * ----------------------------------------------------------------------------- */
1131
1132/* Constant Types */
1133#define SWIG_PY_POINTER4 4
1134#define SWIG_PY_BINARY5 5
1135
1136/* Constant information structure */
1137typedef struct swig_const_info {
1138 int type;
1139 char *name;
1140 long lvalue;
1141 double dvalue;
1142 void *pvalue;
1143 swig_type_info **ptype;
1144} swig_const_info;
1145
1146
1147/* -----------------------------------------------------------------------------
1148 * Wrapper of PyInstanceMethod_New() used in Python 3
1149 * It is exported to the generated module, used for -fastproxy
1150 * ----------------------------------------------------------------------------- */
1151#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1152SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
1153{
1154 return PyInstanceMethod_New(func);
1155}
1156#else
1157SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
1158{
1159 return NULL__null;
1160}
1161#endif
1162
1163#ifdef __cplusplus201103L
1164}
1165#endif
1166
1167
1168/* -----------------------------------------------------------------------------
1169 * pyrun.swg
1170 *
1171 * This file contains the runtime support for Python modules
1172 * and includes code for managing global variables and pointer
1173 * type checking.
1174 *
1175 * ----------------------------------------------------------------------------- */
1176
1177/* Common SWIG API */
1178
1179/* for raw pointers */
1180#define SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1181#define SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1182#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1183
1184#ifdef SWIGPYTHON_BUILTIN
1185#define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags)
1186#else
1187#define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags)
1188#endif
1189
1190#define SWIG_InternalNewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags)
1191
1192#define SWIG_CheckImplicit(ty)SWIG_Python_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
1193#define SWIG_AcquirePtr(ptr, src)SWIG_Python_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
1194#define swig_owntypeint int
1195
1196/* for raw packed data */
1197#define SWIG_ConvertPacked(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1198#define SWIG_NewPackedObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1199
1200/* for class or struct pointers */
1201#define SWIG_ConvertInstance(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1202#define SWIG_NewInstanceObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags)
1203
1204/* for C or C++ function pointers */
1205#define SWIG_ConvertFunctionPtr(obj, pptr, type)SWIG_Python_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1206#define SWIG_NewFunctionPtrObj(ptr, type)SWIG_Python_NewPointerObj(__null, ptr, type, 0) SWIG_Python_NewPointerObj(NULL__null, ptr, type, 0)
1207
1208/* for C++ member pointers, ie, member methods */
1209#define SWIG_ConvertMember(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1210#define SWIG_NewMemberObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1211
1212
1213/* Runtime API */
1214
1215#define SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata) SWIG_Python_GetModule(clientdata)
1216#define SWIG_SetModule(clientdata, pointer)SWIG_Python_SetModule(pointer) SWIG_Python_SetModule(pointer)
1217#define SWIG_NewClientData(obj)SwigPyClientData_New(obj) SwigPyClientData_New(obj)
1218
1219#define SWIG_SetErrorObjSWIG_Python_SetErrorObj SWIG_Python_SetErrorObj
1220#define SWIG_SetErrorMsgSWIG_Python_SetErrorMsg SWIG_Python_SetErrorMsg
1221#define SWIG_ErrorType(code)SWIG_Python_ErrorType(code) SWIG_Python_ErrorType(code)
1222#define SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code)SWIG_Python_ErrorType(code), msg)
1223#define SWIG_failgoto fail goto fail
1224
1225
1226/* Runtime API implementation */
1227
1228/* Error manipulation */
1229
1230SWIGINTERNstatic __attribute__ ((__unused__)) void
1231SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1232 SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block;
1233 PyErr_SetObject(errtype, obj);
1234 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1235 SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end();
1236}
1237
1238SWIGINTERNstatic __attribute__ ((__unused__)) void
1239SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1240 SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block;
1241 PyErr_SetString(errtype, msg);
1242 SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end();
1243}
1244
1245#define SWIG_Python_Raise(obj, type, desc)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1246
1247/* Set a constant value */
1248
1249#if defined(SWIGPYTHON_BUILTIN)
1250
1251SWIGINTERNstatic __attribute__ ((__unused__)) void
1252SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
1253 PyObject *s = PyString_InternFromString(key);
1254 PyList_Append(seq, s);
1255 Py_DECREF(s)do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(s)))); } while (0)
;
1256}
1257
1258SWIGINTERNstatic __attribute__ ((__unused__)) void
1259SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {
1260#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
1261 PyDict_SetItemString(d, (char *)name, obj);
1262#else
1263 PyDict_SetItemString(d, name, obj);
1264#endif
1265 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1266 if (public_interface)
1267 SwigPyBuiltin_AddPublicSymbol(public_interface, name);
1268}
1269
1270#else
1271
1272SWIGINTERNstatic __attribute__ ((__unused__)) void
1273SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1274#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02030000
1275 PyDict_SetItemString(d, (char *)name, obj);
1276#else
1277 PyDict_SetItemString(d, name, obj);
1278#endif
1279 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1280}
1281
1282#endif
1283
1284/* Append a value to the result obj */
1285
1286SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1287SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1288#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1289 if (!result) {
1290 result = obj;
1291 } else if (result == Py_None(&_Py_NoneStruct)) {
1292 Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(result)))); } while (0)
;
1293 result = obj;
1294 } else {
1295 if (!PyList_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & ((
1L<<25))) != 0)
) {
1296 PyObject *o2 = result;
1297 result = PyList_New(1);
1298 PyList_SetItem(result, 0, o2);
1299 }
1300 PyList_Append(result,obj);
1301 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
1302 }
1303 return result;
1304#else
1305 PyObject* o2;
1306 PyObject* o3;
1307 if (!result) {
1308 result = obj;
1309 } else if (result == Py_None(&_Py_NoneStruct)) {
1310 Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else (
(*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(result)))); } while (0)
;
1311 result = obj;
1312 } else {
1313 if (!PyTuple_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & ((
1L<<26))) != 0)
) {
1314 o2 = result;
1315 result = PyTuple_New(1);
1316 PyTuple_SET_ITEM(result, 0, o2)(((PyTupleObject *)(result))->ob_item[0] = o2);
1317 }
1318 o3 = PyTuple_New(1);
1319 PyTuple_SET_ITEM(o3, 0, obj)(((PyTupleObject *)(o3))->ob_item[0] = obj);
1320 o2 = result;
1321 result = PySequence_Concat(o2, o3);
1322 Py_DECREF(o2)do { if ( --((PyObject*)(o2))->ob_refcnt != 0) ; else ( (*
(((PyObject*)((PyObject *)(o2)))->ob_type)->tp_dealloc)
((PyObject *)((PyObject *)(o2)))); } while (0)
;
1323 Py_DECREF(o3)do { if ( --((PyObject*)(o3))->ob_refcnt != 0) ; else ( (*
(((PyObject*)((PyObject *)(o3)))->ob_type)->tp_dealloc)
((PyObject *)((PyObject *)(o3)))); } while (0)
;
1324 }
1325 return result;
1326#endif
1327}
1328
1329/* Unpack the argument tuple */
1330
1331SWIGINTERNstatic __attribute__ ((__unused__)) Py_ssize_t
1332SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
1333{
1334 if (!args) {
1335 if (!min && !max) {
1336 return 1;
1337 } else {
1338 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1339 name, (min == max ? "" : "at least "), (int)min);
1340 return 0;
1341 }
1342 }
1343 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) {
1344 if (min <= 1 && max >= 1) {
1345 Py_ssize_t i;
1346 objs[0] = args;
1347 for (i = 1; i < max; ++i) {
1348 objs[i] = 0;
1349 }
1350 return 2;
1351 }
1352 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1353 return 0;
1354 } else {
1355 Py_ssize_t l = PyTuple_GET_SIZE(args)(((PyVarObject*)(args))->ob_size);
1356 if (l < min) {
1357 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1358 name, (min == max ? "" : "at least "), (int)min, (int)l);
1359 return 0;
1360 } else if (l > max) {
1361 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1362 name, (min == max ? "" : "at most "), (int)max, (int)l);
1363 return 0;
1364 } else {
1365 Py_ssize_t i;
1366 for (i = 0; i < l; ++i) {
1367 objs[i] = PyTuple_GET_ITEM(args, i)(((PyTupleObject *)(args))->ob_item[i]);
1368 }
1369 for (; l < max; ++l) {
1370 objs[l] = 0;
1371 }
1372 return i + 1;
1373 }
1374 }
1375}
1376
1377/* A functor is a function object with one single object argument */
1378#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
1379#define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunctionObjArgs(functor, obj, NULL__null);
1380#else
1381#define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunction(functor, "O", obj);
1382#endif
1383
1384/*
1385 Helper for static pointer initialization for both C and C++ code, for example
1386 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1387*/
1388#ifdef __cplusplus201103L
1389#define SWIG_STATIC_POINTER(var)var var
1390#else
1391#define SWIG_STATIC_POINTER(var)var var = 0; if (!var) var
1392#endif
1393
1394/* -----------------------------------------------------------------------------
1395 * Pointer declarations
1396 * ----------------------------------------------------------------------------- */
1397
1398/* Flags for new pointer objects */
1399#define SWIG_POINTER_NOSHADOW(0x1 << 1) (SWIG_POINTER_OWN0x1 << 1)
1400#define SWIG_POINTER_NEW((0x1 << 1) | 0x1) (SWIG_POINTER_NOSHADOW(0x1 << 1) | SWIG_POINTER_OWN0x1)
1401
1402#define SWIG_POINTER_IMPLICIT_CONV(0x1 << 1) (SWIG_POINTER_DISOWN0x1 << 1)
1403
1404#define SWIG_BUILTIN_TP_INIT(0x1 << 2) (SWIG_POINTER_OWN0x1 << 2)
1405#define SWIG_BUILTIN_INIT((0x1 << 2) | 0x1) (SWIG_BUILTIN_TP_INIT(0x1 << 2) | SWIG_POINTER_OWN0x1)
1406
1407#ifdef __cplusplus201103L
1408extern "C" {
1409#endif
1410
1411/* How to access Py_None */
1412#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1413# ifndef SWIG_PYTHON_NO_BUILD_NONE
1414# ifndef SWIG_PYTHON_BUILD_NONE
1415# define SWIG_PYTHON_BUILD_NONE
1416# endif
1417# endif
1418#endif
1419
1420#ifdef SWIG_PYTHON_BUILD_NONE
1421# ifdef Py_None(&_Py_NoneStruct)
1422# undef Py_None(&_Py_NoneStruct)
1423# define Py_None(&_Py_NoneStruct) SWIG_Py_None()
1424# endif
1425SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1426_SWIG_Py_None(void)
1427{
1428 PyObject *none = Py_BuildValue((char*)"");
1429 Py_DECREF(none)do { if ( --((PyObject*)(none))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(none)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(none)))); } while (0)
;
1430 return none;
1431}
1432SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1433SWIG_Py_None(void)
1434{
1435 static PyObject *SWIG_STATIC_POINTER(none)none = _SWIG_Py_None();
1436 return none;
1437}
1438#endif
1439
1440/* The python void return value */
1441
1442SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1443SWIG_Py_Void(void)
1444{
1445 PyObject *none = Py_None(&_Py_NoneStruct);
1446 Py_INCREF(none)( ((PyObject*)(none))->ob_refcnt++);
1447 return none;
1448}
1449
1450/* SwigPyClientData */
1451
1452typedef struct {
1453 PyObject *klass;
1454 PyObject *newraw;
1455 PyObject *newargs;
1456 PyObject *destroy;
1457 int delargs;
1458 int implicitconv;
1459 PyTypeObject *pytype;
1460} SwigPyClientData;
1461
1462SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
1463SWIG_Python_CheckImplicit(swig_type_info *ty)
1464{
1465 SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
1466 return data ? data->implicitconv : 0;
1467}
1468
1469SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1470SWIG_Python_ExceptionType(swig_type_info *desc) {
1471 SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
1472 PyObject *klass = data ? data->klass : 0;
1473 return (klass ? klass : PyExc_RuntimeError);
1474}
1475
1476
1477SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyClientData *
1478SwigPyClientData_New(PyObject* obj)
1479{
1480 if (!obj) {
1481 return 0;
1482 } else {
1483 SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
1484 /* the klass element */
1485 data->klass = obj;
1486 Py_INCREF(data->klass)( ((PyObject*)(data->klass))->ob_refcnt++);
1487 /* the newraw method and newargs arguments used to create a new raw instance */
1488 if (PyClass_Check(obj)((obj)->ob_type == &PyClass_Type)) {
1489 data->newraw = 0;
1490 data->newargs = obj;
1491 Py_INCREF(obj)( ((PyObject*)(obj))->ob_refcnt++);
1492 } else {
1493#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000)
1494 data->newraw = 0;
1495#else
1496 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1497#endif
1498 if (data->newraw) {
1499 Py_INCREF(data->newraw)( ((PyObject*)(data->newraw))->ob_refcnt++);
1500 data->newargs = PyTuple_New(1);
1501 PyTuple_SetItem(data->newargs, 0, obj);
1502 } else {
1503 data->newargs = obj;
1504 }
1505 Py_INCREF(data->newargs)( ((PyObject*)(data->newargs))->ob_refcnt++);
1506 }
1507 /* the destroy method, aka as the C++ delete method */
1508 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1509 if (PyErr_Occurred()) {
1510 PyErr_Clear();
1511 data->destroy = 0;
1512 }
1513 if (data->destroy) {
1514 int flags;
1515 Py_INCREF(data->destroy)( ((PyObject*)(data->destroy))->ob_refcnt++);
1516 flags = PyCFunction_GET_FLAGS(data->destroy)(((PyCFunctionObject *)data->destroy) -> m_ml -> ml_flags
)
;
1517#ifdef METH_O0x0008
1518 data->delargs = !(flags & (METH_O0x0008));
1519#else
1520 data->delargs = 0;
1521#endif
1522 } else {
1523 data->delargs = 0;
1524 }
1525 data->implicitconv = 0;
1526 data->pytype = 0;
1527 return data;
1528 }
1529}
1530
1531SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1532SwigPyClientData_Del(SwigPyClientData *data) {
1533 Py_XDECREF(data->newraw)do { if ((data->newraw) == __null) ; else do { if ( --((PyObject
*)(data->newraw))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->newraw)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->newraw)))); } while (0);
} while (0)
;
1534 Py_XDECREF(data->newargs)do { if ((data->newargs) == __null) ; else do { if ( --((PyObject
*)(data->newargs))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->newargs)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->newargs)))); } while (0)
; } while (0)
;
1535 Py_XDECREF(data->destroy)do { if ((data->destroy) == __null) ; else do { if ( --((PyObject
*)(data->destroy))->ob_refcnt != 0) ; else ( (*(((PyObject
*)((PyObject *)(data->destroy)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(data->destroy)))); } while (0)
; } while (0)
;
1536}
1537
1538/* =============== SwigPyObject =====================*/
1539
1540typedef struct {
1541 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
1542 void *ptr;
1543 swig_type_info *ty;
1544 int own;
1545 PyObject *next;
1546#ifdef SWIGPYTHON_BUILTIN
1547 PyObject *dict;
1548#endif
1549} SwigPyObject;
1550
1551
1552#ifdef SWIGPYTHON_BUILTIN
1553
1554SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1555SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
1556{
1557 SwigPyObject *sobj = (SwigPyObject *)v;
1558
1559 if (!sobj->dict)
1560 sobj->dict = PyDict_New();
1561
1562 Py_INCREF(sobj->dict)( ((PyObject*)(sobj->dict))->ob_refcnt++);
1563 return sobj->dict;
1564}
1565
1566#endif
1567
1568SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1569SwigPyObject_long(SwigPyObject *v)
1570{
1571 return PyLong_FromVoidPtr(v->ptr);
1572}
1573
1574SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1575SwigPyObject_format(const char* fmt, SwigPyObject *v)
1576{
1577 PyObject *res = NULL__null;
1578 PyObject *args = PyTuple_New(1);
1579 if (args) {
1580 if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
1581 PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
1582 if (ofmt) {
1583#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1584 res = PyUnicode_FormatPyUnicodeUCS4_Format(ofmt,args);
1585#else
1586 res = PyString_Format(ofmt,args);
1587#endif
1588 Py_DECREF(ofmt)do { if ( --((PyObject*)(ofmt))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(ofmt)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(ofmt)))); } while (0)
;
1589 }
1590 Py_DECREF(args)do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(args)))); } while (0)
;
1591 }
1592 }
1593 return res;
1594}
1595
1596SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1597SwigPyObject_oct(SwigPyObject *v)
1598{
1599 return SwigPyObject_format("%o",v);
1600}
1601
1602SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1603SwigPyObject_hex(SwigPyObject *v)
1604{
1605 return SwigPyObject_format("%x",v);
1606}
1607
1608SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1609#ifdef METH_NOARGS0x0004
1610SwigPyObject_repr(SwigPyObject *v)
1611#else
1612SwigPyObject_repr(SwigPyObject *v, PyObject *args)
1613#endif
1614{
1615 const char *name = SWIG_TypePrettyName(v->ty);
1616 PyObject *repr = SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
1617 if (v->next) {
1618# ifdef METH_NOARGS0x0004
1619 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
1620# else
1621 PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
1622# endif
1623# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1624 PyObject *joined = PyUnicode_ConcatPyUnicodeUCS4_Concat(repr, nrep);
1625 Py_DecRef(repr);
1626 Py_DecRef(nrep);
1627 repr = joined;
1628# else
1629 PyString_ConcatAndDel(&repr,nrep);
1630# endif
1631 }
1632 return repr;
1633}
1634
1635SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
1636SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
1637{
1638 void *i = v->ptr;
1639 void *j = w->ptr;
1640 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1641}
1642
1643/* Added for Python 3.x, would it also be useful for Python 2.x? */
1644SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1645SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
1646{
1647 PyObject* res;
1648 if( op != Py_EQ2 && op != Py_NE3 ) {
1649 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
1650 return Py_NotImplemented(&_Py_NotImplementedStruct);
1651 }
1652 res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ2) ? 1 : 0);
1653 return res;
1654}
1655
1656
1657SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyObject_TypeOnce(void);
1658
1659#ifdef SWIGPYTHON_BUILTIN
1660static swig_type_info *SwigPyObject_stype = 0;
1661SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1662SwigPyObject_type(void) {
1663 SwigPyClientData *cd;
1664 assert(SwigPyObject_stype)((SwigPyObject_stype) ? static_cast<void> (0) : __assert_fail
("SwigPyObject_stype", "/build/llvm-toolchain-snapshot-8~svn345461/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp"
, 1664, __PRETTY_FUNCTION__))
;
1665 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
1666 assert(cd)((cd) ? static_cast<void> (0) : __assert_fail ("cd", "/build/llvm-toolchain-snapshot-8~svn345461/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp"
, 1666, __PRETTY_FUNCTION__))
;
1667 assert(cd->pytype)((cd->pytype) ? static_cast<void> (0) : __assert_fail
("cd->pytype", "/build/llvm-toolchain-snapshot-8~svn345461/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp"
, 1667, __PRETTY_FUNCTION__))
;
1668 return cd->pytype;
1669}
1670#else
1671SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1672SwigPyObject_type(void) {
1673 static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyObject_TypeOnce();
1674 return type;
1675}
1676#endif
1677
1678SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
1679SwigPyObject_Check(PyObject *op) {
1680#ifdef SWIGPYTHON_BUILTIN
1681 PyTypeObject *target_tp = SwigPyObject_type();
1682 if (PyType_IsSubtype(op->ob_type, target_tp))
1683 return 1;
1684 return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0);
1685#else
1686 return (Py_TYPE(op)(((PyObject*)(op))->ob_type) == SwigPyObject_type())
1687 || (strcmp(Py_TYPE(op)(((PyObject*)(op))->ob_type)->tp_name,"SwigPyObject") == 0);
1688#endif
1689}
1690
1691SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1692SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1693
1694SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1695SwigPyObject_dealloc(PyObject *v)
1696{
1697 SwigPyObject *sobj = (SwigPyObject *) v;
1698 PyObject *next = sobj->next;
1699 if (sobj->own == SWIG_POINTER_OWN0x1) {
1700 swig_type_info *ty = sobj->ty;
1701 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
1702 PyObject *destroy = data ? data->destroy : 0;
1703 if (destroy) {
1704 /* destroy is always a VARARGS method */
1705 PyObject *res;
1706
1707 /* PyObject_CallFunction() has the potential to silently drop
1708 the active active exception. In cases of unnamed temporary
1709 variable or where we just finished iterating over a generator
1710 StopIteration will be active right now, and this needs to
1711 remain true upon return from SwigPyObject_dealloc. So save
1712 and restore. */
1713
1714 PyObject *val = NULL__null, *type = NULL__null, *tb = NULL__null;
1715 PyErr_Fetch(&val, &type, &tb);
1716
1717 if (data->delargs) {
1718 /* we need to create a temporary object to carry the destroy operation */
1719 PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
1720 res = SWIG_Python_CallFunctor(destroy, tmp)PyObject_CallFunctionObjArgs(destroy, tmp, __null);;
1721 Py_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(tmp)))); } while (0)
;
1722 } else {
1723 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy)(((PyCFunctionObject *)destroy) -> m_ml -> ml_meth);
1724 PyObject *mself = PyCFunction_GET_SELF(destroy)(((PyCFunctionObject *)destroy) -> m_self);
1725 res = ((*meth)(mself, v));
1726 }
1727 if (!res)
1728 PyErr_WriteUnraisable(destroy);
1729
1730 PyErr_Restore(val, type, tb);
1731
1732 Py_XDECREF(res)do { if ((res) == __null) ; else do { if ( --((PyObject*)(res
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(res)))); } while (0); } while (0)
;
1733 }
1734#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1735 else {
1736 const char *name = SWIG_TypePrettyName(ty);
1737 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
1738 }
1739#endif
1740 }
1741 Py_XDECREF(next)do { if ((next) == __null) ; else do { if ( --((PyObject*)(next
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
next)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(next)))); } while (0); } while (0)
;
1742 PyObject_DELPyObject_Free(v);
1743}
1744
1745SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1746SwigPyObject_append(PyObject* v, PyObject* next)
1747{
1748 SwigPyObject *sobj = (SwigPyObject *) v;
1749#ifndef METH_O0x0008
1750 PyObject *tmp = 0;
1751 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL__null;
1752 next = tmp;
1753#endif
1754 if (!SwigPyObject_Check(next)) {
1755 PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject");
1756 return NULL__null;
1757 }
1758 sobj->next = next;
1759 Py_INCREF(next)( ((PyObject*)(next))->ob_refcnt++);
1760 return SWIG_Py_Void();
1761}
1762
1763SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1764#ifdef METH_NOARGS0x0004
1765SwigPyObject_next(PyObject* v)
1766#else
1767SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1768#endif
1769{
1770 SwigPyObject *sobj = (SwigPyObject *) v;
1771 if (sobj->next) {
1772 Py_INCREF(sobj->next)( ((PyObject*)(sobj->next))->ob_refcnt++);
1773 return sobj->next;
1774 } else {
1775 return SWIG_Py_Void();
1776 }
1777}
1778
1779SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1780#ifdef METH_NOARGS0x0004
1781SwigPyObject_disown(PyObject *v)
1782#else
1783SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1784#endif
1785{
1786 SwigPyObject *sobj = (SwigPyObject *)v;
1787 sobj->own = 0;
1788 return SWIG_Py_Void();
1789}
1790
1791SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1792#ifdef METH_NOARGS0x0004
1793SwigPyObject_acquire(PyObject *v)
1794#else
1795SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1796#endif
1797{
1798 SwigPyObject *sobj = (SwigPyObject *)v;
1799 sobj->own = SWIG_POINTER_OWN0x1;
1800 return SWIG_Py_Void();
1801}
1802
1803SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1804SwigPyObject_own(PyObject *v, PyObject *args)
1805{
1806 PyObject *val = 0;
1807#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000)
1808 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1809#elif (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02050000)
1810 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1811#else
1812 if (!PyArg_UnpackTuple(args, "own", 0, 1, &val))
1813#endif
1814 {
1815 return NULL__null;
1816 }
1817 else
1818 {
1819 SwigPyObject *sobj = (SwigPyObject *)v;
1820 PyObject *obj = PyBool_FromLong(sobj->own);
1821 if (val) {
1822#ifdef METH_NOARGS0x0004
1823 if (PyObject_IsTrue(val)) {
1824 SwigPyObject_acquire(v);
1825 } else {
1826 SwigPyObject_disown(v);
1827 }
1828#else
1829 if (PyObject_IsTrue(val)) {
1830 SwigPyObject_acquire(v,args);
1831 } else {
1832 SwigPyObject_disown(v,args);
1833 }
1834#endif
1835 }
1836 return obj;
1837 }
1838}
1839
1840#ifdef METH_O0x0008
1841static PyMethodDef
1842swigobject_methods[] = {
1843 {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS0x0004, (char *)"releases ownership of the pointer"},
1844 {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS0x0004, (char *)"acquires ownership of the pointer"},
1845 {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"},
1846 {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O0x0008, (char *)"appends another 'this' object"},
1847 {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS0x0004, (char *)"returns the next 'this' object"},
1848 {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS0x0004, (char *)"returns object representation"},
1849 {0, 0, 0, 0}
1850};
1851#else
1852static PyMethodDef
1853swigobject_methods[] = {
1854 {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS0x0001, (char *)"releases ownership of the pointer"},
1855 {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS0x0001, (char *)"acquires ownership of the pointer"},
1856 {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"},
1857 {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS0x0001, (char *)"appends another 'this' object"},
1858 {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS0x0001, (char *)"returns the next 'this' object"},
1859 {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS0x0001, (char *)"returns object representation"},
1860 {0, 0, 0, 0}
1861};
1862#endif
1863
1864#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1865SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
1866SwigPyObject_getattr(SwigPyObject *sobj,char *name)
1867{
1868 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1869}
1870#endif
1871
1872SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1873SwigPyObject_TypeOnce(void) {
1874 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1875
1876 static PyNumberMethods SwigPyObject_as_number = {
1877 (binaryfunc)0, /*nb_add*/
1878 (binaryfunc)0, /*nb_subtract*/
1879 (binaryfunc)0, /*nb_multiply*/
1880 /* nb_divide removed in Python 3 */
1881#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1882 (binaryfunc)0, /*nb_divide*/
1883#endif
1884 (binaryfunc)0, /*nb_remainder*/
1885 (binaryfunc)0, /*nb_divmod*/
1886 (ternaryfunc)0,/*nb_power*/
1887 (unaryfunc)0, /*nb_negative*/
1888 (unaryfunc)0, /*nb_positive*/
1889 (unaryfunc)0, /*nb_absolute*/
1890 (inquiry)0, /*nb_nonzero*/
1891 0, /*nb_invert*/
1892 0, /*nb_lshift*/
1893 0, /*nb_rshift*/
1894 0, /*nb_and*/
1895 0, /*nb_xor*/
1896 0, /*nb_or*/
1897#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1898 0, /*nb_coerce*/
1899#endif
1900 (unaryfunc)SwigPyObject_long, /*nb_int*/
1901#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1902 (unaryfunc)SwigPyObject_long, /*nb_long*/
1903#else
1904 0, /*nb_reserved*/
1905#endif
1906 (unaryfunc)0, /*nb_float*/
1907#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
1908 (unaryfunc)SwigPyObject_oct, /*nb_oct*/
1909 (unaryfunc)SwigPyObject_hex, /*nb_hex*/
1910#endif
1911#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03050000 /* 3.5 */
1912 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */
1913#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000 /* 3.0 */
1914 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
1915#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02050000 /* 2.5.0 */
1916 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
1917#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000 /* 2.2.0 */
1918 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1919#elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02000000 /* 2.0.0 */
1920 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1921#endif
1922 };
1923
1924 static PyTypeObject swigpyobject_type;
1925 static int type_init = 0;
1926 if (!type_init) {
1927 const PyTypeObject tmp = {
1928 /* PyObject header changed in Python 3 */
1929#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1930 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
1931#else
1932 PyObject_HEAD_INIT(NULL)1, __null,
1933 0, /* ob_size */
1934#endif
1935 (char *)"SwigPyObject", /* tp_name */
1936 sizeof(SwigPyObject), /* tp_basicsize */
1937 0, /* tp_itemsize */
1938 (destructor)SwigPyObject_dealloc, /* tp_dealloc */
1939 0, /* tp_print */
1940#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
1941 (getattrfunc)SwigPyObject_getattr, /* tp_getattr */
1942#else
1943 (getattrfunc)0, /* tp_getattr */
1944#endif
1945 (setattrfunc)0, /* tp_setattr */
1946#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
1947 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
1948#else
1949 (cmpfunc)SwigPyObject_compare, /* tp_compare */
1950#endif
1951 (reprfunc)SwigPyObject_repr, /* tp_repr */
1952 &SwigPyObject_as_number, /* tp_as_number */
1953 0, /* tp_as_sequence */
1954 0, /* tp_as_mapping */
1955 (hashfunc)0, /* tp_hash */
1956 (ternaryfunc)0, /* tp_call */
1957 0, /* tp_str */
1958 PyObject_GenericGetAttr, /* tp_getattro */
1959 0, /* tp_setattro */
1960 0, /* tp_as_buffer */
1961 Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<
5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<
17) | 0)
, /* tp_flags */
1962 swigobject_doc, /* tp_doc */
1963 0, /* tp_traverse */
1964 0, /* tp_clear */
1965 (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
1966 0, /* tp_weaklistoffset */
1967#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
1968 0, /* tp_iter */
1969 0, /* tp_iternext */
1970 swigobject_methods, /* tp_methods */
1971 0, /* tp_members */
1972 0, /* tp_getset */
1973 0, /* tp_base */
1974 0, /* tp_dict */
1975 0, /* tp_descr_get */
1976 0, /* tp_descr_set */
1977 0, /* tp_dictoffset */
1978 0, /* tp_init */
1979 0, /* tp_alloc */
1980 0, /* tp_new */
1981 0, /* tp_free */
1982 0, /* tp_is_gc */
1983 0, /* tp_bases */
1984 0, /* tp_mro */
1985 0, /* tp_cache */
1986 0, /* tp_subclasses */
1987 0, /* tp_weaklist */
1988#endif
1989#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
1990 0, /* tp_del */
1991#endif
1992#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
1993 0, /* tp_version_tag */
1994#endif
1995#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03040000
1996 0, /* tp_finalize */
1997#endif
1998#ifdef COUNT_ALLOCS
1999 0, /* tp_allocs */
2000 0, /* tp_frees */
2001 0, /* tp_maxalloc */
2002#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02050000
2003 0, /* tp_prev */
2004#endif
2005 0 /* tp_next */
2006#endif
2007 };
2008 swigpyobject_type = tmp;
2009 type_init = 1;
2010#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
2011 swigpyobject_type.ob_type = &PyType_Type;
2012#else
2013 if (PyType_Ready(&swigpyobject_type) < 0)
2014 return NULL__null;
2015#endif
2016 }
2017 return &swigpyobject_type;
2018}
2019
2020SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2021SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
2022{
2023 SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type())( (SwigPyObject *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (SwigPyObject_type())->tp_basicsize ) ), (SwigPyObject_type
())) )
;
2024 if (sobj) {
2025 sobj->ptr = ptr;
2026 sobj->ty = ty;
2027 sobj->own = own;
2028 sobj->next = 0;
2029 }
2030 return (PyObject *)sobj;
2031}
2032
2033/* -----------------------------------------------------------------------------
2034 * Implements a simple Swig Packed type, and use it instead of string
2035 * ----------------------------------------------------------------------------- */
2036
2037typedef struct {
2038 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
2039 void *pack;
2040 swig_type_info *ty;
2041 size_t size;
2042} SwigPyPacked;
2043
2044SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2045SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
2046{
2047 char result[SWIG_BUFFER_SIZE1024];
2048 fputs("<Swig Packed ", fp);
2049 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2050 fputs("at ", fp);
2051 fputs(result, fp);
2052 }
2053 fputs(v->ty->name,fp);
2054 fputs(">", fp);
2055 return 0;
2056}
2057
2058SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2059SwigPyPacked_repr(SwigPyPacked *v)
2060{
2061 char result[SWIG_BUFFER_SIZE1024];
2062 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
2063 return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
2064 } else {
2065 return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed %s>", v->ty->name);
2066 }
2067}
2068
2069SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2070SwigPyPacked_str(SwigPyPacked *v)
2071{
2072 char result[SWIG_BUFFER_SIZE1024];
2073 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
2074 return SWIG_Python_str_FromFormatPyString_FromFormat("%s%s", result, v->ty->name);
2075 } else {
2076 return SWIG_Python_str_FromChar(v->ty->name);
2077 }
2078}
2079
2080SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2081SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
2082{
2083 size_t i = v->size;
2084 size_t j = w->size;
2085 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
2086 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
2087}
2088
2089SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyPacked_TypeOnce(void);
2090
2091SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
2092SwigPyPacked_type(void) {
2093 static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyPacked_TypeOnce();
2094 return type;
2095}
2096
2097SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
2098SwigPyPacked_Check(PyObject *op) {
2099 return ((op)->ob_type == SwigPyPacked_TypeOnce())
2100 || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
2101}
2102
2103SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2104SwigPyPacked_dealloc(PyObject *v)
2105{
2106 if (SwigPyPacked_Check(v)) {
2107 SwigPyPacked *sobj = (SwigPyPacked *) v;
2108 free(sobj->pack);
2109 }
2110 PyObject_DELPyObject_Free(v);
2111}
2112
2113SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
2114SwigPyPacked_TypeOnce(void) {
2115 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
2116 static PyTypeObject swigpypacked_type;
2117 static int type_init = 0;
2118 if (!type_init) {
2119 const PyTypeObject tmp = {
2120 /* PyObject header changed in Python 3 */
2121#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2122 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
2123#else
2124 PyObject_HEAD_INIT(NULL)1, __null,
2125 0, /* ob_size */
2126#endif
2127 (char *)"SwigPyPacked", /* tp_name */
2128 sizeof(SwigPyPacked), /* tp_basicsize */
2129 0, /* tp_itemsize */
2130 (destructor)SwigPyPacked_dealloc, /* tp_dealloc */
2131 (printfunc)SwigPyPacked_print, /* tp_print */
2132 (getattrfunc)0, /* tp_getattr */
2133 (setattrfunc)0, /* tp_setattr */
2134#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2135 0, /* tp_reserved in 3.0.1 */
2136#else
2137 (cmpfunc)SwigPyPacked_compare, /* tp_compare */
2138#endif
2139 (reprfunc)SwigPyPacked_repr, /* tp_repr */
2140 0, /* tp_as_number */
2141 0, /* tp_as_sequence */
2142 0, /* tp_as_mapping */
2143 (hashfunc)0, /* tp_hash */
2144 (ternaryfunc)0, /* tp_call */
2145 (reprfunc)SwigPyPacked_str, /* tp_str */
2146 PyObject_GenericGetAttr, /* tp_getattro */
2147 0, /* tp_setattro */
2148 0, /* tp_as_buffer */
2149 Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<<
5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<<
17) | 0)
, /* tp_flags */
2150 swigpacked_doc, /* tp_doc */
2151 0, /* tp_traverse */
2152 0, /* tp_clear */
2153 0, /* tp_richcompare */
2154 0, /* tp_weaklistoffset */
2155#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
2156 0, /* tp_iter */
2157 0, /* tp_iternext */
2158 0, /* tp_methods */
2159 0, /* tp_members */
2160 0, /* tp_getset */
2161 0, /* tp_base */
2162 0, /* tp_dict */
2163 0, /* tp_descr_get */
2164 0, /* tp_descr_set */
2165 0, /* tp_dictoffset */
2166 0, /* tp_init */
2167 0, /* tp_alloc */
2168 0, /* tp_new */
2169 0, /* tp_free */
2170 0, /* tp_is_gc */
2171 0, /* tp_bases */
2172 0, /* tp_mro */
2173 0, /* tp_cache */
2174 0, /* tp_subclasses */
2175 0, /* tp_weaklist */
2176#endif
2177#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
2178 0, /* tp_del */
2179#endif
2180#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
2181 0, /* tp_version_tag */
2182#endif
2183#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03040000
2184 0, /* tp_finalize */
2185#endif
2186#ifdef COUNT_ALLOCS
2187 0, /* tp_allocs */
2188 0, /* tp_frees */
2189 0, /* tp_maxalloc */
2190#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02050000
2191 0, /* tp_prev */
2192#endif
2193 0 /* tp_next */
2194#endif
2195 };
2196 swigpypacked_type = tmp;
2197 type_init = 1;
2198#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
2199 swigpypacked_type.ob_type = &PyType_Type;
2200#else
2201 if (PyType_Ready(&swigpypacked_type) < 0)
2202 return NULL__null;
2203#endif
2204 }
2205 return &swigpypacked_type;
2206}
2207
2208SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2209SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
2210{
2211 SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type())( (SwigPyPacked *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (SwigPyPacked_type())->tp_basicsize ) ), (SwigPyPacked_type
())) )
;
2212 if (sobj) {
2213 void *pack = malloc(size);
2214 if (pack) {
2215 memcpy(pack, ptr, size);
2216 sobj->pack = pack;
2217 sobj->ty = ty;
2218 sobj->size = size;
2219 } else {
2220 PyObject_DELPyObject_Free((PyObject *) sobj);
2221 sobj = 0;
2222 }
2223 }
2224 return (PyObject *) sobj;
2225}
2226
2227SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
2228SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
2229{
2230 if (SwigPyPacked_Check(obj)) {
2231 SwigPyPacked *sobj = (SwigPyPacked *)obj;
2232 if (sobj->size != size) return 0;
2233 memcpy(ptr, sobj->pack, size);
2234 return sobj->ty;
2235 } else {
2236 return 0;
2237 }
2238}
2239
2240/* -----------------------------------------------------------------------------
2241 * pointers/data manipulation
2242 * ----------------------------------------------------------------------------- */
2243
2244SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
2245_SWIG_This(void)
2246{
2247 return SWIG_Python_str_FromChar("this");
2248}
2249
2250static PyObject *swig_this = NULL__null;
2251
2252SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2253SWIG_This(void)
2254{
2255 if (swig_this == NULL__null)
2256 swig_this = _SWIG_This();
2257 return swig_this;
2258}
2259
2260/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
2261
2262/* TODO: I don't know how to implement the fast getset in Python 3 right now */
2263#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
2264#define SWIG_PYTHON_SLOW_GETSET_THIS
2265#endif
2266
2267SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyObject *
2268SWIG_Python_GetSwigThis(PyObject *pyobj)
2269{
2270 PyObject *obj;
2271
2272 if (SwigPyObject_Check(pyobj))
2273 return (SwigPyObject *) pyobj;
2274
2275#ifdef SWIGPYTHON_BUILTIN
2276 (void)obj;
2277# ifdef PyWeakref_CheckProxy
2278 if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType
) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType
))
) {
2279 pyobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))->
ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object
: (&_Py_NoneStruct))
;
2280 if (pyobj && SwigPyObject_Check(pyobj))
2281 return (SwigPyObject*) pyobj;
2282 }
2283# endif
2284 return NULL__null;
2285#else
2286
2287 obj = 0;
2288
2289#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000))
2290 if (PyInstance_Check(pyobj)((pyobj)->ob_type == &PyInstance_Type)) {
2291 obj = _PyInstance_Lookup(pyobj, SWIG_This());
2292 } else {
2293 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
2294 if (dictptr != NULL__null) {
2295 PyObject *dict = *dictptr;
2296 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
2297 } else {
2298#ifdef PyWeakref_CheckProxy
2299 if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType
) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType
))
) {
2300 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))->
ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object
: (&_Py_NoneStruct))
;
2301 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
2302 }
2303#endif
2304 obj = PyObject_GetAttr(pyobj,SWIG_This());
2305 if (obj) {
2306 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2307 } else {
2308 if (PyErr_Occurred()) PyErr_Clear();
2309 return 0;
2310 }
2311 }
2312 }
2313#else
2314 obj = PyObject_GetAttr(pyobj,SWIG_This());
2315 if (obj) {
2316 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2317 } else {
2318 if (PyErr_Occurred()) PyErr_Clear();
2319 return 0;
2320 }
2321#endif
2322 if (obj && !SwigPyObject_Check(obj)) {
2323 /* a PyObject is called 'this', try to get the 'real this'
2324 SwigPyObject from it */
2325 return SWIG_Python_GetSwigThis(obj);
2326 }
2327 return (SwigPyObject *)obj;
2328#endif
2329}
2330
2331/* Acquire a pointer value */
2332
2333SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2334SWIG_Python_AcquirePtr(PyObject *obj, int own) {
2335 if (own == SWIG_POINTER_OWN0x1) {
2336 SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
2337 if (sobj) {
2338 int oldown = sobj->own;
2339 sobj->own = own;
2340 return oldown;
2341 }
2342 }
2343 return 0;
2344}
2345
2346/* Convert a pointer value */
2347
2348SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2349SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
2350 int res;
2351 SwigPyObject *sobj;
2352 int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV(0x1 << 1)) != 0;
2353
2354 if (!obj)
2355 return SWIG_ERROR(-1);
2356 if (obj == Py_None(&_Py_NoneStruct) && !implicit_conv) {
2357 if (ptr)
2358 *ptr = 0;
2359 return SWIG_OK(0);
2360 }
2361
2362 res = SWIG_ERROR(-1);
2363
2364 sobj = SWIG_Python_GetSwigThis(obj);
2365 if (own)
2366 *own = 0;
2367 while (sobj) {
2368 void *vptr = sobj->ptr;
2369 if (ty) {
2370 swig_type_info *to = sobj->ty;
2371 if (to == ty) {
2372 /* no type cast needed */
2373 if (ptr) *ptr = vptr;
2374 break;
2375 } else {
2376 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2377 if (!tc) {
2378 sobj = (SwigPyObject *)sobj->next;
2379 } else {
2380 if (ptr) {
2381 int newmemory = 0;
2382 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2383 if (newmemory == SWIG_CAST_NEW_MEMORY0x2) {
2384 assert(own)((own) ? static_cast<void> (0) : __assert_fail ("own", "/build/llvm-toolchain-snapshot-8~svn345461/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp"
, 2384, __PRETTY_FUNCTION__))
; /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
2385 if (own)
2386 *own = *own | SWIG_CAST_NEW_MEMORY0x2;
2387 }
2388 }
2389 break;
2390 }
2391 }
2392 } else {
2393 if (ptr) *ptr = vptr;
2394 break;
2395 }
2396 }
2397 if (sobj) {
2398 if (own)
2399 *own = *own | sobj->own;
2400 if (flags & SWIG_POINTER_DISOWN0x1) {
2401 sobj->own = 0;
2402 }
2403 res = SWIG_OK(0);
2404 } else {
2405 if (implicit_conv) {
2406 SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
2407 if (data && !data->implicitconv) {
2408 PyObject *klass = data->klass;
2409 if (klass) {
2410 PyObject *impconv;
2411 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2412 impconv = SWIG_Python_CallFunctor(klass, obj)PyObject_CallFunctionObjArgs(klass, obj, __null);;
2413 data->implicitconv = 0;
2414 if (PyErr_Occurred()) {
2415 PyErr_Clear();
2416 impconv = 0;
2417 }
2418 if (impconv) {
2419 SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
2420 if (iobj) {
2421 void *vptr;
2422 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2423 if (SWIG_IsOK(res)(res >= 0)) {
2424 if (ptr) {
2425 *ptr = vptr;
2426 /* transfer the ownership to 'ptr' */
2427 iobj->own = 0;
2428 res = SWIG_AddCast(res)(res);
2429 res = SWIG_AddNewMask(res)((res >= 0) ? (res | ((1 << 8) << 1)) : res);
2430 } else {
2431 res = SWIG_AddCast(res)(res);
2432 }
2433 }
2434 }
2435 Py_DECREF(impconv)do { if ( --((PyObject*)(impconv))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(impconv)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(impconv)))); } while (0)
;
2436 }
2437 }
2438 }
2439 }
2440 if (!SWIG_IsOK(res)(res >= 0) && obj == Py_None(&_Py_NoneStruct)) {
2441 if (ptr)
2442 *ptr = 0;
2443 if (PyErr_Occurred())
2444 PyErr_Clear();
2445 res = SWIG_OK(0);
2446 }
2447 }
2448 return res;
2449}
2450
2451/* Convert a function ptr value */
2452
2453SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2454SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2455 if (!PyCFunction_Check(obj)((((PyObject*)(obj))->ob_type) == &PyCFunction_Type)) {
2456 return SWIG_ConvertPtr(obj, ptr, ty, 0)SWIG_Python_ConvertPtrAndOwn(obj, ptr, ty, 0, 0);
2457 } else {
2458 void *vptr = 0;
2459
2460 /* here we get the method pointer for callbacks */
2461 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2462 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2463 if (desc)
2464 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2465 if (!desc)
2466 return SWIG_ERROR(-1);
2467 if (ty) {
2468 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2469 if (tc) {
2470 int newmemory = 0;
2471 *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
2472 assert(!newmemory)((!newmemory) ? static_cast<void> (0) : __assert_fail (
"!newmemory", "/build/llvm-toolchain-snapshot-8~svn345461/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp"
, 2472, __PRETTY_FUNCTION__))
; /* newmemory handling not yet implemented */
2473 } else {
2474 return SWIG_ERROR(-1);
2475 }
2476 } else {
2477 *ptr = vptr;
2478 }
2479 return SWIG_OK(0);
2480 }
2481}
2482
2483/* Convert a packed value value */
2484
2485SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2486SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2487 swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
2488 if (!to) return SWIG_ERROR(-1);
2489 if (ty) {
2490 if (to != ty) {
2491 /* check type cast? */
2492 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2493 if (!tc) return SWIG_ERROR(-1);
2494 }
2495 }
2496 return SWIG_OK(0);
2497}
2498
2499/* -----------------------------------------------------------------------------
2500 * Create a new pointer object
2501 * ----------------------------------------------------------------------------- */
2502
2503/*
2504 Create a new instance object, without calling __init__, and set the
2505 'this' attribute.
2506*/
2507
2508SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
2509SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
2510{
2511#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000)
2512 PyObject *inst = 0;
2513 PyObject *newraw = data->newraw;
2514 if (newraw) {
2515 inst = PyObject_Call(newraw, data->newargs, NULL__null);
2516 if (inst) {
2517#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2518 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2519 if (dictptr != NULL__null) {
2520 PyObject *dict = *dictptr;
2521 if (dict == NULL__null) {
2522 dict = PyDict_New();
2523 *dictptr = dict;
2524 PyDict_SetItem(dict, SWIG_This(), swig_this);
2525 }
2526 }
2527#else
2528 PyObject *key = SWIG_This();
2529 PyObject_SetAttr(inst, key, swig_this);
2530#endif
2531 }
2532 } else {
2533#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2534 inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None(&_Py_NoneStruct), Py_None(&_Py_NoneStruct));
2535 if (inst) {
2536 PyObject_SetAttr(inst, SWIG_This(), swig_this);
2537 Py_TYPE(inst)(((PyObject*)(inst))->ob_type)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG(1L<<19);
2538 }
2539#else
2540 PyObject *dict = PyDict_New();
2541 if (dict) {
2542 PyDict_SetItem(dict, SWIG_This(), swig_this);
2543 inst = PyInstance_NewRaw(data->newargs, dict);
2544 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2545 }
2546#endif
2547 }
2548 return inst;
2549#else
2550#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02010000)
2551 PyObject *inst = 0;
2552 PyObject *dict = PyDict_New();
2553 if (dict) {
2554 PyDict_SetItem(dict, SWIG_This(), swig_this);
2555 inst = PyInstance_NewRaw(data->newargs, dict);
2556 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2557 }
2558 return (PyObject *) inst;
2559#else
2560 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type)( (PyInstanceObject *) PyObject_Init( (PyObject *) PyObject_Malloc
( ( (&PyInstance_Type)->tp_basicsize ) ), (&PyInstance_Type
)) )
;
2561 if (inst == NULL__null) {
2562 return NULL__null;
2563 }
2564 inst->in_class = (PyClassObject *)data->newargs;
2565 Py_INCREF(inst->in_class)( ((PyObject*)(inst->in_class))->ob_refcnt++);
2566 inst->in_dict = PyDict_New();
2567 if (inst->in_dict == NULL__null) {
2568 Py_DECREF(inst)do { if ( --((PyObject*)(inst))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(inst)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(inst)))); } while (0)
;
2569 return NULL__null;
2570 }
2571#ifdef Py_TPFLAGS_HAVE_WEAKREFS(1L<<6)
2572 inst->in_weakreflist = NULL__null;
2573#endif
2574#ifdef Py_TPFLAGS_GC0
2575 PyObject_GC_Init(inst);
2576#endif
2577 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2578 return (PyObject *) inst;
2579#endif
2580#endif
2581}
2582
2583SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2584SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2585{
2586 PyObject *dict;
2587#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2588 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2589 if (dictptr != NULL__null) {
2590 dict = *dictptr;
2591 if (dict == NULL__null) {
2592 dict = PyDict_New();
2593 *dictptr = dict;
2594 }
2595 PyDict_SetItem(dict, SWIG_This(), swig_this);
2596 return;
2597 }
2598#endif
2599 dict = PyObject_GetAttrString(inst, (char*)"__dict__");
2600 PyDict_SetItem(dict, SWIG_This(), swig_this);
2601 Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(dict)))); } while (0)
;
2602}
2603
2604
2605SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
2606SWIG_Python_InitShadowInstance(PyObject *args) {
2607 PyObject *obj[2];
2608 if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2609 return NULL__null;
2610 } else {
2611 SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2612 if (sthis) {
2613 SwigPyObject_append((PyObject*) sthis, obj[1]);
2614 } else {
2615 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2616 }
2617 return SWIG_Py_Void();
2618 }
2619}
2620
2621/* Create a new pointer object */
2622
2623SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2624SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
2625 SwigPyClientData *clientdata;
2626 PyObject * robj;
2627 int own;
2628
2629 if (!ptr)
2630 return SWIG_Py_Void();
2631
2632 clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
2633 own = (flags & SWIG_POINTER_OWN0x1) ? SWIG_POINTER_OWN0x1 : 0;
2634 if (clientdata && clientdata->pytype) {
2635 SwigPyObject *newobj;
2636 if (flags & SWIG_BUILTIN_TP_INIT(0x1 << 2)) {
2637 newobj = (SwigPyObject*) self;
2638 if (newobj->ptr) {
2639 PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0);
2640 while (newobj->next)
2641 newobj = (SwigPyObject *) newobj->next;
2642 newobj->next = next_self;
2643 newobj = (SwigPyObject *)next_self;
2644#ifdef SWIGPYTHON_BUILTIN
2645 newobj->dict = 0;
2646#endif
2647 }
2648 } else {
2649 newobj = PyObject_New(SwigPyObject, clientdata->pytype)( (SwigPyObject *) _PyObject_New(clientdata->pytype) );
2650#ifdef SWIGPYTHON_BUILTIN
2651 newobj->dict = 0;
2652#endif
2653 }
2654 if (newobj) {
2655 newobj->ptr = ptr;
2656 newobj->ty = type;
2657 newobj->own = own;
2658 newobj->next = 0;
2659 return (PyObject*) newobj;
2660 }
2661 return SWIG_Py_Void();
2662 }
2663
2664 assert(!(flags & SWIG_BUILTIN_TP_INIT))((!(flags & (0x1 << 2))) ? static_cast<void> (
0) : __assert_fail ("!(flags & SWIG_BUILTIN_TP_INIT)", "/build/llvm-toolchain-snapshot-8~svn345461/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp"
, 2664, __PRETTY_FUNCTION__))
;
2665
2666 robj = SwigPyObject_New(ptr, type, own);
2667 if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW(0x1 << 1))) {
2668 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2669 Py_DECREF(robj)do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(robj)))); } while (0)
;
2670 robj = inst;
2671 }
2672 return robj;
2673}
2674
2675/* Create a new packed object */
2676
2677SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
2678SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2679 return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2680}
2681
2682/* -----------------------------------------------------------------------------*
2683 * Get type list
2684 * -----------------------------------------------------------------------------*/
2685
2686#ifdef SWIG_LINK_RUNTIME
2687void *SWIG_ReturnGlobalTypeList(void *);
2688#endif
2689
2690SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_module_info *
2691SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
2692 static void *type_pointer = (void *)0;
2693 /* first check if module already created */
2694 if (!type_pointer) {
2695#ifdef SWIG_LINK_RUNTIME
2696 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2697#else
2698# ifdef SWIGPY_USE_CAPSULE
2699 type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), 0);
2700# else
2701 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4",
2702 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2703# endif
2704 if (PyErr_Occurred()) {
2705 PyErr_Clear();
2706 type_pointer = (void *)0;
2707 }
2708#endif
2709 }
2710 return (swig_module_info *) type_pointer;
2711}
2712
2713#if PY_MAJOR_VERSION2 < 2
2714/* PyModule_AddObject function was introduced in Python 2.0. The following function
2715 is copied out of Python/modsupport.c in python version 2.3.4 */
2716SWIGINTERNstatic __attribute__ ((__unused__)) int
2717PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2718{
2719 PyObject *dict;
2720 if (!PyModule_Check(m)((((PyObject*)(m))->ob_type) == (&PyModule_Type) || PyType_IsSubtype
((((PyObject*)(m))->ob_type), (&PyModule_Type)))
) {
2721 PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg");
2722 return SWIG_ERROR(-1);
2723 }
2724 if (!o) {
2725 PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value");
2726 return SWIG_ERROR(-1);
2727 }
2728
2729 dict = PyModule_GetDict(m);
2730 if (dict == NULL__null) {
2731 /* Internal error -- modules must have a dict! */
2732 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2733 PyModule_GetName(m));
2734 return SWIG_ERROR(-1);
2735 }
2736 if (PyDict_SetItemString(dict, name, o))
2737 return SWIG_ERROR(-1);
2738 Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*(
((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)((
PyObject *)((PyObject *)(o)))); } while (0)
;
2739 return SWIG_OK(0);
2740}
2741#endif
2742
2743SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2744#ifdef SWIGPY_USE_CAPSULE
2745SWIG_Python_DestroyModule(PyObject *obj)
2746#else
2747SWIG_Python_DestroyModule(void *vptr)
2748#endif
2749{
2750#ifdef SWIGPY_USE_CAPSULE
2751 swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ));
2752#else
2753 swig_module_info *swig_module = (swig_module_info *) vptr;
2754#endif
2755 swig_type_info **types = swig_module->types;
2756 size_t i;
2757 for (i =0; i < swig_module->size; ++i) {
2758 swig_type_info *ty = types[i];
2759 if (ty->owndata) {
2760 SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
2761 if (data) SwigPyClientData_Del(data);
2762 }
2763 }
2764 Py_DECREF(SWIG_This())do { if ( --((PyObject*)(SWIG_This()))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(SWIG_This())))->ob_type)->
tp_dealloc)((PyObject *)((PyObject *)(SWIG_This())))); } while
(0)
;
2765 swig_this = NULL__null;
2766}
2767
2768SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2769SWIG_Python_SetModule(swig_module_info *swig_module) {
2770#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2771 /* Add a dummy module object into sys.modules */
2772 PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4");
2773#else
2774 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL__null, NULL__null, 0, NULL__null} }; /* Sentinel */
2775 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table)Py_InitModule4_64((char*)"swig_runtime_data" "4", swig_empty_runtime_method_table
, (char *)__null, (PyObject *)__null, 1013)
;
2776#endif
2777#ifdef SWIGPY_USE_CAPSULE
2778 PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), SWIG_Python_DestroyModule);
2779 if (pointer && module) {
2780 PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer);
2781 } else {
2782 Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*)
(pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject
*)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject
*)(pointer)))); } while (0); } while (0)
;
2783 }
2784#else
2785 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2786 if (pointer && module) {
2787 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2788 } else {
2789 Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*)
(pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject
*)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject
*)(pointer)))); } while (0); } while (0)
;
2790 }
2791#endif
2792}
2793
2794/* The python cached type query */
2795SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2796SWIG_Python_TypeCache(void) {
2797 static PyObject *SWIG_STATIC_POINTER(cache)cache = PyDict_New();
2798 return cache;
2799}
2800
2801SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
2802SWIG_Python_TypeQuery(const char *type)
2803{
2804 PyObject *cache = SWIG_Python_TypeCache();
2805 PyObject *key = SWIG_Python_str_FromChar(type);
2806 PyObject *obj = PyDict_GetItem(cache, key);
2807 swig_type_info *descriptor;
2808 if (obj) {
2809#ifdef SWIGPY_USE_CAPSULE
2810 descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL__null);
2811#else
2812 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2813#endif
2814 } else {
2815 swig_module_info *swig_module = SWIG_GetModule(0)SWIG_Python_GetModule(0);
2816 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2817 if (descriptor) {
2818#ifdef SWIGPY_USE_CAPSULE
2819 obj = PyCapsule_New((void*) descriptor, NULL__null, NULL__null);
2820#else
2821 obj = PyCObject_FromVoidPtr(descriptor, NULL__null);
2822#endif
2823 PyDict_SetItem(cache, key, obj);
2824 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
2825 }
2826 }
2827 Py_DECREF(key)do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(key)))); } while (0)
;
2828 return descriptor;
2829}
2830
2831/*
2832 For backward compatibility only
2833*/
2834#define SWIG_POINTER_EXCEPTION0 0
2835#define SWIG_arg_fail(arg)SWIG_Python_ArgFail(arg) SWIG_Python_ArgFail(arg)
2836#define SWIG_MustGetPtr(p, type, argnum, flags)SWIG_Python_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2837
2838SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2839SWIG_Python_AddErrMesg(const char* mesg, int infront)
2840{
2841 if (PyErr_Occurred()) {
2842 PyObject *type = 0;
2843 PyObject *value = 0;
2844 PyObject *traceback = 0;
2845 PyErr_Fetch(&type, &value, &traceback);
2846 if (value) {
2847 char *tmp;
2848 PyObject *old_str = PyObject_Str(value);
2849 Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt
++); } while (0)
;
2850 PyErr_Clear();
2851 if (infront) {
2852 PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
2853 } else {
2854 PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
2855 }
2856 SWIG_Python_str_DelForPy3(tmp);
2857 Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else
( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(old_str)))); } while (0)
;
2858 }
2859 return 1;
2860 } else {
2861 return 0;
2862 }
2863}
2864
2865SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2866SWIG_Python_ArgFail(int argnum)
2867{
2868 if (PyErr_Occurred()) {
2869 /* add information about failing argument */
2870 char mesg[256];
2871 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2872 return SWIG_Python_AddErrMesg(mesg, 1);
2873 } else {
2874 return 0;
2875 }
2876}
2877
2878SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char *
2879SwigPyObject_GetDesc(PyObject *self)
2880{
2881 SwigPyObject *v = (SwigPyObject *)self;
2882 swig_type_info *ty = v ? v->ty : 0;
2883 return ty ? ty->str : "";
2884}
2885
2886SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2887SWIG_Python_TypeError(const char *type, PyObject *obj)
2888{
2889 if (type) {
2890#if defined(SWIG_COBJECT_TYPES)
2891 if (obj && SwigPyObject_Check(obj)) {
2892 const char *otype = (const char *) SwigPyObject_GetDesc(obj);
2893 if (otype) {
2894 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
2895 type, otype);
2896 return;
2897 }
2898 } else
2899#endif
2900 {
2901 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2902 if (otype) {
2903 PyObject *str = PyObject_Str(obj);
2904 const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
2905 if (cstr) {
2906 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2907 type, otype, cstr);
2908 SWIG_Python_str_DelForPy3(cstr);
2909 } else {
2910 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2911 type, otype);
2912 }
2913 Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(str)))); } while (0); } while (0)
;
2914 return;
2915 }
2916 }
2917 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2918 } else {
2919 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2920 }
2921}
2922
2923
2924/* Convert a pointer value, signal an exception on a type mismatch */
2925SWIGRUNTIMEstatic __attribute__ ((__unused__)) void *
2926SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
2927 void *result;
2928 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags)SWIG_Python_ConvertPtrAndOwn(obj, &result, ty, flags, 0) == -1) {
2929 PyErr_Clear();
2930#if SWIG_POINTER_EXCEPTION0
2931 if (flags) {
2932 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2933 SWIG_Python_ArgFail(argnum);
2934 }
2935#endif
2936 }
2937 return result;
2938}
2939
2940#ifdef SWIGPYTHON_BUILTIN
2941SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2942SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2943 PyTypeObject *tp = obj->ob_type;
2944 PyObject *descr;
2945 PyObject *encoded_name;
2946 descrsetfunc f;
2947 int res = -1;
2948
2949# ifdef Py_USING_UNICODE1
2950 if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
) {
2951 name = PyUnicode_DecodePyUnicodeUCS4_Decode(PyString_AsString(name), PyString_Size(name), NULL__null, NULL__null);
2952 if (!name)
2953 return -1;
2954 } else if (!PyUnicode_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<28))) != 0)
)
2955# else
2956 if (!PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
)
2957# endif
2958 {
2959 PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2960 return -1;
2961 } else {
2962 Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++);
2963 }
2964
2965 if (!tp->tp_dict) {
2966 if (PyType_Ready(tp) < 0)
2967 goto done;
2968 }
2969
2970 descr = _PyType_Lookup(tp, name);
2971 f = NULL__null;
2972 if (descr != NULL__null)
2973 f = descr->ob_type->tp_descr_set;
2974 if (!f) {
2975 if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
) {
2976 encoded_name = name;
2977 Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++);
2978 } else {
2979 encoded_name = PyUnicode_AsUTF8StringPyUnicodeUCS4_AsUTF8String(name);
2980 }
2981 PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2982 Py_DECREF(encoded_name)do { if ( --((PyObject*)(encoded_name))->ob_refcnt != 0) ;
else ( (*(((PyObject*)((PyObject *)(encoded_name)))->ob_type
)->tp_dealloc)((PyObject *)((PyObject *)(encoded_name))));
} while (0)
;
2983 } else {
2984 res = f(descr, obj, value);
2985 }
2986
2987 done:
2988 Py_DECREF(name)do { if ( --((PyObject*)(name))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(name)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(name)))); } while (0)
;
2989 return res;
2990}
2991#endif
2992
2993
2994#ifdef __cplusplus201103L
2995}
2996#endif
2997
2998
2999
3000#define SWIG_exception_fail(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg
); goto fail; } while(0)
do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail; } while(0)
3001
3002#define SWIG_contract_assert(expr, msg)if (!(expr)) { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(
-3), msg); goto fail; } else
if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), msg); SWIG_failgoto fail; } else
3003
3004
3005
3006// Forward declaration to be inserted at the start of LLDBWrapPython.h
3007#include "lldb/API/SBDebugger.h"
3008#include "lldb/API/SBValue.h"
3009
3010SWIGEXPORT__attribute__ ((visibility("default"))) lldb::ValueObjectSP
3011LLDBSWIGPython_GetValueObjectSPFromSBValue (void* data)
3012{
3013 lldb::ValueObjectSP valobj_sp;
3014 if (data)
3015 {
3016 lldb::SBValue* sb_ptr = (lldb::SBValue *)data;
3017 valobj_sp = sb_ptr->GetSP();
3018 }
3019 return valobj_sp;
3020}
3021
3022#ifdef __cplusplus201103L
3023extern "C" {
3024#endif
3025
3026void LLDBSwigPythonCallPythonLogOutputCallback(const char *str, void *baton);
3027
3028#ifdef __cplusplus201103L
3029}
3030#endif
3031
3032
3033/* -------- TYPES TABLE (BEGIN) -------- */
3034
3035#define SWIGTYPE_p_FILEswig_types[0] swig_types[0]
3036#define SWIGTYPE_p_boolswig_types[1] swig_types[1]
3037#define SWIGTYPE_p_charswig_types[2] swig_types[2]
3038#define SWIGTYPE_p_doubleswig_types[3] swig_types[3]
3039#define SWIGTYPE_p_f_p_void__p_voidswig_types[4] swig_types[4]
3040#define SWIGTYPE_p_f_p_void_p_q_const__void_size_t__voidswig_types[5] swig_types[5]
3041#define SWIGTYPE_p_intswig_types[6] swig_types[6]
3042#define SWIGTYPE_p_lldb__ConnectionStatusswig_types[7] swig_types[7]
3043#define SWIGTYPE_p_lldb__FunctionNameTypeswig_types[8] swig_types[8]
3044#define SWIGTYPE_p_lldb__SBAddressswig_types[9] swig_types[9]
3045#define SWIGTYPE_p_lldb__SBAttachInfoswig_types[10] swig_types[10]
3046#define SWIGTYPE_p_lldb__SBBlockswig_types[11] swig_types[11]
3047#define SWIGTYPE_p_lldb__SBBreakpointswig_types[12] swig_types[12]
3048#define SWIGTYPE_p_lldb__SBBreakpointListswig_types[13] swig_types[13]
3049#define SWIGTYPE_p_lldb__SBBreakpointLocationswig_types[14] swig_types[14]
3050#define SWIGTYPE_p_lldb__SBBreakpointNameswig_types[15] swig_types[15]
3051#define SWIGTYPE_p_lldb__SBBroadcasterswig_types[16] swig_types[16]
3052#define SWIGTYPE_p_lldb__SBCommandInterpreterswig_types[17] swig_types[17]
3053#define SWIGTYPE_p_lldb__SBCommandInterpreterRunOptionsswig_types[18] swig_types[18]
3054#define SWIGTYPE_p_lldb__SBCommandReturnObjectswig_types[19] swig_types[19]
3055#define SWIGTYPE_p_lldb__SBCommunicationswig_types[20] swig_types[20]
3056#define SWIGTYPE_p_lldb__SBCompileUnitswig_types[21] swig_types[21]
3057#define SWIGTYPE_p_lldb__SBDataswig_types[22] swig_types[22]
3058#define SWIGTYPE_p_lldb__SBDebuggerswig_types[23] swig_types[23]
3059#define SWIGTYPE_p_lldb__SBDeclarationswig_types[24] swig_types[24]
3060#define SWIGTYPE_p_lldb__SBErrorswig_types[25] swig_types[25]
3061#define SWIGTYPE_p_lldb__SBEventswig_types[26] swig_types[26]
3062#define SWIGTYPE_p_lldb__SBExecutionContextswig_types[27] swig_types[27]
3063#define SWIGTYPE_p_lldb__SBExpressionOptionsswig_types[28] swig_types[28]
3064#define SWIGTYPE_p_lldb__SBFileSpecswig_types[29] swig_types[29]
3065#define SWIGTYPE_p_lldb__SBFileSpecListswig_types[30] swig_types[30]
3066#define SWIGTYPE_p_lldb__SBFrameswig_types[31] swig_types[31]
3067#define SWIGTYPE_p_lldb__SBFunctionswig_types[32] swig_types[32]
3068#define SWIGTYPE_p_lldb__SBHostOSswig_types[33] swig_types[33]
3069#define SWIGTYPE_p_lldb__SBInstructionswig_types[34] swig_types[34]
3070#define SWIGTYPE_p_lldb__SBInstructionListswig_types[35] swig_types[35]
3071#define SWIGTYPE_p_lldb__SBLanguageRuntimeswig_types[36] swig_types[36]
3072#define SWIGTYPE_p_lldb__SBLaunchInfoswig_types[37] swig_types[37]
3073#define SWIGTYPE_p_lldb__SBLineEntryswig_types[38] swig_types[38]
3074#define SWIGTYPE_p_lldb__SBListenerswig_types[39] swig_types[39]
3075#define SWIGTYPE_p_lldb__SBMemoryRegionInfoswig_types[40] swig_types[40]
3076#define SWIGTYPE_p_lldb__SBMemoryRegionInfoListswig_types[41] swig_types[41]
3077#define SWIGTYPE_p_lldb__SBModuleswig_types[42] swig_types[42]
3078#define SWIGTYPE_p_lldb__SBModuleSpecswig_types[43] swig_types[43]
3079#define SWIGTYPE_p_lldb__SBModuleSpecListswig_types[44] swig_types[44]
3080#define SWIGTYPE_p_lldb__SBPlatformswig_types[45] swig_types[45]
3081#define SWIGTYPE_p_lldb__SBPlatformConnectOptionsswig_types[46] swig_types[46]
3082#define SWIGTYPE_p_lldb__SBPlatformShellCommandswig_types[47] swig_types[47]
3083#define SWIGTYPE_p_lldb__SBProcessswig_types[48] swig_types[48]
3084#define SWIGTYPE_p_lldb__SBProcessInfoswig_types[49] swig_types[49]
3085#define SWIGTYPE_p_lldb__SBQueueswig_types[50] swig_types[50]
3086#define SWIGTYPE_p_lldb__SBQueueItemswig_types[51] swig_types[51]
3087#define SWIGTYPE_p_lldb__SBSectionswig_types[52] swig_types[52]
3088#define SWIGTYPE_p_lldb__SBSourceManagerswig_types[53] swig_types[53]
3089#define SWIGTYPE_p_lldb__SBStreamswig_types[54] swig_types[54]
3090#define SWIGTYPE_p_lldb__SBStringListswig_types[55] swig_types[55]
3091#define SWIGTYPE_p_lldb__SBStructuredDataswig_types[56] swig_types[56]
3092#define SWIGTYPE_p_lldb__SBSymbolswig_types[57] swig_types[57]
3093#define SWIGTYPE_p_lldb__SBSymbolContextswig_types[58] swig_types[58]
3094#define SWIGTYPE_p_lldb__SBSymbolContextListswig_types[59] swig_types[59]
3095#define SWIGTYPE_p_lldb__SBTargetswig_types[60] swig_types[60]
3096#define SWIGTYPE_p_lldb__SBThreadswig_types[61] swig_types[61]
3097#define SWIGTYPE_p_lldb__SBThreadCollectionswig_types[62] swig_types[62]
3098#define SWIGTYPE_p_lldb__SBThreadPlanswig_types[63] swig_types[63]
3099#define SWIGTYPE_p_lldb__SBTraceswig_types[64] swig_types[64]
3100#define SWIGTYPE_p_lldb__SBTraceOptionsswig_types[65] swig_types[65]
3101#define SWIGTYPE_p_lldb__SBTypeswig_types[66] swig_types[66]
3102#define SWIGTYPE_p_lldb__SBTypeCategoryswig_types[67] swig_types[67]
3103#define SWIGTYPE_p_lldb__SBTypeEnumMemberswig_types[68] swig_types[68]
3104#define SWIGTYPE_p_lldb__SBTypeEnumMemberListswig_types[69] swig_types[69]
3105#define SWIGTYPE_p_lldb__SBTypeFilterswig_types[70] swig_types[70]
3106#define SWIGTYPE_p_lldb__SBTypeFormatswig_types[71] swig_types[71]
3107#define SWIGTYPE_p_lldb__SBTypeListswig_types[72] swig_types[72]
3108#define SWIGTYPE_p_lldb__SBTypeMemberswig_types[73] swig_types[73]
3109#define SWIGTYPE_p_lldb__SBTypeMemberFunctionswig_types[74] swig_types[74]
3110#define SWIGTYPE_p_lldb__SBTypeNameSpecifierswig_types[75] swig_types[75]
3111#define SWIGTYPE_p_lldb__SBTypeSummaryswig_types[76] swig_types[76]
3112#define SWIGTYPE_p_lldb__SBTypeSummaryOptionsswig_types[77] swig_types[77]
3113#define SWIGTYPE_p_lldb__SBTypeSyntheticswig_types[78] swig_types[78]
3114#define SWIGTYPE_p_lldb__SBUnixSignalsswig_types[79] swig_types[79]
3115#define SWIGTYPE_p_lldb__SBValueswig_types[80] swig_types[80]
3116#define SWIGTYPE_p_lldb__SBValueListswig_types[81] swig_types[81]
3117#define SWIGTYPE_p_lldb__SBVariablesOptionsswig_types[82] swig_types[82]
3118#define SWIGTYPE_p_lldb__SBWatchpointswig_types[83] swig_types[83]
3119#define SWIGTYPE_p_lldb__SymbolContextItemswig_types[84] swig_types[84]
3120#define SWIGTYPE_p_lldb__TypeClassswig_types[85] swig_types[85]
3121#define SWIGTYPE_p_lldb_private__SharingPtrT_lldb_private__ValueObject_tswig_types[86] swig_types[86]
3122#define SWIGTYPE_p_long_doubleswig_types[87] swig_types[87]
3123#define SWIGTYPE_p_long_longswig_types[88] swig_types[88]
3124#define SWIGTYPE_p_p_voidswig_types[89] swig_types[89]
3125#define SWIGTYPE_p_pthread_rwlock_tswig_types[90] swig_types[90]
3126#define SWIGTYPE_p_pthread_tswig_types[91] swig_types[91]
3127#define SWIGTYPE_p_shortswig_types[92] swig_types[92]
3128#define SWIGTYPE_p_signed_charswig_types[93] swig_types[93]
3129#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ABI_tswig_types[94] swig_types[94]
3130#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Baton_tswig_types[95] swig_types[95]
3131#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Block_tswig_types[96] swig_types[96]
3132#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointLocation_tswig_types[97] swig_types[97]
3133#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointResolver_tswig_types[98] swig_types[98]
3134#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointSite_tswig_types[99] swig_types[99]
3135#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Breakpoint_tswig_types[100] swig_types[100]
3136#define SWIGTYPE_p_std__shared_ptrT_lldb_private__BroadcasterManager_tswig_types[101] swig_types[101]
3137#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Broadcaster_tswig_types[102] swig_types[102]
3138#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ClangASTImporter_tswig_types[103] swig_types[103]
3139#define SWIGTYPE_p_std__shared_ptrT_lldb_private__CommandObject_tswig_types[104] swig_types[104]
3140#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Communication_tswig_types[105] swig_types[105]
3141#define SWIGTYPE_p_std__shared_ptrT_lldb_private__CompileUnit_tswig_types[106] swig_types[106]
3142#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Connection_tswig_types[107] swig_types[107]
3143#define SWIGTYPE_p_std__shared_ptrT_lldb_private__DataBuffer_tswig_types[108] swig_types[108]
3144#define SWIGTYPE_p_std__shared_ptrT_lldb_private__DataExtractor_tswig_types[109] swig_types[109]
3145#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Debugger_tswig_types[110] swig_types[110]
3146#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Disassembler_tswig_types[111] swig_types[111]
3147#define SWIGTYPE_p_std__shared_ptrT_lldb_private__DynamicLoader_tswig_types[112] swig_types[112]
3148#define SWIGTYPE_p_std__shared_ptrT_lldb_private__EventDataStructuredData_tswig_types[113] swig_types[113]
3149#define SWIGTYPE_p_std__shared_ptrT_lldb_private__EventData_tswig_types[114] swig_types[114]
3150#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Event_tswig_types[115] swig_types[115]
3151#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ExecutionContextRef_tswig_types[116] swig_types[116]
3152#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ExpressionVariable_tswig_types[117] swig_types[117]
3153#define SWIGTYPE_p_std__shared_ptrT_lldb_private__File_tswig_types[118] swig_types[118]
3154#define SWIGTYPE_p_std__shared_ptrT_lldb_private__FuncUnwinders_tswig_types[119] swig_types[119]
3155#define SWIGTYPE_p_std__shared_ptrT_lldb_private__FunctionCaller_tswig_types[120] swig_types[120]
3156#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Function_tswig_types[121] swig_types[121]
3157#define SWIGTYPE_p_std__shared_ptrT_lldb_private__IOHandler_tswig_types[122] swig_types[122]
3158#define SWIGTYPE_p_std__shared_ptrT_lldb_private__IOObject_tswig_types[123] swig_types[123]
3159#define SWIGTYPE_p_std__shared_ptrT_lldb_private__IRExecutionUnit_tswig_types[124] swig_types[124]
3160#define SWIGTYPE_p_std__shared_ptrT_lldb_private__InlineFunctionInfo_tswig_types[125] swig_types[125]
3161#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Instruction_tswig_types[126] swig_types[126]
3162#define SWIGTYPE_p_std__shared_ptrT_lldb_private__InstrumentationRuntime_tswig_types[127] swig_types[127]
3163#define SWIGTYPE_p_std__shared_ptrT_lldb_private__JITLoader_tswig_types[128] swig_types[128]
3164#define SWIGTYPE_p_std__shared_ptrT_lldb_private__LanguageRuntime_tswig_types[129] swig_types[129]
3165#define SWIGTYPE_p_std__shared_ptrT_lldb_private__LineTable_tswig_types[130] swig_types[130]
3166#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Listener_tswig_types[131] swig_types[131]
3167#define SWIGTYPE_p_std__shared_ptrT_lldb_private__MemoryHistory_tswig_types[132] swig_types[132]
3168#define SWIGTYPE_p_std__shared_ptrT_lldb_private__MemoryRegionInfo_tswig_types[133] swig_types[133]
3169#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Module_tswig_types[134] swig_types[134]
3170#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ObjectFileJITDelegate_tswig_types[135] swig_types[135]
3171#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ObjectFile_tswig_types[136] swig_types[136]
3172#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueArch_tswig_types[137] swig_types[137]
3173#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueArgs_tswig_types[138] swig_types[138]
3174#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueArray_tswig_types[139] swig_types[139]
3175#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueBoolean_tswig_types[140] swig_types[140]
3176#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueDictionary_tswig_types[141] swig_types[141]
3177#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueFileSpecList_tswig_types[142] swig_types[142]
3178#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueFileSpec_tswig_types[143] swig_types[143]
3179#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueFormat_tswig_types[144] swig_types[144]
3180#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValuePathMappings_tswig_types[145] swig_types[145]
3181#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueProperties_tswig_types[146] swig_types[146]
3182#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueRegex_tswig_types[147] swig_types[147]
3183#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueSInt64_tswig_types[148] swig_types[148]
3184#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueString_tswig_types[149] swig_types[149]
3185#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueUInt64_tswig_types[150] swig_types[150]
3186#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueUUID_tswig_types[151] swig_types[151]
3187#define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValue_tswig_types[152] swig_types[152]
3188#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Platform_tswig_types[153] swig_types[153]
3189#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ProcessAttachInfo_tswig_types[154] swig_types[154]
3190#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ProcessLaunchInfo_tswig_types[155] swig_types[155]
3191#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Process_tswig_types[156] swig_types[156]
3192#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Property_tswig_types[157] swig_types[157]
3193#define SWIGTYPE_p_std__shared_ptrT_lldb_private__QueueItem_tswig_types[158] swig_types[158]
3194#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Queue_tswig_types[159] swig_types[159]
3195#define SWIGTYPE_p_std__shared_ptrT_lldb_private__REPL_tswig_types[160] swig_types[160]
3196#define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegisterCheckpoint_tswig_types[161] swig_types[161]
3197#define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegisterContext_tswig_types[162] swig_types[162]
3198#define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegularExpression_tswig_types[163] swig_types[163]
3199#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptInterpreter_tswig_types[164] swig_types[164]
3200#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptSummaryFormat_tswig_types[165] swig_types[165]
3201#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptedSyntheticChildren_tswig_types[166] swig_types[166]
3202#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SearchFilter_tswig_types[167] swig_types[167]
3203#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SectionLoadList_tswig_types[168] swig_types[168]
3204#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Section_tswig_types[169] swig_types[169]
3205#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Settings_tswig_types[170] swig_types[170]
3206#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StackFrameList_tswig_types[171] swig_types[171]
3207#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StackFrame_tswig_types[172] swig_types[172]
3208#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StopInfo_tswig_types[173] swig_types[173]
3209#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StoppointLocation_tswig_types[174] swig_types[174]
3210#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StreamFile_tswig_types[175] swig_types[175]
3211#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Stream_tswig_types[176] swig_types[176]
3212#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StringSummaryFormat_tswig_types[177] swig_types[177]
3213#define SWIGTYPE_p_std__shared_ptrT_lldb_private__StructuredDataPlugin_tswig_types[178] swig_types[178]
3214#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SymbolContextSpecifier_tswig_types[179] swig_types[179]
3215#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SymbolFileType_tswig_types[180] swig_types[180]
3216#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SymbolFile_tswig_types[181] swig_types[181]
3217#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SyntheticChildrenFrontEnd_tswig_types[182] swig_types[182]
3218#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SyntheticChildren_tswig_types[183] swig_types[183]
3219#define SWIGTYPE_p_std__shared_ptrT_lldb_private__SystemRuntime_tswig_types[184] swig_types[184]
3220#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TargetProperties_tswig_types[185] swig_types[185]
3221#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Target_tswig_types[186] swig_types[186]
3222#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadCollection_tswig_types[187] swig_types[187]
3223#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadPlanTracer_tswig_types[188] swig_types[188]
3224#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadPlan_tswig_types[189] swig_types[189]
3225#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Thread_tswig_types[190] swig_types[190]
3226#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TraceOptions_tswig_types[191] swig_types[191]
3227#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeCategoryImpl_tswig_types[192] swig_types[192]
3228#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeEnumMemberImpl_tswig_types[193] swig_types[193]
3229#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeFilterImpl_tswig_types[194] swig_types[194]
3230#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeFormatImpl_tswig_types[195] swig_types[195]
3231#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeImpl_tswig_types[196] swig_types[196]
3232#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeMemberFunctionImpl_tswig_types[197] swig_types[197]
3233#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeNameSpecifierImpl_tswig_types[198] swig_types[198]
3234#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSummaryImpl_tswig_types[199] swig_types[199]
3235#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSummaryOptions_tswig_types[200] swig_types[200]
3236#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSystem_tswig_types[201] swig_types[201]
3237#define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeValidatorImpl_tswig_types[202] swig_types[202]
3238#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Type_tswig_types[203] swig_types[203]
3239#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnixSignals_tswig_types[204] swig_types[204]
3240#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnwindAssembly_tswig_types[205] swig_types[205]
3241#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnwindPlan_tswig_types[206] swig_types[206]
3242#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UserExpression_tswig_types[207] swig_types[207]
3243#define SWIGTYPE_p_std__shared_ptrT_lldb_private__UtilityFunction_tswig_types[208] swig_types[208]
3244#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ValueList_tswig_types[209] swig_types[209]
3245#define SWIGTYPE_p_std__shared_ptrT_lldb_private__ValueObjectList_tswig_types[210] swig_types[210]
3246#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Value_tswig_types[211] swig_types[211]
3247#define SWIGTYPE_p_std__shared_ptrT_lldb_private__VariableList_tswig_types[212] swig_types[212]
3248#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Variable_tswig_types[213] swig_types[213]
3249#define SWIGTYPE_p_std__shared_ptrT_lldb_private__Watchpoint_tswig_types[214] swig_types[214]
3250#define SWIGTYPE_p_std__unique_ptrT_lldb_private__ClangASTContext_tswig_types[215] swig_types[215]
3251#define SWIGTYPE_p_std__unique_ptrT_lldb_private__ClangModulesDeclVendor_tswig_types[216] swig_types[216]
3252#define SWIGTYPE_p_std__unique_ptrT_lldb_private__ClangPersistentVariables_tswig_types[217] swig_types[217]
3253#define SWIGTYPE_p_std__unique_ptrT_lldb_private__DynamicCheckerFunctions_tswig_types[218] swig_types[218]
3254#define SWIGTYPE_p_std__unique_ptrT_lldb_private__DynamicLoader_tswig_types[219] swig_types[219]
3255#define SWIGTYPE_p_std__unique_ptrT_lldb_private__GoASTContext_tswig_types[220] swig_types[220]
3256#define SWIGTYPE_p_std__unique_ptrT_lldb_private__JITLoaderList_tswig_types[221] swig_types[221]
3257#define SWIGTYPE_p_std__unique_ptrT_lldb_private__MemoryRegionInfo_tswig_types[222] swig_types[222]
3258#define SWIGTYPE_p_std__unique_ptrT_lldb_private__OperatingSystem_tswig_types[223] swig_types[223]
3259#define SWIGTYPE_p_std__unique_ptrT_lldb_private__ScriptInterpreter_tswig_types[224] swig_types[224]
3260#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SectionList_tswig_types[225] swig_types[225]
3261#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SourceManager_tswig_types[226] swig_types[226]
3262#define SWIGTYPE_p_std__unique_ptrT_lldb_private__StackFrame_tswig_types[227] swig_types[227]
3263#define SWIGTYPE_p_std__unique_ptrT_lldb_private__StructuredDataImpl_tswig_types[228] swig_types[228]
3264#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SymbolVendor_tswig_types[229] swig_types[229]
3265#define SWIGTYPE_p_std__unique_ptrT_lldb_private__SystemRuntime_tswig_types[230] swig_types[230]
3266#define SWIGTYPE_p_std__weak_ptrT_lldb_private__BreakpointLocation_tswig_types[231] swig_types[231]
3267#define SWIGTYPE_p_std__weak_ptrT_lldb_private__BreakpointSite_tswig_types[232] swig_types[232]
3268#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Breakpoint_tswig_types[233] swig_types[233]
3269#define SWIGTYPE_p_std__weak_ptrT_lldb_private__BroadcasterManager_tswig_types[234] swig_types[234]
3270#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Debugger_tswig_types[235] swig_types[235]
3271#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Listener_tswig_types[236] swig_types[236]
3272#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Module_tswig_types[237] swig_types[237]
3273#define SWIGTYPE_p_std__weak_ptrT_lldb_private__ObjectFileJITDelegate_tswig_types[238] swig_types[238]
3274#define SWIGTYPE_p_std__weak_ptrT_lldb_private__ObjectFile_tswig_types[239] swig_types[239]
3275#define SWIGTYPE_p_std__weak_ptrT_lldb_private__OptionValue_tswig_types[240] swig_types[240]
3276#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Process_tswig_types[241] swig_types[241]
3277#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Queue_tswig_types[242] swig_types[242]
3278#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Section_tswig_types[243] swig_types[243]
3279#define SWIGTYPE_p_std__weak_ptrT_lldb_private__StackFrame_tswig_types[244] swig_types[244]
3280#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Stream_tswig_types[245] swig_types[245]
3281#define SWIGTYPE_p_std__weak_ptrT_lldb_private__StructuredDataPlugin_tswig_types[246] swig_types[246]
3282#define SWIGTYPE_p_std__weak_ptrT_lldb_private__SymbolFileType_tswig_types[247] swig_types[247]
3283#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Target_tswig_types[248] swig_types[248]
3284#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Thread_tswig_types[249] swig_types[249]
3285#define SWIGTYPE_p_std__weak_ptrT_lldb_private__Type_tswig_types[250] swig_types[250]
3286#define SWIGTYPE_p_std__weak_ptrT_lldb_private__UnixSignals_tswig_types[251] swig_types[251]
3287#define SWIGTYPE_p_unsigned_charswig_types[252] swig_types[252]
3288#define SWIGTYPE_p_unsigned_intswig_types[253] swig_types[253]
3289#define SWIGTYPE_p_unsigned_long_longswig_types[254] swig_types[254]
3290#define SWIGTYPE_p_unsigned_shortswig_types[255] swig_types[255]
3291#define SWIGTYPE_p_voidswig_types[256] swig_types[256]
3292static swig_type_info *swig_types[258];
3293static swig_module_info swig_module = {swig_types, 257, 0, 0, 0, 0};
3294#define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name
)
SWIG_TypeQueryModule(&swig_module, &swig_module, name)
3295#define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, name)
SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
3296
3297/* -------- TYPES TABLE (END) -------- */
3298
3299#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
<= 0x02000000)
3300# if !defined(SWIG_PYTHON_CLASSIC)
3301# error "This python version requires swig to be run with the '-classic' option"
3302# endif
3303#endif
3304
3305/*-----------------------------------------------
3306 @(target):= _lldb.so
3307 ------------------------------------------------*/
3308#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3309# define SWIG_initinit_lldb PyInit__lldb
3310
3311#else
3312# define SWIG_initinit_lldb init_lldb
3313
3314#endif
3315#define SWIG_name"_lldb" "_lldb"
3316
3317#define SWIGVERSION0x030010 0x030010
3318#define SWIG_VERSION0x030010 SWIGVERSION0x030010
3319
3320
3321#define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >(
a))
const_cast< void * >(static_cast< const void * >(a))
3322#define SWIG_as_voidptrptr(a)((void)const_cast< void * >(static_cast< const void *
>(*a)),reinterpret_cast< void** >(a))
((void)SWIG_as_voidptr(*a)const_cast< void * >(static_cast< const void * >(
*a))
,reinterpret_cast< void** >(a))
3323
3324
3325#include <stdexcept>
3326
3327
3328namespace swig {
3329 class SwigPtr_PyObject {
3330 protected:
3331 PyObject *_obj;
3332
3333 public:
3334 SwigPtr_PyObject() :_obj(0)
3335 {
3336 }
3337
3338 SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
3339 {
3340 SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block;
3341 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3342 SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end();
3343 }
3344
3345 SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
3346 {
3347 if (initial_ref) {
3348 SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block;
3349 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3350 SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end();
3351 }
3352 }
3353
3354 SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
3355 {
3356 SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block;
3357 Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj
))->ob_refcnt++); } while (0)
;
3358 Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(_obj)))); } while (0); } while (0)
;
3359 _obj = item._obj;
3360 SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end();
3361 return *this;
3362 }
3363
3364 ~SwigPtr_PyObject()
3365 {
3366 SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block;
3367 Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(_obj)))); } while (0); } while (0)
;
3368 SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end();
3369 }
3370
3371 operator PyObject *() const
3372 {
3373 return _obj;
3374 }
3375
3376 PyObject *operator->() const
3377 {
3378 return _obj;
3379 }
3380 };
3381}
3382
3383
3384namespace swig {
3385 struct SwigVar_PyObject : SwigPtr_PyObject {
3386 SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
3387
3388 SwigVar_PyObject & operator = (PyObject* obj)
3389 {
3390 Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(_obj)))); } while (0); } while (0)
;
3391 _obj = obj;
3392 return *this;
3393 }
3394 };
3395}
3396
3397
3398namespace {
3399template <class T>
3400T PyLongAsT(PyObject *obj) {
3401 static_assert(true, "unsupported type");
3402}
3403
3404template <> uint64_t PyLongAsT<uint64_t>(PyObject *obj) {
3405 return static_cast<uint64_t>(PyLong_AsUnsignedLongLong(obj));
3406}
3407
3408template <> uint32_t PyLongAsT<uint32_t>(PyObject *obj) {
3409 return static_cast<uint32_t>(PyLong_AsUnsignedLong(obj));
3410}
3411
3412template <> int64_t PyLongAsT<int64_t>(PyObject *obj) {
3413 return static_cast<int64_t>(PyLong_AsLongLong(obj));
3414}
3415
3416template <> int32_t PyLongAsT<int32_t>(PyObject *obj) {
3417 return static_cast<int32_t>(PyLong_AsLong(obj));
3418}
3419
3420template <class T>
3421bool SetNumberFromPyObject(T &number, PyObject *obj) {
3422 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
)
3423 number = static_cast<T>(PyInt_AsLong(obj));
3424 else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
)
3425 number = PyLongAsT<T>(obj);
3426 else return false;
3427
3428 return true;
3429}
3430
3431template <>
3432bool SetNumberFromPyObject<double>(double &number, PyObject *obj) {
3433 if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype
((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))
) {
3434 number = PyFloat_AsDouble(obj);
3435 return true;
3436 }
3437
3438 return false;
3439}
3440
3441} // namespace
3442
3443
3444#include <algorithm>
3445#include <string>
3446
3447
3448#include "lldb/lldb-public.h"
3449#include "lldb/API/SBAddress.h"
3450#include "lldb/API/SBAttachInfo.h"
3451#include "lldb/API/SBBlock.h"
3452#include "lldb/API/SBBreakpoint.h"
3453#include "lldb/API/SBBreakpointLocation.h"
3454#include "lldb/API/SBBreakpointName.h"
3455#include "lldb/API/SBBroadcaster.h"
3456#include "lldb/API/SBCommandInterpreter.h"
3457#include "lldb/API/SBCommandReturnObject.h"
3458#include "lldb/API/SBCommunication.h"
3459#include "lldb/API/SBCompileUnit.h"
3460#include "lldb/API/SBData.h"
3461#include "lldb/API/SBDebugger.h"
3462#include "lldb/API/SBDeclaration.h"
3463#include "lldb/API/SBError.h"
3464#include "lldb/API/SBEvent.h"
3465#include "lldb/API/SBExecutionContext.h"
3466#include "lldb/API/SBExpressionOptions.h"
3467#include "lldb/API/SBFileSpec.h"
3468#include "lldb/API/SBFileSpecList.h"
3469#include "lldb/API/SBFrame.h"
3470#include "lldb/API/SBFunction.h"
3471#include "lldb/API/SBHostOS.h"
3472#include "lldb/API/SBInstruction.h"
3473#include "lldb/API/SBInstructionList.h"
3474#include "lldb/API/SBLanguageRuntime.h"
3475#include "lldb/API/SBLaunchInfo.h"
3476#include "lldb/API/SBLineEntry.h"
3477#include "lldb/API/SBListener.h"
3478#include "lldb/API/SBMemoryRegionInfo.h"
3479#include "lldb/API/SBMemoryRegionInfoList.h"
3480#include "lldb/API/SBModule.h"
3481#include "lldb/API/SBModuleSpec.h"
3482#include "lldb/API/SBPlatform.h"
3483#include "lldb/API/SBProcess.h"
3484#include "lldb/API/SBProcessInfo.h"
3485#include "lldb/API/SBQueue.h"
3486#include "lldb/API/SBQueueItem.h"
3487#include "lldb/API/SBSection.h"
3488#include "lldb/API/SBSourceManager.h"
3489#include "lldb/API/SBStream.h"
3490#include "lldb/API/SBStringList.h"
3491#include "lldb/API/SBStructuredData.h"
3492#include "lldb/API/SBSymbol.h"
3493#include "lldb/API/SBSymbolContext.h"
3494#include "lldb/API/SBSymbolContextList.h"
3495#include "lldb/API/SBTarget.h"
3496#include "lldb/API/SBThread.h"
3497#include "lldb/API/SBThreadCollection.h"
3498#include "lldb/API/SBThreadPlan.h"
3499#include "lldb/API/SBTrace.h"
3500#include "lldb/API/SBTraceOptions.h"
3501#include "lldb/API/SBType.h"
3502#include "lldb/API/SBTypeCategory.h"
3503#include "lldb/API/SBTypeEnumMember.h"
3504#include "lldb/API/SBTypeFilter.h"
3505#include "lldb/API/SBTypeFormat.h"
3506#include "lldb/API/SBTypeNameSpecifier.h"
3507#include "lldb/API/SBTypeSummary.h"
3508#include "lldb/API/SBTypeSynthetic.h"
3509#include "lldb/API/SBValue.h"
3510#include "lldb/API/SBValueList.h"
3511#include "lldb/API/SBVariablesOptions.h"
3512#include "lldb/API/SBWatchpoint.h"
3513#include "lldb/API/SBUnixSignals.h"
3514
3515#include "../source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h"
3516
3517#include "../scripts/Python/python-swigsafecast.swig"
3518
3519
3520#include <stdint.h> // Use the C99 official header
3521
3522
3523SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3524 SWIG_From_int (int value)
3525{
3526 return PyInt_FromLong((long) value);
3527}
3528
3529
3530SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3531 SWIG_From_unsigned_SS_int (unsigned int value)
3532{
3533 return PyInt_FromSize_t((size_t) value);
3534}
3535
3536
3537#include <limits.h>
3538#if !defined(SWIG_NO_LLONG_MAX)
3539# if !defined(LLONG_MAX9223372036854775807LL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL)
3540# define LLONG_MAX9223372036854775807LL __LONG_LONG_MAX__9223372036854775807LL
3541# define LLONG_MIN(-9223372036854775807LL -1LL) (-LLONG_MAX9223372036854775807LL - 1LL)
3542# define ULLONG_MAX(9223372036854775807LL*2ULL+1ULL) (LLONG_MAX9223372036854775807LL * 2ULL + 1ULL)
3543# endif
3544#endif
3545
3546
3547#if defined(LLONG_MAX9223372036854775807LL) && !defined(SWIG_LONG_LONG_AVAILABLE)
3548# define SWIG_LONG_LONG_AVAILABLE
3549#endif
3550
3551
3552#ifdef SWIG_LONG_LONG_AVAILABLE
3553SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3554SWIG_From_unsigned_SS_long_SS_long (unsigned long long value)
3555{
3556 return (value > LONG_MAX9223372036854775807L) ?
3557 PyLong_FromUnsignedLongLong(value) : PyInt_FromLong(static_cast< long >(value));
3558}
3559#endif
3560
3561
3562SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info*
3563SWIG_pchar_descriptor(void)
3564{
3565 static int init = 0;
3566 static swig_type_info* info = 0;
3567 if (!init) {
3568 info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char"
)
;
3569 init = 1;
3570 }
3571 return info;
3572}
3573
3574
3575SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3576SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3577{
3578 if (carray) {
3579 if (size > INT_MAX2147483647) {
3580 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3581 return pchar_descriptor ?
3582 SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(__null, const_cast< char * >(
carray), pchar_descriptor, 0)
: SWIG_Py_Void();
3583 } else {
3584#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3585#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3586 return PyBytes_FromStringAndSizePyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3587#else
3588#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03010000
3589 return PyUnicode_DecodeUTF8PyUnicodeUCS4_DecodeUTF8(carray, static_cast< Py_ssize_t >(size), "surrogateescape");
3590#else
3591 return PyUnicode_FromStringAndSizePyUnicodeUCS4_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3592#endif
3593#endif
3594#else
3595 return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
3596#endif
3597 }
3598 } else {
3599 return SWIG_Py_Void();
3600 }
3601}
3602
3603
3604SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3605SWIG_FromCharPtr(const char *cptr)
3606{
3607 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
3608}
3609
3610
3611SWIGINTERNstatic __attribute__ ((__unused__)) int
3612SWIG_AsVal_double (PyObject *obj, double *val)
3613{
3614 int res = SWIG_TypeError-5;
3615 if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype
((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))
) {
3616 if (val) *val = PyFloat_AsDouble(obj);
3617 return SWIG_OK(0);
3618#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3619 } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3620 if (val) *val = PyInt_AsLong(obj);
3621 return SWIG_OK(0);
3622#endif
3623 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3624 double v = PyLong_AsDouble(obj);
3625 if (!PyErr_Occurred()) {
3626 if (val) *val = v;
3627 return SWIG_OK(0);
3628 } else {
3629 PyErr_Clear();
3630 }
3631 }
3632#ifdef SWIG_PYTHON_CAST_MODE
3633 {
3634 int dispatch = 0;
3635 double d = PyFloat_AsDouble(obj);
3636 if (!PyErr_Occurred()) {
3637 if (val) *val = d;
3638 return SWIG_AddCast(SWIG_OK)((0));
3639 } else {
3640 PyErr_Clear();
3641 }
3642 if (!dispatch) {
3643 long v = PyLong_AsLong(obj);
3644 if (!PyErr_Occurred()) {
3645 if (val) *val = v;
3646 return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0)));
3647 } else {
3648 PyErr_Clear();
3649 }
3650 }
3651 }
3652#endif
3653 return res;
3654}
3655
3656
3657#include <float.h>
3658
3659
3660#include <math.h>
3661
3662
3663SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3664SWIG_CanCastAsInteger(double *d, double min, double max) {
3665 double x = *d;
3666 if ((min <= x && x <= max)) {
3667 double fx = floor(x);
3668 double cx = ceil(x);
3669 double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3670 if ((errno(*__errno_location ()) == EDOM33) || (errno(*__errno_location ()) == ERANGE34)) {
3671 errno(*__errno_location ()) = 0;
3672 } else {
3673 double summ, reps, diff;
3674 if (rd < x) {
3675 diff = x - rd;
3676 } else if (rd > x) {
3677 diff = rd - x;
3678 } else {
3679 return 1;
3680 }
3681 summ = rd + x;
3682 reps = diff/summ;
3683 if (reps < 8*DBL_EPSILON2.2204460492503131e-16) {
3684 *d = rd;
3685 return 1;
3686 }
3687 }
3688 }
3689 return 0;
3690}
3691
3692
3693SWIGINTERNstatic __attribute__ ((__unused__)) int
3694SWIG_AsVal_long (PyObject *obj, long* val)
3695{
3696#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3697 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3698 if (val) *val = PyInt_AsLong(obj);
3699 return SWIG_OK(0);
3700 } else
3701#endif
3702 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3703 long v = PyLong_AsLong(obj);
3704 if (!PyErr_Occurred()) {
3705 if (val) *val = v;
3706 return SWIG_OK(0);
3707 } else {
3708 PyErr_Clear();
3709 return SWIG_OverflowError-7;
3710 }
3711 }
3712#ifdef SWIG_PYTHON_CAST_MODE
3713 {
3714 int dispatch = 0;
3715 long v = PyInt_AsLong(obj);
3716 if (!PyErr_Occurred()) {
3717 if (val) *val = v;
3718 return SWIG_AddCast(SWIG_OK)((0));
3719 } else {
3720 PyErr_Clear();
3721 }
3722 if (!dispatch) {
3723 double d;
3724 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3725 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) {
3726 if (val) *val = (long)(d);
3727 return res;
3728 }
3729 }
3730 }
3731#endif
3732 return SWIG_TypeError-5;
3733}
3734
3735
3736SWIGINTERNstatic __attribute__ ((__unused__)) int
3737SWIG_AsVal_int (PyObject * obj, int *val)
3738{
3739 long v;
3740 int res = SWIG_AsVal_long (obj, &v);
3741 if (SWIG_IsOK(res)(res >= 0)) {
3742 if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) {
3743 return SWIG_OverflowError-7;
3744 } else {
3745 if (val) *val = static_cast< int >(v);
3746 }
3747 }
3748 return res;
3749}
3750
3751
3752SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3753 SWIG_From_bool (bool value)
3754{
3755 return PyBool_FromLong(value ? 1 : 0);
3756}
3757
3758
3759SWIGINTERNstatic __attribute__ ((__unused__)) int
3760SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3761{
3762#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3763 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3764 long v = PyInt_AsLong(obj);
3765 if (v >= 0) {
3766 if (val) *val = v;
3767 return SWIG_OK(0);
3768 } else {
3769 return SWIG_OverflowError-7;
3770 }
3771 } else
3772#endif
3773 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3774 unsigned long v = PyLong_AsUnsignedLong(obj);
3775 if (!PyErr_Occurred()) {
3776 if (val) *val = v;
3777 return SWIG_OK(0);
3778 } else {
3779 PyErr_Clear();
3780 return SWIG_OverflowError-7;
3781 }
3782 }
3783#ifdef SWIG_PYTHON_CAST_MODE
3784 {
3785 int dispatch = 0;
3786 unsigned long v = PyLong_AsUnsignedLong(obj);
3787 if (!PyErr_Occurred()) {
3788 if (val) *val = v;
3789 return SWIG_AddCast(SWIG_OK)((0));
3790 } else {
3791 PyErr_Clear();
3792 }
3793 if (!dispatch) {
3794 double d;
3795 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3796 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) {
3797 if (val) *val = (unsigned long)(d);
3798 return res;
3799 }
3800 }
3801 }
3802#endif
3803 return SWIG_TypeError-5;
3804}
3805
3806
3807#ifdef SWIG_LONG_LONG_AVAILABLE
3808SWIGINTERNstatic __attribute__ ((__unused__)) int
3809SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val)
3810{
3811 int res = SWIG_TypeError-5;
3812 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3813 unsigned long long v = PyLong_AsUnsignedLongLong(obj);
3814 if (!PyErr_Occurred()) {
3815 if (val) *val = v;
3816 return SWIG_OK(0);
3817 } else {
3818 PyErr_Clear();
3819 res = SWIG_OverflowError-7;
3820 }
3821 } else {
3822 unsigned long v;
3823 res = SWIG_AsVal_unsigned_SS_long (obj,&v);
3824 if (SWIG_IsOK(res)(res >= 0)) {
3825 if (val) *val = v;
3826 return res;
3827 }
3828 }
3829#ifdef SWIG_PYTHON_CAST_MODE
3830 {
3831 const double mant_max = 1LL << DBL_MANT_DIG53;
3832 double d;
3833 res = SWIG_AsVal_double (obj,&d);
3834 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, mant_max)) {
3835 if (val) *val = (unsigned long long)(d);
3836 return SWIG_AddCast(res)(res);
3837 }
3838 res = SWIG_TypeError-5;
3839 }
3840#endif
3841 return res;
3842}
3843#endif
3844
3845
3846SWIGINTERNstatic __attribute__ ((__unused__)) int
3847SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
3848{
3849 unsigned long v;
3850 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
3851 if (SWIG_IsOK(res)(res >= 0)) {
3852 if ((v > UINT_MAX(2147483647 *2U +1U))) {
3853 return SWIG_OverflowError-7;
3854 } else {
3855 if (val) *val = static_cast< unsigned int >(v);
3856 }
3857 }
3858 return res;
3859}
3860
3861SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBAddress___str__(lldb::SBAddress *self){
3862 lldb::SBStream description;
3863 self->GetDescription (description);
3864 const char *desc = description.GetData();
3865 size_t desc_len = description.GetSize();
3866 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
3867 --desc_len;
3868 if (desc_len > 0)
3869 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
3870 else
3871 return lldb_private::PythonString("").release();
3872 }
3873
3874SWIGINTERNstatic __attribute__ ((__unused__)) int
3875SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
3876{
3877#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3878#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3879 if (PyBytes_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
27))) != 0)
)
3880#else
3881 if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
28))) != 0)
)
3882#endif
3883#else
3884 if (PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
27))) != 0)
)
3885#endif
3886 {
3887 char *cstr; Py_ssize_t len;
3888#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3889#if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3890 if (!alloc && cptr) {
3891 /* We can't allow converting without allocation, since the internal
3892 representation of string in Python 3 is UCS-2/UCS-4 but we require
3893 a UTF-8 representation.
3894 TODO(bhy) More detailed explanation */
3895 return SWIG_RuntimeError-3;
3896 }
3897 obj = PyUnicode_AsUTF8StringPyUnicodeUCS4_AsUTF8String(obj);
3898 if(alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3899#endif
3900 PyBytes_AsStringAndSizePyString_AsStringAndSize(obj, &cstr, &len);
3901#else
3902 PyString_AsStringAndSize(obj, &cstr, &len);
3903#endif
3904 if (cptr) {
3905 if (alloc) {
3906 /*
3907 In python the user should not be able to modify the inner
3908 string representation. To warranty that, if you define
3909 SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
3910 buffer is always returned.
3911
3912 The default behavior is just to return the pointer value,
3913 so, be careful.
3914 */
3915#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
3916 if (*alloc != SWIG_OLDOBJ((0)))
3917#else
3918 if (*alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1)))
3919#endif
3920 {
3921 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
3922 *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3923 } else {
3924 *cptr = cstr;
3925 *alloc = SWIG_OLDOBJ((0));
3926 }
3927 } else {
3928#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3929#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3930 *cptr = PyBytes_AsStringPyString_AsString(obj);
3931#else
3932 assert(0)((0) ? static_cast<void> (0) : __assert_fail ("0", "/build/llvm-toolchain-snapshot-8~svn345461/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp"
, 3932, __PRETTY_FUNCTION__))
; /* Should never reach here with Unicode strings in Python 3 */
3933#endif
3934#else
3935 *cptr = SWIG_Python_str_AsChar(obj);
3936#endif
3937 }
3938 }
3939 if (psize) *psize = len + 1;
3940#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3941 Py_XDECREF(obj)do { if ((obj) == __null) ; else do { if ( --((PyObject*)(obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(obj)))); } while (0); } while (0)
;
3942#endif
3943 return SWIG_OK(0);
3944 } else {
3945#if defined(SWIG_PYTHON_2_UNICODE)
3946#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
3947#error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
3948#endif
3949#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (13 << 8) | (0xF <<
4) | (0 << 0))
<0x03000000
3950 if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
28))) != 0)
) {
3951 char *cstr; Py_ssize_t len;
3952 if (!alloc && cptr) {
3953 return SWIG_RuntimeError-3;
3954 }
3955 obj = PyUnicode_AsUTF8StringPyUnicodeUCS4_AsUTF8String(obj);
3956 if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
3957 if (cptr) {
3958 if (alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3959 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
3960 }
3961 if (psize) *psize = len + 1;
3962
3963 Py_XDECREF(obj)do { if ((obj) == __null) ; else do { if ( --((PyObject*)(obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(obj)))); } while (0); } while (0)
;
3964 return SWIG_OK(0);
3965 } else {
3966 Py_XDECREF(obj)do { if ((obj) == __null) ; else do { if ( --((PyObject*)(obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)
(obj)))); } while (0); } while (0)
;
3967 }
3968 }
3969#endif
3970#endif
3971
3972 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3973 if (pchar_descriptor) {
3974 void* vptr = 0;
3975 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor
, 0, 0)
== SWIG_OK(0)) {
3976 if (cptr) *cptr = (char *) vptr;
3977 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3978 if (alloc) *alloc = SWIG_OLDOBJ((0));
3979 return SWIG_OK(0);
3980 }
3981 }
3982 }
3983 return SWIG_TypeError-5;
3984}
3985
3986
3987
3988
3989
3990SWIGINTERNstatic __attribute__ ((__unused__)) int
3991SWIG_AsVal_bool (PyObject *obj, bool *val)
3992{
3993 int r;
3994 if (!PyBool_Check(obj)((((PyObject*)(obj))->ob_type) == &PyBool_Type))
3995 return SWIG_ERROR(-1);
3996 r = PyObject_IsTrue(obj);
3997 if (r == -1)
3998 return SWIG_ERROR(-1);
3999 if (val) *val = r ? true : false;
4000 return SWIG_OK(0);
4001}
4002
4003SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBBlock___str__(lldb::SBBlock *self){
4004 lldb::SBStream description;
4005 self->GetDescription (description);
4006 const char *desc = description.GetData();
4007 size_t desc_len = description.GetSize();
4008 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4009 --desc_len;
4010 if (desc_len > 0)
4011 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4012 else
4013 return lldb_private::PythonString("").release();
4014 }
4015
4016 #define SWIG_From_longPyInt_FromLong PyInt_FromLong
4017
4018
4019SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
4020SWIG_From_unsigned_SS_long (unsigned long value)
4021{
4022 return (value > LONG_MAX9223372036854775807L) ?
4023 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
4024}
4025
4026
4027SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
4028SWIG_From_size_t (size_t value)
4029{
4030#ifdef SWIG_LONG_LONG_AVAILABLE
4031 if (sizeof(size_t) <= sizeof(unsigned long)) {
4032#endif
4033 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
4034#ifdef SWIG_LONG_LONG_AVAILABLE
4035 } else {
4036 /* assume sizeof(size_t) <= sizeof(unsigned long long) */
4037 return SWIG_From_unsigned_SS_long_SS_long (static_cast< unsigned long long >(value));
4038 }
4039#endif
4040}
4041
4042SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBBreakpoint___str__(lldb::SBBreakpoint *self){
4043 lldb::SBStream description;
4044 self->GetDescription (description);
4045 const char *desc = description.GetData();
4046 size_t desc_len = description.GetSize();
4047 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4048 --desc_len;
4049 if (desc_len > 0)
4050 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4051 else
4052 return lldb_private::PythonString("").release();
4053 }
4054
4055SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
4056SWIG_AsVal_size_t (PyObject * obj, size_t *val)
4057{
4058 int res = SWIG_TypeError-5;
4059#ifdef SWIG_LONG_LONG_AVAILABLE
4060 if (sizeof(size_t) <= sizeof(unsigned long)) {
4061#endif
4062 unsigned long v;
4063 res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
4064 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v);
4065#ifdef SWIG_LONG_LONG_AVAILABLE
4066 } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
4067 unsigned long long v;
4068 res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0);
4069 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v);
4070 }
4071#endif
4072 return res;
4073}
4074
4075SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBBreakpointLocation___str__(lldb::SBBreakpointLocation *self){
4076 lldb::SBStream description;
4077 self->GetDescription (description, lldb::eDescriptionLevelFull);
4078 const char *desc = description.GetData();
4079 size_t desc_len = description.GetSize();
4080 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4081 --desc_len;
4082 if (desc_len > 0)
4083 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4084 else
4085 return lldb_private::PythonString("").release();
4086 }
4087SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBBreakpointName___str__(lldb::SBBreakpointName *self){
4088 lldb::SBStream description;
4089 self->GetDescription (description);
4090 const char *desc = description.GetData();
4091 size_t desc_len = description.GetSize();
4092 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4093 --desc_len;
4094 if (desc_len > 0)
4095 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4096 else
4097 return lldb_private::PythonString("").release();
4098 }
4099
4100SWIGINTERNstatic __attribute__ ((__unused__)) int
4101SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
4102{
4103 char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ((0));
4104 int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
4105 if (SWIG_IsOK(res)(res >= 0)) {
4106 /* special case of single char conversion when we don't need space for NUL */
4107 if (size == 1 && csize == 2 && cptr && !cptr[1]) --csize;
4108 if (csize <= size) {
4109 if (val) {
4110 if (csize) memcpy(val, cptr, csize*sizeof(char));
4111 if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
4112 }
4113 if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) {
4114 delete[] cptr;
4115 res = SWIG_DelNewMask(res)((res >= 0) ? (res & ~((1 << 8) << 1)) : res
)
;
4116 }
4117 return res;
4118 }
4119 if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] cptr;
4120 }
4121 return SWIG_TypeError-5;
4122}
4123
4124
4125SWIGINTERNstatic __attribute__ ((__unused__)) int
4126SWIG_AsVal_char (PyObject * obj, char *val)
4127{
4128 int res = SWIG_AsCharArray(obj, val, 1);
4129 if (!SWIG_IsOK(res)(res >= 0)) {
4130 long v;
4131 res = SWIG_AddCast(SWIG_AsVal_long (obj, &v))(SWIG_AsVal_long (obj, &v));
4132 if (SWIG_IsOK(res)(res >= 0)) {
4133 if ((CHAR_MIN(-127 -1) <= v) && (v <= CHAR_MAX127)) {
4134 if (val) *val = static_cast< char >(v);
4135 } else {
4136 res = SWIG_OverflowError-7;
4137 }
4138 }
4139 }
4140 return res;
4141}
4142
4143SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_SetImmediateOutputFile(lldb::SBCommandReturnObject *self,FILE *fh){
4144 self->SetImmediateOutputFile(fh, true);
4145 }
4146SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_SetImmediateErrorFile(lldb::SBCommandReturnObject *self,FILE *fh){
4147 self->SetImmediateErrorFile(fh, true);
4148 }
4149SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_Print(lldb::SBCommandReturnObject *self,char const *str){
4150 self->Printf("%s", str);
4151 }
4152SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBCommandReturnObject___str__(lldb::SBCommandReturnObject *self){
4153 lldb::SBStream description;
4154 self->GetDescription (description);
4155 const char *desc = description.GetData();
4156 size_t desc_len = description.GetSize();
4157 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4158 --desc_len;
4159 if (desc_len > 0)
4160 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4161 else
4162 return lldb_private::PythonString("").release();
4163 }
4164SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_write(lldb::SBCommandReturnObject *self,char const *str){
4165 if (str)
4166 self->Printf("%s",str);
4167 }
4168SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_flush(lldb::SBCommandReturnObject *self){}
4169SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBCompileUnit___str__(lldb::SBCompileUnit *self){
4170 lldb::SBStream description;
4171 self->GetDescription (description);
4172 const char *desc = description.GetData();
4173 size_t desc_len = description.GetSize();
4174 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4175 --desc_len;
4176 if (desc_len > 0)
4177 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4178 else
4179 return lldb_private::PythonString("").release();
4180 }
4181
4182SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
4183SWIG_From_unsigned_SS_char (unsigned char value)
4184{
4185 return SWIG_From_unsigned_SS_long (value);
4186}
4187
4188
4189SWIGINTERNstatic __attribute__ ((__unused__)) int
4190SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
4191{
4192 unsigned long v;
4193 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
4194 if (SWIG_IsOK(res)(res >= 0)) {
4195 if ((v > UCHAR_MAX(127*2 +1))) {
4196 return SWIG_OverflowError-7;
4197 } else {
4198 if (val) *val = static_cast< unsigned char >(v);
4199 }
4200 }
4201 return res;
4202}
4203
4204
4205 #define SWIG_From_doublePyFloat_FromDouble PyFloat_FromDouble
4206
4207
4208SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
4209SWIG_From_float (float value)
4210{
4211 return SWIG_From_doublePyFloat_FromDouble (value);
4212}
4213
4214
4215SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
4216SWIG_From_unsigned_SS_short (unsigned short value)
4217{
4218 return SWIG_From_unsigned_SS_long (value);
4219}
4220
4221
4222SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
4223SWIG_From_signed_SS_char (signed char value)
4224{
4225 return SWIG_From_longPyInt_FromLong (value);
4226}
4227
4228
4229SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
4230SWIG_From_short (short value)
4231{
4232 return SWIG_From_longPyInt_FromLong (value);
4233}
4234
4235
4236#ifdef SWIG_LONG_LONG_AVAILABLE
4237SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
4238SWIG_From_long_SS_long (long long value)
4239{
4240 return ((value < LONG_MIN(-9223372036854775807L -1L)) || (value > LONG_MAX9223372036854775807L)) ?
4241 PyLong_FromLongLong(value) : PyInt_FromLong(static_cast< long >(value));
4242}
4243#endif
4244
4245SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBData___str__(lldb::SBData *self){
4246 lldb::SBStream description;
4247 self->GetDescription (description);
4248 const char *desc = description.GetData();
4249 size_t desc_len = description.GetSize();
4250 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4251 --desc_len;
4252 if (desc_len > 0)
4253 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4254 else
4255 return lldb_private::PythonString("").release();
4256 }
4257SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBDebugger___str__(lldb::SBDebugger *self){
4258 lldb::SBStream description;
4259 self->GetDescription (description);
4260 const char *desc = description.GetData();
4261 size_t desc_len = description.GetSize();
4262 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4263 --desc_len;
4264 if (desc_len > 0)
4265 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4266 else
4267 return lldb_private::PythonString("").release();
4268 }
4269SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBDeclaration___str__(lldb::SBDeclaration *self){
4270 lldb::SBStream description;
4271 self->GetDescription (description);
4272 const char *desc = description.GetData();
4273 size_t desc_len = description.GetSize();
4274 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4275 --desc_len;
4276 if (desc_len > 0)
4277 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4278 else
4279 return lldb_private::PythonString("").release();
4280 }
4281SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBError___str__(lldb::SBError *self){
4282 lldb::SBStream description;
4283 self->GetDescription (description);
4284 const char *desc = description.GetData();
4285 size_t desc_len = description.GetSize();
4286 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4287 --desc_len;
4288 if (desc_len > 0)
4289 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4290 else
4291 return lldb_private::PythonString("").release();
4292 }
4293SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBFileSpec___str__(lldb::SBFileSpec *self){
4294 lldb::SBStream description;
4295 self->GetDescription (description);
4296 const char *desc = description.GetData();
4297 size_t desc_len = description.GetSize();
4298 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4299 --desc_len;
4300 if (desc_len > 0)
4301 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4302 else
4303 return lldb_private::PythonString("").release();
4304 }
4305SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBFrame___str__(lldb::SBFrame *self){
4306 lldb::SBStream description;
4307 self->GetDescription (description);
4308 const char *desc = description.GetData();
4309 size_t desc_len = description.GetSize();
4310 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4311 --desc_len;
4312 if (desc_len > 0)
4313 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4314 else
4315 return lldb_private::PythonString("").release();
4316 }
4317SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBFunction___str__(lldb::SBFunction *self){
4318 lldb::SBStream description;
4319 self->GetDescription (description);
4320 const char *desc = description.GetData();
4321 size_t desc_len = description.GetSize();
4322 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4323 --desc_len;
4324 if (desc_len > 0)
4325 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4326 else
4327 return lldb_private::PythonString("").release();
4328 }
4329SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBInstruction___str__(lldb::SBInstruction *self){
4330 lldb::SBStream description;
4331 self->GetDescription (description);
4332 const char *desc = description.GetData();
4333 size_t desc_len = description.GetSize();
4334 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4335 --desc_len;
4336 if (desc_len > 0)
4337 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4338 else
4339 return lldb_private::PythonString("").release();
4340 }
4341SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBInstructionList___str__(lldb::SBInstructionList *self){
4342 lldb::SBStream description;
4343 self->GetDescription (description);
4344 const char *desc = description.GetData();
4345 size_t desc_len = description.GetSize();
4346 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4347 --desc_len;
4348 if (desc_len > 0)
4349 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4350 else
4351 return lldb_private::PythonString("").release();
4352 }
4353SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBLineEntry___str__(lldb::SBLineEntry *self){
4354 lldb::SBStream description;
4355 self->GetDescription (description);
4356 const char *desc = description.GetData();
4357 size_t desc_len = description.GetSize();
4358 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4359 --desc_len;
4360 if (desc_len > 0)
4361 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4362 else
4363 return lldb_private::PythonString("").release();
4364 }
4365SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBMemoryRegionInfo___str__(lldb::SBMemoryRegionInfo *self){
4366 lldb::SBStream description;
4367 self->GetDescription (description);
4368 const char *desc = description.GetData();
4369 size_t desc_len = description.GetSize();
4370 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4371 --desc_len;
4372 if (desc_len > 0)
4373 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4374 else
4375 return lldb_private::PythonString("").release();
4376 }
4377SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBModule___str__(lldb::SBModule *self){
4378 lldb::SBStream description;
4379 self->GetDescription (description);
4380 const char *desc = description.GetData();
4381 size_t desc_len = description.GetSize();
4382 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4383 --desc_len;
4384 if (desc_len > 0)
4385 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4386 else
4387 return lldb_private::PythonString("").release();
4388 }
4389SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBModuleSpec___str__(lldb::SBModuleSpec *self){
4390 lldb::SBStream description;
4391 self->GetDescription (description);
4392 const char *desc = description.GetData();
4393 size_t desc_len = description.GetSize();
4394 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4395 --desc_len;
4396 if (desc_len > 0)
4397 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4398 else
4399 return lldb_private::PythonString("").release();
4400 }
4401SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBModuleSpecList___str__(lldb::SBModuleSpecList *self){
4402 lldb::SBStream description;
4403 self->GetDescription (description);
4404 const char *desc = description.GetData();
4405 size_t desc_len = description.GetSize();
4406 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4407 --desc_len;
4408 if (desc_len > 0)
4409 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4410 else
4411 return lldb_private::PythonString("").release();
4412 }
4413SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBProcess___str__(lldb::SBProcess *self){
4414 lldb::SBStream description;
4415 self->GetDescription (description);
4416 const char *desc = description.GetData();
4417 size_t desc_len = description.GetSize();
4418 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4419 --desc_len;
4420 if (desc_len > 0)
4421 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4422 else
4423 return lldb_private::PythonString("").release();
4424 }
4425SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBSection___str__(lldb::SBSection *self){
4426 lldb::SBStream description;
4427 self->GetDescription (description);
4428 const char *desc = description.GetData();
4429 size_t desc_len = description.GetSize();
4430 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4431 --desc_len;
4432 if (desc_len > 0)
4433 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4434 else
4435 return lldb_private::PythonString("").release();
4436 }
4437SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBStream_Print(lldb::SBStream *self,char const *str){
4438 self->Printf("%s", str);
4439 }
4440SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBStream_write(lldb::SBStream *self,char const *str){
4441 if (str)
4442 self->Printf("%s",str);
4443 }
4444SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBStream_flush(lldb::SBStream *self){}
4445SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBSymbol___str__(lldb::SBSymbol *self){
4446 lldb::SBStream description;
4447 self->GetDescription (description);
4448 const char *desc = description.GetData();
4449 size_t desc_len = description.GetSize();
4450 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4451 --desc_len;
4452 if (desc_len > 0)
4453 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4454 else
4455 return lldb_private::PythonString("").release();
4456 }
4457SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBSymbolContext___str__(lldb::SBSymbolContext *self){
4458 lldb::SBStream description;
4459 self->GetDescription (description);
4460 const char *desc = description.GetData();
4461 size_t desc_len = description.GetSize();
4462 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4463 --desc_len;
4464 if (desc_len > 0)
4465 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4466 else
4467 return lldb_private::PythonString("").release();
4468 }
4469SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBSymbolContextList___str__(lldb::SBSymbolContextList *self){
4470 lldb::SBStream description;
4471 self->GetDescription (description);
4472 const char *desc = description.GetData();
4473 size_t desc_len = description.GetSize();
4474 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4475 --desc_len;
4476 if (desc_len > 0)
4477 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4478 else
4479 return lldb_private::PythonString("").release();
4480 }
4481
4482#ifdef SWIG_LONG_LONG_AVAILABLE
4483SWIGINTERNstatic __attribute__ ((__unused__)) int
4484SWIG_AsVal_long_SS_long (PyObject *obj, long long *val)
4485{
4486 int res = SWIG_TypeError-5;
4487 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
4488 long long v = PyLong_AsLongLong(obj);
4489 if (!PyErr_Occurred()) {
4490 if (val) *val = v;
4491 return SWIG_OK(0);
4492 } else {
4493 PyErr_Clear();
4494 res = SWIG_OverflowError-7;
4495 }
4496 } else {
4497 long v;
4498 res = SWIG_AsVal_long (obj,&v);
4499 if (SWIG_IsOK(res)(res >= 0)) {
4500 if (val) *val = v;
4501 return res;
4502 }
4503 }
4504#ifdef SWIG_PYTHON_CAST_MODE
4505 {
4506 const double mant_max = 1LL << DBL_MANT_DIG53;
4507 const double mant_min = -mant_max;
4508 double d;
4509 res = SWIG_AsVal_double (obj,&d);
4510 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, mant_min, mant_max)) {
4511 if (val) *val = (long long)(d);
4512 return SWIG_AddCast(res)(res);
4513 }
4514 res = SWIG_TypeError-5;
4515 }
4516#endif
4517 return res;
4518}
4519#endif
4520
4521SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTarget___str__(lldb::SBTarget *self){
4522 lldb::SBStream description;
4523 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4524 const char *desc = description.GetData();
4525 size_t desc_len = description.GetSize();
4526 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4527 --desc_len;
4528 if (desc_len > 0)
4529 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4530 else
4531 return lldb_private::PythonString("").release();
4532 }
4533SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBThread___str__(lldb::SBThread *self){
4534 lldb::SBStream description;
4535 self->GetDescription (description);
4536 const char *desc = description.GetData();
4537 size_t desc_len = description.GetSize();
4538 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4539 --desc_len;
4540 if (desc_len > 0)
4541 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4542 else
4543 return lldb_private::PythonString("").release();
4544 }
4545SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeMember___str__(lldb::SBTypeMember *self){
4546 lldb::SBStream description;
4547 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4548 const char *desc = description.GetData();
4549 size_t desc_len = description.GetSize();
4550 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4551 --desc_len;
4552 if (desc_len > 0)
4553 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4554 else
4555 return lldb_private::PythonString("").release();
4556 }
4557SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeMemberFunction___str__(lldb::SBTypeMemberFunction *self){
4558 lldb::SBStream description;
4559 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4560 const char *desc = description.GetData();
4561 size_t desc_len = description.GetSize();
4562 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4563 --desc_len;
4564 if (desc_len > 0)
4565 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4566 else
4567 return lldb_private::PythonString("").release();
4568 }
4569SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBType___str__(lldb::SBType *self){
4570 lldb::SBStream description;
4571 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4572 const char *desc = description.GetData();
4573 size_t desc_len = description.GetSize();
4574 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4575 --desc_len;
4576 if (desc_len > 0)
4577 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4578 else
4579 return lldb_private::PythonString("").release();
4580 }
4581SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeCategory___str__(lldb::SBTypeCategory *self){
4582 lldb::SBStream description;
4583 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4584 const char *desc = description.GetData();
4585 size_t desc_len = description.GetSize();
4586 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4587 --desc_len;
4588 if (desc_len > 0)
4589 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4590 else
4591 return lldb_private::PythonString("").release();
4592 }
4593SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeEnumMember___str__(lldb::SBTypeEnumMember *self){
4594 lldb::SBStream description;
4595 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4596 const char *desc = description.GetData();
4597 size_t desc_len = description.GetSize();
4598 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4599 --desc_len;
4600 if (desc_len > 0)
4601 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4602 else
4603 return lldb_private::PythonString("").release();
4604 }
4605SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeFilter___str__(lldb::SBTypeFilter *self){
4606 lldb::SBStream description;
4607 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4608 const char *desc = description.GetData();
4609 size_t desc_len = description.GetSize();
4610 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4611 --desc_len;
4612 if (desc_len > 0)
4613 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4614 else
4615 return lldb_private::PythonString("").release();
4616 }
4617SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeFormat___str__(lldb::SBTypeFormat *self){
4618 lldb::SBStream description;
4619 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4620 const char *desc = description.GetData();
4621 size_t desc_len = description.GetSize();
4622 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4623 --desc_len;
4624 if (desc_len > 0)
4625 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4626 else
4627 return lldb_private::PythonString("").release();
4628 }
4629SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeNameSpecifier___str__(lldb::SBTypeNameSpecifier *self){
4630 lldb::SBStream description;
4631 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4632 const char *desc = description.GetData();
4633 size_t desc_len = description.GetSize();
4634 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4635 --desc_len;
4636 if (desc_len > 0)
4637 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4638 else
4639 return lldb_private::PythonString("").release();
4640 }
4641SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeSummary___str__(lldb::SBTypeSummary *self){
4642 lldb::SBStream description;
4643 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4644 const char *desc = description.GetData();
4645 size_t desc_len = description.GetSize();
4646 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4647 --desc_len;
4648 if (desc_len > 0)
4649 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4650 else
4651 return lldb_private::PythonString("").release();
4652 }
4653SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeSynthetic___str__(lldb::SBTypeSynthetic *self){
4654 lldb::SBStream description;
4655 self->GetDescription (description, lldb::eDescriptionLevelBrief);
4656 const char *desc = description.GetData();
4657 size_t desc_len = description.GetSize();
4658 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4659 --desc_len;
4660 if (desc_len > 0)
4661 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4662 else
4663 return lldb_private::PythonString("").release();
4664 }
4665SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBValue___str__(lldb::SBValue *self){
4666 lldb::SBStream description;
4667 self->GetDescription (description);
4668 const char *desc = description.GetData();
4669 size_t desc_len = description.GetSize();
4670 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4671 --desc_len;
4672 if (desc_len > 0)
4673 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4674 else
4675 return lldb_private::PythonString("").release();
4676 }
4677SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBValueList___str__(lldb::SBValueList *self){
4678 lldb::SBStream description;
4679 const size_t n = self->GetSize();
4680 if (n)
4681 {
4682 for (size_t i=0; i<n; ++i)
4683 self->GetValueAtIndex(i).GetDescription(description);
4684 }
4685 else
4686 {
4687 description.Printf("<empty> lldb.SBValueList()");
4688 }
4689 const char *desc = description.GetData();
4690 size_t desc_len = description.GetSize();
4691 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4692 --desc_len;
4693 if (desc_len > 0)
4694 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4695 else
4696 return lldb_private::PythonString("").release();
4697 }
4698SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBWatchpoint___str__(lldb::SBWatchpoint *self){
4699 lldb::SBStream description;
4700 self->GetDescription (description, lldb::eDescriptionLevelVerbose);
4701 const char *desc = description.GetData();
4702 size_t desc_len = description.GetSize();
4703 if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r'))
4704 --desc_len;
4705 if (desc_len > 0)
4706 return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release();
4707 else
4708 return lldb_private::PythonString("").release();
4709 }
4710
4711
4712template <typename T>
4713PyObject *
4714SBTypeToSWIGWrapper (T* item);
4715
4716class PyErr_Cleaner
4717{
4718public:
4719 PyErr_Cleaner(bool print=false) :
4720 m_print(print)
4721 {
4722 }
4723
4724 ~PyErr_Cleaner()
4725 {
4726 if (PyErr_Occurred())
4727 {
4728 if(m_print && !PyErr_ExceptionMatches(PyExc_SystemExit))
4729 PyErr_Print();
4730 PyErr_Clear();
4731 }
4732 }
4733
4734private:
4735 bool m_print;
4736};
4737
4738
4739#ifdef __cplusplus201103L
4740extern "C" {
4741#endif
4742SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___or____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4743 PyObject *resultobj = 0;
4744 lldb::SymbolContextItem arg1 ;
4745 lldb::SymbolContextItem arg2 ;
4746 int val1 ;
4747 int ecode1 = 0 ;
4748 int val2 ;
4749 int ecode2 = 0 ;
4750 PyObject * obj0 = 0 ;
4751 PyObject * obj1 = 0 ;
4752 lldb::SymbolContextItem result;
4753
4754 if (!PyArg_ParseTuple(args,(char *)"OO:__or__",&obj0,&obj1)) SWIG_failgoto fail;
4755 ecode1 = SWIG_AsVal_int(obj0, &val1);
4756 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
4757 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "__or__" "', argument " "1"" of type '" "lldb::SymbolContextItem""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "__or__" "', argument "
"1"" of type '" "lldb::SymbolContextItem""'"); goto fail; } while
(0)
;
4758 }
4759 arg1 = static_cast< lldb::SymbolContextItem >(val1);
4760 ecode2 = SWIG_AsVal_int(obj1, &val2);
4761 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "__or__" "', argument " "2"" of type '" "lldb::SymbolContextItem""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "__or__" "', argument "
"2"" of type '" "lldb::SymbolContextItem""'"); goto fail; } while
(0)
;
4763 }
4764 arg2 = static_cast< lldb::SymbolContextItem >(val2);
4765 {
4766 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4767 result = (lldb::SymbolContextItem)lldb::operator |(arg1,arg2);
4768 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4769 }
4770 resultobj = SWIG_From_int(static_cast< int >(result));
4771 return resultobj;
4772fail:
4773 return NULL__null;
4774}
4775
4776
4777SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___and____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4778 PyObject *resultobj = 0;
4779 lldb::SymbolContextItem arg1 ;
4780 lldb::SymbolContextItem arg2 ;
4781 int val1 ;
4782 int ecode1 = 0 ;
4783 int val2 ;
4784 int ecode2 = 0 ;
4785 PyObject * obj0 = 0 ;
4786 PyObject * obj1 = 0 ;
4787 lldb::SymbolContextItem result;
4788
4789 if (!PyArg_ParseTuple(args,(char *)"OO:__and__",&obj0,&obj1)) SWIG_failgoto fail;
4790 ecode1 = SWIG_AsVal_int(obj0, &val1);
4791 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
4792 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "__and__" "', argument " "1"" of type '" "lldb::SymbolContextItem""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "__and__" "', argument "
"1"" of type '" "lldb::SymbolContextItem""'"); goto fail; } while
(0)
;
4793 }
4794 arg1 = static_cast< lldb::SymbolContextItem >(val1);
4795 ecode2 = SWIG_AsVal_int(obj1, &val2);
4796 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "__and__" "', argument " "2"" of type '" "lldb::SymbolContextItem""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "__and__" "', argument "
"2"" of type '" "lldb::SymbolContextItem""'"); goto fail; } while
(0)
;
4798 }
4799 arg2 = static_cast< lldb::SymbolContextItem >(val2);
4800 {
4801 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4802 result = (lldb::SymbolContextItem)lldb::operator &(arg1,arg2);
4803 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4804 }
4805 resultobj = SWIG_From_int(static_cast< int >(result));
4806 return resultobj;
4807fail:
4808 return NULL__null;
4809}
4810
4811
4812SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___invert____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4813 PyObject *resultobj = 0;
4814 lldb::SymbolContextItem arg1 ;
4815 int val1 ;
4816 int ecode1 = 0 ;
4817 PyObject * obj0 = 0 ;
4818 lldb::SymbolContextItem result;
4819
4820 if (!PyArg_ParseTuple(args,(char *)"O:__invert__",&obj0)) SWIG_failgoto fail;
4821 ecode1 = SWIG_AsVal_int(obj0, &val1);
4822 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
4823 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "__invert__" "', argument " "1"" of type '" "lldb::SymbolContextItem""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "__invert__" "', argument "
"1"" of type '" "lldb::SymbolContextItem""'"); goto fail; } while
(0)
;
4824 }
4825 arg1 = static_cast< lldb::SymbolContextItem >(val1);
4826 {
4827 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4828 result = (lldb::SymbolContextItem)lldb::operator ~(arg1);
4829 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4830 }
4831 resultobj = SWIG_From_int(static_cast< int >(result));
4832 return resultobj;
4833fail:
4834 return NULL__null;
4835}
4836
4837
4838SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___ior____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4839 PyObject *resultobj = 0;
4840 lldb::SymbolContextItem *arg1 = 0 ;
4841 lldb::SymbolContextItem arg2 ;
4842 void *argp1 = 0 ;
4843 int res1 = 0 ;
4844 int val2 ;
4845 int ecode2 = 0 ;
4846 PyObject * obj0 = 0 ;
4847 PyObject * obj1 = 0 ;
4848 lldb::SymbolContextItem *result = 0 ;
4849
4850 if (!PyArg_ParseTuple(args,(char *)"OO:__ior__",&obj0,&obj1)) SWIG_failgoto fail;
4851 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_lldb__SymbolContextItem, 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[84]
, 0, 0)
;
4852 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ior__" "', argument " "1"" of type '" "lldb::SymbolContextItem &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "__ior__" "', argument " "1"
" of type '" "lldb::SymbolContextItem &""'"); goto fail; }
while(0)
;
4854 }
4855 if (!argp1) {
4856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ior__" "', argument " "1"" of type '" "lldb::SymbolContextItem &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "__ior__" "', argument " "1"" of type '" "lldb::SymbolContextItem &"
"'"); goto fail; } while(0)
;
4857 }
4858 arg1 = reinterpret_cast< lldb::SymbolContextItem * >(argp1);
4859 ecode2 = SWIG_AsVal_int(obj1, &val2);
4860 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "__ior__" "', argument " "2"" of type '" "lldb::SymbolContextItem""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "__ior__" "', argument "
"2"" of type '" "lldb::SymbolContextItem""'"); goto fail; } while
(0)
;
4862 }
4863 arg2 = static_cast< lldb::SymbolContextItem >(val2);
4864 {
4865 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4866 result = (lldb::SymbolContextItem *) &lldb::operator |=(*arg1,arg2);
4867 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4868 }
4869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__SymbolContextItem, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[84], 0x1
| 0)
;
4870 return resultobj;
4871fail:
4872 return NULL__null;
4873}
4874
4875
4876SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___iand____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4877 PyObject *resultobj = 0;
4878 lldb::SymbolContextItem *arg1 = 0 ;
4879 lldb::SymbolContextItem arg2 ;
4880 void *argp1 = 0 ;
4881 int res1 = 0 ;
4882 int val2 ;
4883 int ecode2 = 0 ;
4884 PyObject * obj0 = 0 ;
4885 PyObject * obj1 = 0 ;
4886 lldb::SymbolContextItem *result = 0 ;
4887
4888 if (!PyArg_ParseTuple(args,(char *)"OO:__iand__",&obj0,&obj1)) SWIG_failgoto fail;
4889 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_lldb__SymbolContextItem, 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[84]
, 0, 0)
;
4890 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__iand__" "', argument " "1"" of type '" "lldb::SymbolContextItem &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "__iand__" "', argument " "1"
" of type '" "lldb::SymbolContextItem &""'"); goto fail; }
while(0)
;
4892 }
4893 if (!argp1) {
4894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__iand__" "', argument " "1"" of type '" "lldb::SymbolContextItem &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "__iand__" "', argument " "1"" of type '" "lldb::SymbolContextItem &"
"'"); goto fail; } while(0)
;
4895 }
4896 arg1 = reinterpret_cast< lldb::SymbolContextItem * >(argp1);
4897 ecode2 = SWIG_AsVal_int(obj1, &val2);
4898 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "__iand__" "', argument " "2"" of type '" "lldb::SymbolContextItem""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "__iand__" "', argument "
"2"" of type '" "lldb::SymbolContextItem""'"); goto fail; } while
(0)
;
4900 }
4901 arg2 = static_cast< lldb::SymbolContextItem >(val2);
4902 {
4903 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4904 result = (lldb::SymbolContextItem *) &lldb::operator &=(*arg1,arg2);
4905 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4906 }
4907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__SymbolContextItem, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[84], 0x1
| 0)
;
4908 return resultobj;
4909fail:
4910 return NULL__null;
4911}
4912
4913
4914SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___or____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4915 PyObject *resultobj = 0;
4916 lldb::FunctionNameType arg1 ;
4917 lldb::FunctionNameType arg2 ;
4918 int val1 ;
4919 int ecode1 = 0 ;
4920 int val2 ;
4921 int ecode2 = 0 ;
4922 PyObject * obj0 = 0 ;
4923 PyObject * obj1 = 0 ;
4924 lldb::FunctionNameType result;
4925
4926 if (!PyArg_ParseTuple(args,(char *)"OO:__or__",&obj0,&obj1)) SWIG_failgoto fail;
4927 ecode1 = SWIG_AsVal_int(obj0, &val1);
4928 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
4929 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "__or__" "', argument " "1"" of type '" "lldb::FunctionNameType""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "__or__" "', argument "
"1"" of type '" "lldb::FunctionNameType""'"); goto fail; } while
(0)
;
4930 }
4931 arg1 = static_cast< lldb::FunctionNameType >(val1);
4932 ecode2 = SWIG_AsVal_int(obj1, &val2);
4933 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "__or__" "', argument " "2"" of type '" "lldb::FunctionNameType""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "__or__" "', argument "
"2"" of type '" "lldb::FunctionNameType""'"); goto fail; } while
(0)
;
4935 }
4936 arg2 = static_cast< lldb::FunctionNameType >(val2);
4937 {
4938 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4939 result = (lldb::FunctionNameType)lldb::operator |(arg1,arg2);
4940 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4941 }
4942 resultobj = SWIG_From_int(static_cast< int >(result));
4943 return resultobj;
4944fail:
4945 return NULL__null;
4946}
4947
4948
4949SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___and____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4950 PyObject *resultobj = 0;
4951 lldb::FunctionNameType arg1 ;
4952 lldb::FunctionNameType arg2 ;
4953 int val1 ;
4954 int ecode1 = 0 ;
4955 int val2 ;
4956 int ecode2 = 0 ;
4957 PyObject * obj0 = 0 ;
4958 PyObject * obj1 = 0 ;
4959 lldb::FunctionNameType result;
4960
4961 if (!PyArg_ParseTuple(args,(char *)"OO:__and__",&obj0,&obj1)) SWIG_failgoto fail;
4962 ecode1 = SWIG_AsVal_int(obj0, &val1);
4963 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
4964 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "__and__" "', argument " "1"" of type '" "lldb::FunctionNameType""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "__and__" "', argument "
"1"" of type '" "lldb::FunctionNameType""'"); goto fail; } while
(0)
;
4965 }
4966 arg1 = static_cast< lldb::FunctionNameType >(val1);
4967 ecode2 = SWIG_AsVal_int(obj1, &val2);
4968 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "__and__" "', argument " "2"" of type '" "lldb::FunctionNameType""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "__and__" "', argument "
"2"" of type '" "lldb::FunctionNameType""'"); goto fail; } while
(0)
;
4970 }
4971 arg2 = static_cast< lldb::FunctionNameType >(val2);
4972 {
4973 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
4974 result = (lldb::FunctionNameType)lldb::operator &(arg1,arg2);
4975 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
4976 }
4977 resultobj = SWIG_From_int(static_cast< int >(result));
4978 return resultobj;
4979fail:
4980 return NULL__null;
4981}
4982
4983
4984SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___invert____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4985 PyObject *resultobj = 0;
4986 lldb::FunctionNameType arg1 ;
4987 int val1 ;
4988 int ecode1 = 0 ;
4989 PyObject * obj0 = 0 ;
4990 lldb::FunctionNameType result;
4991
4992 if (!PyArg_ParseTuple(args,(char *)"O:__invert__",&obj0)) SWIG_failgoto fail;
4993 ecode1 = SWIG_AsVal_int(obj0, &val1);
4994 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
4995 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "__invert__" "', argument " "1"" of type '" "lldb::FunctionNameType""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "__invert__" "', argument "
"1"" of type '" "lldb::FunctionNameType""'"); goto fail; } while
(0)
;
4996 }
4997 arg1 = static_cast< lldb::FunctionNameType >(val1);
4998 {
4999 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5000 result = (lldb::FunctionNameType)lldb::operator ~(arg1);
5001 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5002 }
5003 resultobj = SWIG_From_int(static_cast< int >(result));
5004 return resultobj;
5005fail:
5006 return NULL__null;
5007}
5008
5009
5010SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___ior____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5011 PyObject *resultobj = 0;
5012 lldb::FunctionNameType *arg1 = 0 ;
5013 lldb::FunctionNameType arg2 ;
5014 void *argp1 = 0 ;
5015 int res1 = 0 ;
5016 int val2 ;
5017 int ecode2 = 0 ;
5018 PyObject * obj0 = 0 ;
5019 PyObject * obj1 = 0 ;
5020 lldb::FunctionNameType *result = 0 ;
5021
5022 if (!PyArg_ParseTuple(args,(char *)"OO:__ior__",&obj0,&obj1)) SWIG_failgoto fail;
5023 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_lldb__FunctionNameType, 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0, 0)
;
5024 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ior__" "', argument " "1"" of type '" "lldb::FunctionNameType &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "__ior__" "', argument " "1"
" of type '" "lldb::FunctionNameType &""'"); goto fail; }
while(0)
;
5026 }
5027 if (!argp1) {
5028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ior__" "', argument " "1"" of type '" "lldb::FunctionNameType &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "__ior__" "', argument " "1"" of type '" "lldb::FunctionNameType &"
"'"); goto fail; } while(0)
;
5029 }
5030 arg1 = reinterpret_cast< lldb::FunctionNameType * >(argp1);
5031 ecode2 = SWIG_AsVal_int(obj1, &val2);
5032 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5033 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "__ior__" "', argument " "2"" of type '" "lldb::FunctionNameType""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "__ior__" "', argument "
"2"" of type '" "lldb::FunctionNameType""'"); goto fail; } while
(0)
;
5034 }
5035 arg2 = static_cast< lldb::FunctionNameType >(val2);
5036 {
5037 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5038 result = (lldb::FunctionNameType *) &lldb::operator |=(*arg1,arg2);
5039 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5040 }
5041 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__FunctionNameType, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0x1
| 0)
;
5042 return resultobj;
5043fail:
5044 return NULL__null;
5045}
5046
5047
5048SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___iand____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5049 PyObject *resultobj = 0;
5050 lldb::FunctionNameType *arg1 = 0 ;
5051 lldb::FunctionNameType arg2 ;
5052 void *argp1 = 0 ;
5053 int res1 = 0 ;
5054 int val2 ;
5055 int ecode2 = 0 ;
5056 PyObject * obj0 = 0 ;
5057 PyObject * obj1 = 0 ;
5058 lldb::FunctionNameType *result = 0 ;
5059
5060 if (!PyArg_ParseTuple(args,(char *)"OO:__iand__",&obj0,&obj1)) SWIG_failgoto fail;
5061 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_lldb__FunctionNameType, 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0, 0)
;
5062 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__iand__" "', argument " "1"" of type '" "lldb::FunctionNameType &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "__iand__" "', argument " "1"
" of type '" "lldb::FunctionNameType &""'"); goto fail; }
while(0)
;
5064 }
5065 if (!argp1) {
5066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__iand__" "', argument " "1"" of type '" "lldb::FunctionNameType &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "__iand__" "', argument " "1"" of type '" "lldb::FunctionNameType &"
"'"); goto fail; } while(0)
;
5067 }
5068 arg1 = reinterpret_cast< lldb::FunctionNameType * >(argp1);
5069 ecode2 = SWIG_AsVal_int(obj1, &val2);
5070 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "__iand__" "', argument " "2"" of type '" "lldb::FunctionNameType""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "__iand__" "', argument "
"2"" of type '" "lldb::FunctionNameType""'"); goto fail; } while
(0)
;
5072 }
5073 arg2 = static_cast< lldb::FunctionNameType >(val2);
5074 {
5075 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5076 result = (lldb::FunctionNameType *) &lldb::operator &=(*arg1,arg2);
5077 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5078 }
5079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__FunctionNameType, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0x1
| 0)
;
5080 return resultobj;
5081fail:
5082 return NULL__null;
5083}
5084
5085
5086SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___or____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5087 PyObject *resultobj = 0;
5088 lldb::TypeClass arg1 ;
5089 lldb::TypeClass arg2 ;
5090 int val1 ;
5091 int ecode1 = 0 ;
5092 int val2 ;
5093 int ecode2 = 0 ;
5094 PyObject * obj0 = 0 ;
5095 PyObject * obj1 = 0 ;
5096 lldb::TypeClass result;
5097
5098 if (!PyArg_ParseTuple(args,(char *)"OO:__or__",&obj0,&obj1)) SWIG_failgoto fail;
5099 ecode1 = SWIG_AsVal_int(obj0, &val1);
5100 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
5101 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "__or__" "', argument " "1"" of type '" "lldb::TypeClass""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "__or__" "', argument "
"1"" of type '" "lldb::TypeClass""'"); goto fail; } while(0)
;
5102 }
5103 arg1 = static_cast< lldb::TypeClass >(val1);
5104 ecode2 = SWIG_AsVal_int(obj1, &val2);
5105 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "__or__" "', argument " "2"" of type '" "lldb::TypeClass""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "__or__" "', argument "
"2"" of type '" "lldb::TypeClass""'"); goto fail; } while(0)
;
5107 }
5108 arg2 = static_cast< lldb::TypeClass >(val2);
5109 {
5110 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5111 result = (lldb::TypeClass)lldb::operator |(arg1,arg2);
5112 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5113 }
5114 resultobj = SWIG_From_int(static_cast< int >(result));
5115 return resultobj;
5116fail:
5117 return NULL__null;
5118}
5119
5120
5121SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___or__(PyObject *self, PyObject *args) {
5122 Py_ssize_t argc;
5123 PyObject *argv[3] = {
5124 0
5125 };
5126 Py_ssize_t ii;
5127
5128 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5129 argc = args ? PyObject_LengthPyObject_Size(args) : 0;
5130 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5131 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5132 }
5133 if (argc == 2) {
5134 int _v;
5135 {
5136 int res = SWIG_AsVal_int(argv[0], NULL__null);
5137 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5138 }
5139 if (_v) {
5140 {
5141 int res = SWIG_AsVal_int(argv[1], NULL__null);
5142 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5143 }
5144 if (_v) {
5145 return _wrap___or____SWIG_0(self, args);
5146 }
5147 }
5148 }
5149 if (argc == 2) {
5150 int _v;
5151 {
5152 int res = SWIG_AsVal_int(argv[0], NULL__null);
5153 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5154 }
5155 if (_v) {
5156 {
5157 int res = SWIG_AsVal_int(argv[1], NULL__null);
5158 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5159 }
5160 if (_v) {
5161 return _wrap___or____SWIG_1(self, args);
5162 }
5163 }
5164 }
5165 if (argc == 2) {
5166 int _v;
5167 {
5168 int res = SWIG_AsVal_int(argv[0], NULL__null);
5169 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5170 }
5171 if (_v) {
5172 {
5173 int res = SWIG_AsVal_int(argv[1], NULL__null);
5174 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5175 }
5176 if (_v) {
5177 return _wrap___or____SWIG_2(self, args);
5178 }
5179 }
5180 }
5181
5182fail:
5183 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
5184 return Py_NotImplemented(&_Py_NotImplementedStruct);
5185}
5186
5187
5188SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___and____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5189 PyObject *resultobj = 0;
5190 lldb::TypeClass arg1 ;
5191 lldb::TypeClass arg2 ;
5192 int val1 ;
5193 int ecode1 = 0 ;
5194 int val2 ;
5195 int ecode2 = 0 ;
5196 PyObject * obj0 = 0 ;
5197 PyObject * obj1 = 0 ;
5198 lldb::TypeClass result;
5199
5200 if (!PyArg_ParseTuple(args,(char *)"OO:__and__",&obj0,&obj1)) SWIG_failgoto fail;
5201 ecode1 = SWIG_AsVal_int(obj0, &val1);
5202 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
5203 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "__and__" "', argument " "1"" of type '" "lldb::TypeClass""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "__and__" "', argument "
"1"" of type '" "lldb::TypeClass""'"); goto fail; } while(0)
;
5204 }
5205 arg1 = static_cast< lldb::TypeClass >(val1);
5206 ecode2 = SWIG_AsVal_int(obj1, &val2);
5207 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "__and__" "', argument " "2"" of type '" "lldb::TypeClass""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "__and__" "', argument "
"2"" of type '" "lldb::TypeClass""'"); goto fail; } while(0)
;
5209 }
5210 arg2 = static_cast< lldb::TypeClass >(val2);
5211 {
5212 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5213 result = (lldb::TypeClass)lldb::operator &(arg1,arg2);
5214 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5215 }
5216 resultobj = SWIG_From_int(static_cast< int >(result));
5217 return resultobj;
5218fail:
5219 return NULL__null;
5220}
5221
5222
5223SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___and__(PyObject *self, PyObject *args) {
5224 Py_ssize_t argc;
5225 PyObject *argv[3] = {
5226 0
5227 };
5228 Py_ssize_t ii;
5229
5230 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5231 argc = args ? PyObject_LengthPyObject_Size(args) : 0;
5232 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5233 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5234 }
5235 if (argc == 2) {
5236 int _v;
5237 {
5238 int res = SWIG_AsVal_int(argv[0], NULL__null);
5239 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5240 }
5241 if (_v) {
5242 {
5243 int res = SWIG_AsVal_int(argv[1], NULL__null);
5244 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5245 }
5246 if (_v) {
5247 return _wrap___and____SWIG_0(self, args);
5248 }
5249 }
5250 }
5251 if (argc == 2) {
5252 int _v;
5253 {
5254 int res = SWIG_AsVal_int(argv[0], NULL__null);
5255 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5256 }
5257 if (_v) {
5258 {
5259 int res = SWIG_AsVal_int(argv[1], NULL__null);
5260 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5261 }
5262 if (_v) {
5263 return _wrap___and____SWIG_1(self, args);
5264 }
5265 }
5266 }
5267 if (argc == 2) {
5268 int _v;
5269 {
5270 int res = SWIG_AsVal_int(argv[0], NULL__null);
5271 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5272 }
5273 if (_v) {
5274 {
5275 int res = SWIG_AsVal_int(argv[1], NULL__null);
5276 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5277 }
5278 if (_v) {
5279 return _wrap___and____SWIG_2(self, args);
5280 }
5281 }
5282 }
5283
5284fail:
5285 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
5286 return Py_NotImplemented(&_Py_NotImplementedStruct);
5287}
5288
5289
5290SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___invert____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5291 PyObject *resultobj = 0;
5292 lldb::TypeClass arg1 ;
5293 int val1 ;
5294 int ecode1 = 0 ;
5295 PyObject * obj0 = 0 ;
5296 lldb::TypeClass result;
5297
5298 if (!PyArg_ParseTuple(args,(char *)"O:__invert__",&obj0)) SWIG_failgoto fail;
5299 ecode1 = SWIG_AsVal_int(obj0, &val1);
5300 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
5301 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "__invert__" "', argument " "1"" of type '" "lldb::TypeClass""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "__invert__" "', argument "
"1"" of type '" "lldb::TypeClass""'"); goto fail; } while(0)
;
5302 }
5303 arg1 = static_cast< lldb::TypeClass >(val1);
5304 {
5305 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5306 result = (lldb::TypeClass)lldb::operator ~(arg1);
5307 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5308 }
5309 resultobj = SWIG_From_int(static_cast< int >(result));
5310 return resultobj;
5311fail:
5312 return NULL__null;
5313}
5314
5315
5316SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___invert__(PyObject *self, PyObject *args) {
5317 Py_ssize_t argc;
5318 PyObject *argv[2] = {
5319 0
5320 };
5321 Py_ssize_t ii;
5322
5323 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5324 argc = args ? PyObject_LengthPyObject_Size(args) : 0;
5325 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
5326 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5327 }
5328 if (argc == 1) {
5329 int _v;
5330 {
5331 int res = SWIG_AsVal_int(argv[0], NULL__null);
5332 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5333 }
5334 if (_v) {
5335 return _wrap___invert____SWIG_0(self, args);
5336 }
5337 }
5338 if (argc == 1) {
5339 int _v;
5340 {
5341 int res = SWIG_AsVal_int(argv[0], NULL__null);
5342 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5343 }
5344 if (_v) {
5345 return _wrap___invert____SWIG_1(self, args);
5346 }
5347 }
5348 if (argc == 1) {
5349 int _v;
5350 {
5351 int res = SWIG_AsVal_int(argv[0], NULL__null);
5352 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5353 }
5354 if (_v) {
5355 return _wrap___invert____SWIG_2(self, args);
5356 }
5357 }
5358
5359fail:
5360 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function '__invert__'.\n"
5361 " Possible C/C++ prototypes are:\n"
5362 " lldb::operator ~(lldb::SymbolContextItem)\n"
5363 " lldb::operator ~(lldb::FunctionNameType)\n"
5364 " lldb::operator ~(lldb::TypeClass)\n");
5365 return 0;
5366}
5367
5368
5369SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___ior____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5370 PyObject *resultobj = 0;
5371 lldb::TypeClass *arg1 = 0 ;
5372 lldb::TypeClass arg2 ;
5373 void *argp1 = 0 ;
5374 int res1 = 0 ;
5375 int val2 ;
5376 int ecode2 = 0 ;
5377 PyObject * obj0 = 0 ;
5378 PyObject * obj1 = 0 ;
5379 lldb::TypeClass *result = 0 ;
5380
5381 if (!PyArg_ParseTuple(args,(char *)"OO:__ior__",&obj0,&obj1)) SWIG_failgoto fail;
5382 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_lldb__TypeClass, 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[85]
, 0, 0)
;
5383 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__ior__" "', argument " "1"" of type '" "lldb::TypeClass &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "__ior__" "', argument " "1"
" of type '" "lldb::TypeClass &""'"); goto fail; } while(
0)
;
5385 }
5386 if (!argp1) {
5387 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__ior__" "', argument " "1"" of type '" "lldb::TypeClass &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "__ior__" "', argument " "1"" of type '" "lldb::TypeClass &"
"'"); goto fail; } while(0)
;
5388 }
5389 arg1 = reinterpret_cast< lldb::TypeClass * >(argp1);
5390 ecode2 = SWIG_AsVal_int(obj1, &val2);
5391 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "__ior__" "', argument " "2"" of type '" "lldb::TypeClass""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "__ior__" "', argument "
"2"" of type '" "lldb::TypeClass""'"); goto fail; } while(0)
;
5393 }
5394 arg2 = static_cast< lldb::TypeClass >(val2);
5395 {
5396 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5397 result = (lldb::TypeClass *) &lldb::operator |=(*arg1,arg2);
5398 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5399 }
5400 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__TypeClass, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[85], 0x1
| 0)
;
5401 return resultobj;
5402fail:
5403 return NULL__null;
5404}
5405
5406
5407SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___ior__(PyObject *self, PyObject *args) {
5408 Py_ssize_t argc;
5409 PyObject *argv[3] = {
5410 0
5411 };
5412 Py_ssize_t ii;
5413
5414 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5415 argc = args ? PyObject_LengthPyObject_Size(args) : 0;
5416 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5417 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5418 }
5419 if (argc == 2) {
5420 int _v;
5421 void *vptr = 0;
5422 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_lldb__SymbolContextItem, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[84
], 0, 0)
;
5423 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5424 if (_v) {
5425 {
5426 int res = SWIG_AsVal_int(argv[1], NULL__null);
5427 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5428 }
5429 if (_v) {
5430 return _wrap___ior____SWIG_0(self, args);
5431 }
5432 }
5433 }
5434 if (argc == 2) {
5435 int _v;
5436 void *vptr = 0;
5437 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_lldb__FunctionNameType, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[8
], 0, 0)
;
5438 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5439 if (_v) {
5440 {
5441 int res = SWIG_AsVal_int(argv[1], NULL__null);
5442 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5443 }
5444 if (_v) {
5445 return _wrap___ior____SWIG_1(self, args);
5446 }
5447 }
5448 }
5449 if (argc == 2) {
5450 int _v;
5451 void *vptr = 0;
5452 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_lldb__TypeClass, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[85
], 0, 0)
;
5453 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5454 if (_v) {
5455 {
5456 int res = SWIG_AsVal_int(argv[1], NULL__null);
5457 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5458 }
5459 if (_v) {
5460 return _wrap___ior____SWIG_2(self, args);
5461 }
5462 }
5463 }
5464
5465fail:
5466 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function '__ior__'.\n"
5467 " Possible C/C++ prototypes are:\n"
5468 " lldb::operator |=(lldb::SymbolContextItem &,lldb::SymbolContextItem)\n"
5469 " lldb::operator |=(lldb::FunctionNameType &,lldb::FunctionNameType)\n"
5470 " lldb::operator |=(lldb::TypeClass &,lldb::TypeClass)\n");
5471 return 0;
5472}
5473
5474
5475SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___iand____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5476 PyObject *resultobj = 0;
5477 lldb::TypeClass *arg1 = 0 ;
5478 lldb::TypeClass arg2 ;
5479 void *argp1 = 0 ;
5480 int res1 = 0 ;
5481 int val2 ;
5482 int ecode2 = 0 ;
5483 PyObject * obj0 = 0 ;
5484 PyObject * obj1 = 0 ;
5485 lldb::TypeClass *result = 0 ;
5486
5487 if (!PyArg_ParseTuple(args,(char *)"OO:__iand__",&obj0,&obj1)) SWIG_failgoto fail;
5488 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_lldb__TypeClass, 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[85]
, 0, 0)
;
5489 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__iand__" "', argument " "1"" of type '" "lldb::TypeClass &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "__iand__" "', argument " "1"
" of type '" "lldb::TypeClass &""'"); goto fail; } while(
0)
;
5491 }
5492 if (!argp1) {
5493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__iand__" "', argument " "1"" of type '" "lldb::TypeClass &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "__iand__" "', argument " "1"" of type '" "lldb::TypeClass &"
"'"); goto fail; } while(0)
;
5494 }
5495 arg1 = reinterpret_cast< lldb::TypeClass * >(argp1);
5496 ecode2 = SWIG_AsVal_int(obj1, &val2);
5497 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "__iand__" "', argument " "2"" of type '" "lldb::TypeClass""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "__iand__" "', argument "
"2"" of type '" "lldb::TypeClass""'"); goto fail; } while(0)
;
5499 }
5500 arg2 = static_cast< lldb::TypeClass >(val2);
5501 {
5502 SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow;
5503 result = (lldb::TypeClass *) &lldb::operator &=(*arg1,arg2);
5504 SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end();
5505 }
5506 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__TypeClass, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[85], 0x1
| 0)
;
5507 return resultobj;
5508fail:
5509 return NULL__null;
5510}
5511
5512
5513SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap___iand__(PyObject *self, PyObject *args) {
5514 Py_ssize_t argc;
5515 PyObject *argv[3] = {
5516 0
5517 };
5518 Py_ssize_t ii;
5519
5520 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5521 argc = args ? PyObject_LengthPyObject_Size(args) : 0;
5522 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5523 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5524 }
5525 if (argc == 2) {
5526 int _v;
5527 void *vptr = 0;