File: | build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp |
Warning: | line 37308, column 3 Value stored to 'resultobj' is never read |
Press '?' to see keyboard shortcuts
Keyboard shortcuts:
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). |
3 | * Version 3.0.12 |
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 */ |
22 | template<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); |
31 | public: |
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 | |
38 | template <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) |
340 | SWIGINTERNINLINEstatic __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 | } |
343 | SWIGINTERNINLINEstatic __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 |
355 | extern "C" { |
356 | #endif |
357 | |
358 | typedef void *(*swig_converter_func)(void *, int *); |
359 | typedef struct swig_type_info *(*swig_dycast_func)(void **); |
360 | |
361 | /* Structure to store information on one type */ |
362 | typedef 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 */ |
372 | typedef 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.*/ |
382 | typedef 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 | */ |
398 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
399 | SWIG_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 | */ |
413 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
414 | SWIG_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 | */ |
432 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
433 | SWIG_TypeEquiv(const char *nb, const char *tb) { |
434 | return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; |
435 | } |
436 | |
437 | /* |
438 | Check the typename |
439 | */ |
440 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info * |
441 | SWIG_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 | */ |
467 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info * |
468 | SWIG_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 | */ |
494 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline void * |
495 | SWIG_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 | */ |
502 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
503 | SWIG_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 | */ |
516 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char * |
517 | SWIG_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 | */ |
525 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
526 | SWIG_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 | */ |
546 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
547 | SWIG_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 | } |
562 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
563 | SWIG_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 | */ |
576 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
577 | SWIG_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 | */ |
621 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
622 | SWIG_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 | */ |
650 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
651 | SWIG_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 | */ |
666 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
667 | SWIG_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 | */ |
694 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
695 | SWIG_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 | |
705 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
706 | SWIG_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 | |
718 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
719 | SWIG_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 | |
733 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
734 | SWIG_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) | (14 << 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)((((((PyObject*)(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) | (14 << 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 | */ |
803 | SWIGINTERNstatic __attribute__ ((__unused__)) char* |
804 | SWIG_Python_str_AsChar(PyObject *str) |
805 | { |
806 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 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) | (14 << 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 | |
828 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
829 | SWIG_Python_str_FromChar(const char *c) |
830 | { |
831 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 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) | (14 << 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) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
849 | |
850 | #ifndef SWIG_PYBUFFER_SIZE |
851 | # define SWIG_PYBUFFER_SIZE 1024 |
852 | #endif |
853 | |
854 | static PyObject * |
855 | PyString_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) | (14 << 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) | (14 << 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) | (14 << 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) | (14 << 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) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
903 | static |
904 | PyObject *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) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000 && !defined(PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1)) |
916 | typedef 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) |
919 | typedef inquiry lenfunc; |
920 | typedef intargfunc ssizeargfunc; |
921 | typedef intintargfunc ssizessizeargfunc; |
922 | typedef intobjargproc ssizeobjargproc; |
923 | typedef intintobjargproc ssizessizeobjargproc; |
924 | typedef getreadbufferproc readbufferproc; |
925 | typedef getwritebufferproc writebufferproc; |
926 | typedef getsegcountproc segcountproc; |
927 | typedef getcharbufferproc charbufferproc; |
928 | static 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) | (14 << 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) | (14 << 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) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
956 | typedef 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) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
967 | typedef 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) | (14 << 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 | #define Py_hash_tlong long |
981 | #endif |
982 | |
983 | /* ----------------------------------------------------------------------------- |
984 | * error manipulation |
985 | * ----------------------------------------------------------------------------- */ |
986 | |
987 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
988 | SWIG_Python_ErrorType(int code) { |
989 | PyObject* type = 0; |
990 | switch(code) { |
991 | case SWIG_MemoryError-12: |
992 | type = PyExc_MemoryError; |
993 | break; |
994 | case SWIG_IOError-2: |
995 | type = PyExc_IOError; |
996 | break; |
997 | case SWIG_RuntimeError-3: |
998 | type = PyExc_RuntimeError; |
999 | break; |
1000 | case SWIG_IndexError-4: |
1001 | type = PyExc_IndexError; |
1002 | break; |
1003 | case SWIG_TypeError-5: |
1004 | type = PyExc_TypeError; |
1005 | break; |
1006 | case SWIG_DivisionByZero-6: |
1007 | type = PyExc_ZeroDivisionError; |
1008 | break; |
1009 | case SWIG_OverflowError-7: |
1010 | type = PyExc_OverflowError; |
1011 | break; |
1012 | case SWIG_SyntaxError-8: |
1013 | type = PyExc_SyntaxError; |
1014 | break; |
1015 | case SWIG_ValueError-9: |
1016 | type = PyExc_ValueError; |
1017 | break; |
1018 | case SWIG_SystemError-10: |
1019 | type = PyExc_SystemError; |
1020 | break; |
1021 | case SWIG_AttributeError-11: |
1022 | type = PyExc_AttributeError; |
1023 | break; |
1024 | default: |
1025 | type = PyExc_RuntimeError; |
1026 | } |
1027 | return type; |
1028 | } |
1029 | |
1030 | |
1031 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1032 | SWIG_Python_AddErrorMsg(const char* mesg) |
1033 | { |
1034 | PyObject *type = 0; |
1035 | PyObject *value = 0; |
1036 | PyObject *traceback = 0; |
1037 | |
1038 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); |
1039 | if (value) { |
1040 | char *tmp; |
1041 | PyObject *old_str = PyObject_Str(value); |
1042 | PyErr_Clear(); |
1043 | Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt ++); } while (0); |
1044 | |
1045 | PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); |
1046 | SWIG_Python_str_DelForPy3(tmp); |
1047 | 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); |
1048 | Py_DECREF(value)do { if ( --((PyObject*)(value))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(value)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(value)))); } while (0); |
1049 | } else { |
1050 | PyErr_SetString(PyExc_RuntimeError, mesg); |
1051 | } |
1052 | } |
1053 | |
1054 | #if defined(SWIG_PYTHON_NO_THREADS) |
1055 | # if defined(SWIG_PYTHON_THREADS) |
1056 | # undef SWIG_PYTHON_THREADS |
1057 | # endif |
1058 | #endif |
1059 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ |
1060 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) |
1061 | # if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ |
1062 | # define SWIG_PYTHON_USE_GIL |
1063 | # endif |
1064 | # endif |
1065 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ |
1066 | # ifndef SWIG_PYTHON_INITIALIZE_THREADSPyEval_InitThreads() |
1067 | # define SWIG_PYTHON_INITIALIZE_THREADSPyEval_InitThreads() PyEval_InitThreads() |
1068 | # endif |
1069 | # ifdef __cplusplus201103L /* C++ code */ |
1070 | class SWIG_Python_Thread_Block { |
1071 | bool status; |
1072 | PyGILState_STATE state; |
1073 | public: |
1074 | void end() { if (status) { PyGILState_Release(state); status = false;} } |
1075 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} |
1076 | ~SWIG_Python_Thread_Block() { end(); } |
1077 | }; |
1078 | class SWIG_Python_Thread_Allow { |
1079 | bool status; |
1080 | PyThreadState *save; |
1081 | public: |
1082 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} |
1083 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} |
1084 | ~SWIG_Python_Thread_Allow() { end(); } |
1085 | }; |
1086 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block SWIG_Python_Thread_Block _swig_thread_block |
1087 | # define SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end() _swig_thread_block.end() |
1088 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow SWIG_Python_Thread_Allow _swig_thread_allow |
1089 | # define SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end() _swig_thread_allow.end() |
1090 | # else /* C code */ |
1091 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block PyGILState_STATE _swig_thread_block = PyGILState_Ensure() |
1092 | # define SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end() PyGILState_Release(_swig_thread_block) |
1093 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow PyThreadState *_swig_thread_allow = PyEval_SaveThread() |
1094 | # define SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end() PyEval_RestoreThread(_swig_thread_allow) |
1095 | # endif |
1096 | # else /* Old thread way, not implemented, user must provide it */ |
1097 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADSPyEval_InitThreads()) |
1098 | # define SWIG_PYTHON_INITIALIZE_THREADSPyEval_InitThreads() |
1099 | # endif |
1100 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block) |
1101 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block |
1102 | # endif |
1103 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end()) |
1104 | # define SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end() |
1105 | # endif |
1106 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow) |
1107 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow |
1108 | # endif |
1109 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end()) |
1110 | # define SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end() |
1111 | # endif |
1112 | # endif |
1113 | #else /* No thread support */ |
1114 | # define SWIG_PYTHON_INITIALIZE_THREADSPyEval_InitThreads() |
1115 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block |
1116 | # define SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end() |
1117 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow |
1118 | # define SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end() |
1119 | #endif |
1120 | |
1121 | /* ----------------------------------------------------------------------------- |
1122 | * Python API portion that goes into the runtime |
1123 | * ----------------------------------------------------------------------------- */ |
1124 | |
1125 | #ifdef __cplusplus201103L |
1126 | extern "C" { |
1127 | #endif |
1128 | |
1129 | /* ----------------------------------------------------------------------------- |
1130 | * Constant declarations |
1131 | * ----------------------------------------------------------------------------- */ |
1132 | |
1133 | /* Constant Types */ |
1134 | #define SWIG_PY_POINTER4 4 |
1135 | #define SWIG_PY_BINARY5 5 |
1136 | |
1137 | /* Constant information structure */ |
1138 | typedef struct swig_const_info { |
1139 | int type; |
1140 | char *name; |
1141 | long lvalue; |
1142 | double dvalue; |
1143 | void *pvalue; |
1144 | swig_type_info **ptype; |
1145 | } swig_const_info; |
1146 | |
1147 | |
1148 | /* ----------------------------------------------------------------------------- |
1149 | * Wrapper of PyInstanceMethod_New() used in Python 3 |
1150 | * It is exported to the generated module, used for -fastproxy |
1151 | * ----------------------------------------------------------------------------- */ |
1152 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1153 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) |
1154 | { |
1155 | return PyInstanceMethod_New(func); |
1156 | } |
1157 | #else |
1158 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func)) |
1159 | { |
1160 | return NULL__null; |
1161 | } |
1162 | #endif |
1163 | |
1164 | #ifdef __cplusplus201103L |
1165 | } |
1166 | #endif |
1167 | |
1168 | |
1169 | /* ----------------------------------------------------------------------------- |
1170 | * pyrun.swg |
1171 | * |
1172 | * This file contains the runtime support for Python modules |
1173 | * and includes code for managing global variables and pointer |
1174 | * type checking. |
1175 | * |
1176 | * ----------------------------------------------------------------------------- */ |
1177 | |
1178 | /* Common SWIG API */ |
1179 | |
1180 | /* for raw pointers */ |
1181 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) |
1182 | #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) |
1183 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) |
1184 | |
1185 | #ifdef SWIGPYTHON_BUILTIN |
1186 | #define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) |
1187 | #else |
1188 | #define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags) |
1189 | #endif |
1190 | |
1191 | #define SWIG_InternalNewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags) |
1192 | |
1193 | #define SWIG_CheckImplicit(ty)SWIG_Python_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) |
1194 | #define SWIG_AcquirePtr(ptr, src)SWIG_Python_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) |
1195 | #define swig_owntypeint int |
1196 | |
1197 | /* for raw packed data */ |
1198 | #define SWIG_ConvertPacked(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) |
1199 | #define SWIG_NewPackedObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) |
1200 | |
1201 | /* for class or struct pointers */ |
1202 | #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) |
1203 | #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) |
1204 | |
1205 | /* for C or C++ function pointers */ |
1206 | #define SWIG_ConvertFunctionPtr(obj, pptr, type)SWIG_Python_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) |
1207 | #define SWIG_NewFunctionPtrObj(ptr, type)SWIG_Python_NewPointerObj(__null, ptr, type, 0) SWIG_Python_NewPointerObj(NULL__null, ptr, type, 0) |
1208 | |
1209 | /* for C++ member pointers, ie, member methods */ |
1210 | #define SWIG_ConvertMember(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) |
1211 | #define SWIG_NewMemberObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) |
1212 | |
1213 | |
1214 | /* Runtime API */ |
1215 | |
1216 | #define SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata) SWIG_Python_GetModule(clientdata) |
1217 | #define SWIG_SetModule(clientdata, pointer)SWIG_Python_SetModule(pointer) SWIG_Python_SetModule(pointer) |
1218 | #define SWIG_NewClientData(obj)SwigPyClientData_New(obj) SwigPyClientData_New(obj) |
1219 | |
1220 | #define SWIG_SetErrorObjSWIG_Python_SetErrorObj SWIG_Python_SetErrorObj |
1221 | #define SWIG_SetErrorMsgSWIG_Python_SetErrorMsg SWIG_Python_SetErrorMsg |
1222 | #define SWIG_ErrorType(code)SWIG_Python_ErrorType(code) SWIG_Python_ErrorType(code) |
1223 | #define SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code)SWIG_Python_ErrorType(code), msg) |
1224 | #define SWIG_failgoto fail goto fail |
1225 | |
1226 | |
1227 | /* Runtime API implementation */ |
1228 | |
1229 | /* Error manipulation */ |
1230 | |
1231 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1232 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { |
1233 | SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block; |
1234 | PyErr_SetObject(errtype, obj); |
1235 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1236 | SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end(); |
1237 | } |
1238 | |
1239 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1240 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { |
1241 | SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block; |
1242 | PyErr_SetString(errtype, msg); |
1243 | SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end(); |
1244 | } |
1245 | |
1246 | #define SWIG_Python_Raise(obj, type, desc)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
1247 | |
1248 | /* Set a constant value */ |
1249 | |
1250 | #if defined(SWIGPYTHON_BUILTIN) |
1251 | |
1252 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1253 | SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) { |
1254 | PyObject *s = PyString_InternFromString(key); |
1255 | PyList_Append(seq, s); |
1256 | Py_DECREF(s)do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(s)))); } while (0); |
1257 | } |
1258 | |
1259 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1260 | SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) { |
1261 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
1262 | PyDict_SetItemString(d, (char *)name, obj); |
1263 | #else |
1264 | PyDict_SetItemString(d, name, obj); |
1265 | #endif |
1266 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1267 | if (public_interface) |
1268 | SwigPyBuiltin_AddPublicSymbol(public_interface, name); |
1269 | } |
1270 | |
1271 | #else |
1272 | |
1273 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1274 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { |
1275 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
1276 | PyDict_SetItemString(d, (char *)name, obj); |
1277 | #else |
1278 | PyDict_SetItemString(d, name, obj); |
1279 | #endif |
1280 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1281 | } |
1282 | |
1283 | #endif |
1284 | |
1285 | /* Append a value to the result obj */ |
1286 | |
1287 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1288 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { |
1289 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) |
1290 | if (!result) { |
1291 | result = obj; |
1292 | } else if (result == Py_None(&_Py_NoneStruct)) { |
1293 | Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(result)))); } while (0); |
1294 | result = obj; |
1295 | } else { |
1296 | if (!PyList_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & (( 1L<<25))) != 0)) { |
1297 | PyObject *o2 = result; |
1298 | result = PyList_New(1); |
1299 | PyList_SetItem(result, 0, o2); |
1300 | } |
1301 | PyList_Append(result,obj); |
1302 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1303 | } |
1304 | return result; |
1305 | #else |
1306 | PyObject* o2; |
1307 | PyObject* o3; |
1308 | if (!result) { |
1309 | result = obj; |
1310 | } else if (result == Py_None(&_Py_NoneStruct)) { |
1311 | Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(result)))); } while (0); |
1312 | result = obj; |
1313 | } else { |
1314 | if (!PyTuple_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & (( 1L<<26))) != 0)) { |
1315 | o2 = result; |
1316 | result = PyTuple_New(1); |
1317 | PyTuple_SET_ITEM(result, 0, o2)(((PyTupleObject *)(result))->ob_item[0] = o2); |
1318 | } |
1319 | o3 = PyTuple_New(1); |
1320 | PyTuple_SET_ITEM(o3, 0, obj)(((PyTupleObject *)(o3))->ob_item[0] = obj); |
1321 | o2 = result; |
1322 | result = PySequence_Concat(o2, o3); |
1323 | Py_DECREF(o2)do { if ( --((PyObject*)(o2))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(o2)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(o2)))); } while (0); |
1324 | Py_DECREF(o3)do { if ( --((PyObject*)(o3))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(o3)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(o3)))); } while (0); |
1325 | } |
1326 | return result; |
1327 | #endif |
1328 | } |
1329 | |
1330 | /* Unpack the argument tuple */ |
1331 | |
1332 | SWIGINTERNstatic __attribute__ ((__unused__)) Py_ssize_t |
1333 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) |
1334 | { |
1335 | if (!args) { |
1336 | if (!min && !max) { |
1337 | return 1; |
1338 | } else { |
1339 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", |
1340 | name, (min == max ? "" : "at least "), (int)min); |
1341 | return 0; |
1342 | } |
1343 | } |
1344 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) { |
1345 | if (min <= 1 && max >= 1) { |
1346 | Py_ssize_t i; |
1347 | objs[0] = args; |
1348 | for (i = 1; i < max; ++i) { |
1349 | objs[i] = 0; |
1350 | } |
1351 | return 2; |
1352 | } |
1353 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); |
1354 | return 0; |
1355 | } else { |
1356 | Py_ssize_t l = PyTuple_GET_SIZE(args)(((PyVarObject*)(args))->ob_size); |
1357 | if (l < min) { |
1358 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", |
1359 | name, (min == max ? "" : "at least "), (int)min, (int)l); |
1360 | return 0; |
1361 | } else if (l > max) { |
1362 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", |
1363 | name, (min == max ? "" : "at most "), (int)max, (int)l); |
1364 | return 0; |
1365 | } else { |
1366 | Py_ssize_t i; |
1367 | for (i = 0; i < l; ++i) { |
1368 | objs[i] = PyTuple_GET_ITEM(args, i)(((PyTupleObject *)(args))->ob_item[i]); |
1369 | } |
1370 | for (; l < max; ++l) { |
1371 | objs[l] = 0; |
1372 | } |
1373 | return i + 1; |
1374 | } |
1375 | } |
1376 | } |
1377 | |
1378 | /* A functor is a function object with one single object argument */ |
1379 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
1380 | #define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunctionObjArgs(functor, obj, NULL__null); |
1381 | #else |
1382 | #define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunction(functor, "O", obj); |
1383 | #endif |
1384 | |
1385 | /* |
1386 | Helper for static pointer initialization for both C and C++ code, for example |
1387 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); |
1388 | */ |
1389 | #ifdef __cplusplus201103L |
1390 | #define SWIG_STATIC_POINTER(var)var var |
1391 | #else |
1392 | #define SWIG_STATIC_POINTER(var)var var = 0; if (!var) var |
1393 | #endif |
1394 | |
1395 | /* ----------------------------------------------------------------------------- |
1396 | * Pointer declarations |
1397 | * ----------------------------------------------------------------------------- */ |
1398 | |
1399 | /* Flags for new pointer objects */ |
1400 | #define SWIG_POINTER_NOSHADOW(0x1 << 1) (SWIG_POINTER_OWN0x1 << 1) |
1401 | #define SWIG_POINTER_NEW((0x1 << 1) | 0x1) (SWIG_POINTER_NOSHADOW(0x1 << 1) | SWIG_POINTER_OWN0x1) |
1402 | |
1403 | #define SWIG_POINTER_IMPLICIT_CONV(0x1 << 1) (SWIG_POINTER_DISOWN0x1 << 1) |
1404 | |
1405 | #define SWIG_BUILTIN_TP_INIT(0x1 << 2) (SWIG_POINTER_OWN0x1 << 2) |
1406 | #define SWIG_BUILTIN_INIT((0x1 << 2) | 0x1) (SWIG_BUILTIN_TP_INIT(0x1 << 2) | SWIG_POINTER_OWN0x1) |
1407 | |
1408 | #ifdef __cplusplus201103L |
1409 | extern "C" { |
1410 | #endif |
1411 | |
1412 | /* How to access Py_None */ |
1413 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
1414 | # ifndef SWIG_PYTHON_NO_BUILD_NONE |
1415 | # ifndef SWIG_PYTHON_BUILD_NONE |
1416 | # define SWIG_PYTHON_BUILD_NONE |
1417 | # endif |
1418 | # endif |
1419 | #endif |
1420 | |
1421 | #ifdef SWIG_PYTHON_BUILD_NONE |
1422 | # ifdef Py_None(&_Py_NoneStruct) |
1423 | # undef Py_None(&_Py_NoneStruct) |
1424 | # define Py_None(&_Py_NoneStruct) SWIG_Py_None() |
1425 | # endif |
1426 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
1427 | _SWIG_Py_None(void) |
1428 | { |
1429 | PyObject *none = Py_BuildValue((char*)""); |
1430 | Py_DECREF(none)do { if ( --((PyObject*)(none))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(none)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(none)))); } while (0); |
1431 | return none; |
1432 | } |
1433 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1434 | SWIG_Py_None(void) |
1435 | { |
1436 | static PyObject *SWIG_STATIC_POINTER(none)none = _SWIG_Py_None(); |
1437 | return none; |
1438 | } |
1439 | #endif |
1440 | |
1441 | /* The python void return value */ |
1442 | |
1443 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
1444 | SWIG_Py_Void(void) |
1445 | { |
1446 | PyObject *none = Py_None(&_Py_NoneStruct); |
1447 | Py_INCREF(none)( ((PyObject*)(none))->ob_refcnt++); |
1448 | return none; |
1449 | } |
1450 | |
1451 | /* SwigPyClientData */ |
1452 | |
1453 | typedef struct { |
1454 | PyObject *klass; |
1455 | PyObject *newraw; |
1456 | PyObject *newargs; |
1457 | PyObject *destroy; |
1458 | int delargs; |
1459 | int implicitconv; |
1460 | PyTypeObject *pytype; |
1461 | } SwigPyClientData; |
1462 | |
1463 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
1464 | SWIG_Python_CheckImplicit(swig_type_info *ty) |
1465 | { |
1466 | SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; |
1467 | return data ? data->implicitconv : 0; |
1468 | } |
1469 | |
1470 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
1471 | SWIG_Python_ExceptionType(swig_type_info *desc) { |
1472 | SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; |
1473 | PyObject *klass = data ? data->klass : 0; |
1474 | return (klass ? klass : PyExc_RuntimeError); |
1475 | } |
1476 | |
1477 | |
1478 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyClientData * |
1479 | SwigPyClientData_New(PyObject* obj) |
1480 | { |
1481 | if (!obj) { |
1482 | return 0; |
1483 | } else { |
1484 | SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); |
1485 | /* the klass element */ |
1486 | data->klass = obj; |
1487 | Py_INCREF(data->klass)( ((PyObject*)(data->klass))->ob_refcnt++); |
1488 | /* the newraw method and newargs arguments used to create a new raw instance */ |
1489 | if (PyClass_Check(obj)((obj)->ob_type == &PyClass_Type)) { |
1490 | data->newraw = 0; |
1491 | data->newargs = obj; |
1492 | Py_INCREF(obj)( ((PyObject*)(obj))->ob_refcnt++); |
1493 | } else { |
1494 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000) |
1495 | data->newraw = 0; |
1496 | #else |
1497 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); |
1498 | #endif |
1499 | if (data->newraw) { |
1500 | Py_INCREF(data->newraw)( ((PyObject*)(data->newraw))->ob_refcnt++); |
1501 | data->newargs = PyTuple_New(1); |
1502 | PyTuple_SetItem(data->newargs, 0, obj); |
1503 | } else { |
1504 | data->newargs = obj; |
1505 | } |
1506 | Py_INCREF(data->newargs)( ((PyObject*)(data->newargs))->ob_refcnt++); |
1507 | } |
1508 | /* the destroy method, aka as the C++ delete method */ |
1509 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); |
1510 | if (PyErr_Occurred()) { |
1511 | PyErr_Clear(); |
1512 | data->destroy = 0; |
1513 | } |
1514 | if (data->destroy) { |
1515 | int flags; |
1516 | Py_INCREF(data->destroy)( ((PyObject*)(data->destroy))->ob_refcnt++); |
1517 | flags = PyCFunction_GET_FLAGS(data->destroy)(((PyCFunctionObject *)data->destroy) -> m_ml -> ml_flags ); |
1518 | #ifdef METH_O0x0008 |
1519 | data->delargs = !(flags & (METH_O0x0008)); |
1520 | #else |
1521 | data->delargs = 0; |
1522 | #endif |
1523 | } else { |
1524 | data->delargs = 0; |
1525 | } |
1526 | data->implicitconv = 0; |
1527 | data->pytype = 0; |
1528 | return data; |
1529 | } |
1530 | } |
1531 | |
1532 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1533 | SwigPyClientData_Del(SwigPyClientData *data) { |
1534 | 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); |
1535 | 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); |
1536 | 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); |
1537 | } |
1538 | |
1539 | /* =============== SwigPyObject =====================*/ |
1540 | |
1541 | typedef struct { |
1542 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
1543 | void *ptr; |
1544 | swig_type_info *ty; |
1545 | int own; |
1546 | PyObject *next; |
1547 | #ifdef SWIGPYTHON_BUILTIN |
1548 | PyObject *dict; |
1549 | #endif |
1550 | } SwigPyObject; |
1551 | |
1552 | |
1553 | #ifdef SWIGPYTHON_BUILTIN |
1554 | |
1555 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1556 | SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args)) |
1557 | { |
1558 | SwigPyObject *sobj = (SwigPyObject *)v; |
1559 | |
1560 | if (!sobj->dict) |
1561 | sobj->dict = PyDict_New(); |
1562 | |
1563 | Py_INCREF(sobj->dict)( ((PyObject*)(sobj->dict))->ob_refcnt++); |
1564 | return sobj->dict; |
1565 | } |
1566 | |
1567 | #endif |
1568 | |
1569 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1570 | SwigPyObject_long(SwigPyObject *v) |
1571 | { |
1572 | return PyLong_FromVoidPtr(v->ptr); |
1573 | } |
1574 | |
1575 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1576 | SwigPyObject_format(const char* fmt, SwigPyObject *v) |
1577 | { |
1578 | PyObject *res = NULL__null; |
1579 | PyObject *args = PyTuple_New(1); |
1580 | if (args) { |
1581 | if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { |
1582 | PyObject *ofmt = SWIG_Python_str_FromChar(fmt); |
1583 | if (ofmt) { |
1584 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1585 | res = PyUnicode_FormatPyUnicodeUCS4_Format(ofmt,args); |
1586 | #else |
1587 | res = PyString_Format(ofmt,args); |
1588 | #endif |
1589 | Py_DECREF(ofmt)do { if ( --((PyObject*)(ofmt))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(ofmt)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(ofmt)))); } while (0); |
1590 | } |
1591 | Py_DECREF(args)do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(args)))); } while (0); |
1592 | } |
1593 | } |
1594 | return res; |
1595 | } |
1596 | |
1597 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1598 | SwigPyObject_oct(SwigPyObject *v) |
1599 | { |
1600 | return SwigPyObject_format("%o",v); |
1601 | } |
1602 | |
1603 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1604 | SwigPyObject_hex(SwigPyObject *v) |
1605 | { |
1606 | return SwigPyObject_format("%x",v); |
1607 | } |
1608 | |
1609 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1610 | #ifdef METH_NOARGS0x0004 |
1611 | SwigPyObject_repr(SwigPyObject *v) |
1612 | #else |
1613 | SwigPyObject_repr(SwigPyObject *v, PyObject *args) |
1614 | #endif |
1615 | { |
1616 | const char *name = SWIG_TypePrettyName(v->ty); |
1617 | PyObject *repr = SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v); |
1618 | if (v->next) { |
1619 | # ifdef METH_NOARGS0x0004 |
1620 | PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); |
1621 | # else |
1622 | PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); |
1623 | # endif |
1624 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1625 | PyObject *joined = PyUnicode_ConcatPyUnicodeUCS4_Concat(repr, nrep); |
1626 | Py_DecRef(repr); |
1627 | Py_DecRef(nrep); |
1628 | repr = joined; |
1629 | # else |
1630 | PyString_ConcatAndDel(&repr,nrep); |
1631 | # endif |
1632 | } |
1633 | return repr; |
1634 | } |
1635 | |
1636 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
1637 | SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) |
1638 | { |
1639 | void *i = v->ptr; |
1640 | void *j = w->ptr; |
1641 | return (i < j) ? -1 : ((i > j) ? 1 : 0); |
1642 | } |
1643 | |
1644 | /* Added for Python 3.x, would it also be useful for Python 2.x? */ |
1645 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1646 | SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) |
1647 | { |
1648 | PyObject* res; |
1649 | if( op != Py_EQ2 && op != Py_NE3 ) { |
1650 | Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt ++); |
1651 | return Py_NotImplemented(&_Py_NotImplementedStruct); |
1652 | } |
1653 | res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ2) ? 1 : 0); |
1654 | return res; |
1655 | } |
1656 | |
1657 | |
1658 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyObject_TypeOnce(void); |
1659 | |
1660 | #ifdef SWIGPYTHON_BUILTIN |
1661 | static swig_type_info *SwigPyObject_stype = 0; |
1662 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1663 | SwigPyObject_type(void) { |
1664 | SwigPyClientData *cd; |
1665 | assert(SwigPyObject_stype)(static_cast <bool> (SwigPyObject_stype) ? void (0) : __assert_fail ("SwigPyObject_stype", "/build/llvm-toolchain-snapshot-7~svn329677/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp" , 1665, __extension__ __PRETTY_FUNCTION__)); |
1666 | cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; |
1667 | assert(cd)(static_cast <bool> (cd) ? void (0) : __assert_fail ("cd" , "/build/llvm-toolchain-snapshot-7~svn329677/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp" , 1667, __extension__ __PRETTY_FUNCTION__)); |
1668 | assert(cd->pytype)(static_cast <bool> (cd->pytype) ? void (0) : __assert_fail ("cd->pytype", "/build/llvm-toolchain-snapshot-7~svn329677/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp" , 1668, __extension__ __PRETTY_FUNCTION__)); |
1669 | return cd->pytype; |
1670 | } |
1671 | #else |
1672 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1673 | SwigPyObject_type(void) { |
1674 | static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyObject_TypeOnce(); |
1675 | return type; |
1676 | } |
1677 | #endif |
1678 | |
1679 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
1680 | SwigPyObject_Check(PyObject *op) { |
1681 | #ifdef SWIGPYTHON_BUILTIN |
1682 | PyTypeObject *target_tp = SwigPyObject_type(); |
1683 | if (PyType_IsSubtype(op->ob_type, target_tp)) |
1684 | return 1; |
1685 | return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); |
1686 | #else |
1687 | return (Py_TYPE(op)(((PyObject*)(op))->ob_type) == SwigPyObject_type()) |
1688 | || (strcmp(Py_TYPE(op)(((PyObject*)(op))->ob_type)->tp_name,"SwigPyObject") == 0); |
1689 | #endif |
1690 | } |
1691 | |
1692 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1693 | SwigPyObject_New(void *ptr, swig_type_info *ty, int own); |
1694 | |
1695 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1696 | SwigPyObject_dealloc(PyObject *v) |
1697 | { |
1698 | SwigPyObject *sobj = (SwigPyObject *) v; |
1699 | PyObject *next = sobj->next; |
1700 | if (sobj->own == SWIG_POINTER_OWN0x1) { |
1701 | swig_type_info *ty = sobj->ty; |
1702 | SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; |
1703 | PyObject *destroy = data ? data->destroy : 0; |
1704 | if (destroy) { |
1705 | /* destroy is always a VARARGS method */ |
1706 | PyObject *res; |
1707 | |
1708 | /* PyObject_CallFunction() has the potential to silently drop |
1709 | the active active exception. In cases of unnamed temporary |
1710 | variable or where we just finished iterating over a generator |
1711 | StopIteration will be active right now, and this needs to |
1712 | remain true upon return from SwigPyObject_dealloc. So save |
1713 | and restore. */ |
1714 | |
1715 | PyObject *val = NULL__null, *type = NULL__null, *tb = NULL__null; |
1716 | PyErr_Fetch(&val, &type, &tb); |
1717 | |
1718 | if (data->delargs) { |
1719 | /* we need to create a temporary object to carry the destroy operation */ |
1720 | PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); |
1721 | res = SWIG_Python_CallFunctor(destroy, tmp)PyObject_CallFunctionObjArgs(destroy, tmp, __null);; |
1722 | Py_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(tmp)))); } while (0); |
1723 | } else { |
1724 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy)(((PyCFunctionObject *)destroy) -> m_ml -> ml_meth); |
1725 | PyObject *mself = PyCFunction_GET_SELF(destroy)(((PyCFunctionObject *)destroy) -> m_self); |
1726 | res = ((*meth)(mself, v)); |
1727 | } |
1728 | if (!res) |
1729 | PyErr_WriteUnraisable(destroy); |
1730 | |
1731 | PyErr_Restore(val, type, tb); |
1732 | |
1733 | 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); |
1734 | } |
1735 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) |
1736 | else { |
1737 | const char *name = SWIG_TypePrettyName(ty); |
1738 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); |
1739 | } |
1740 | #endif |
1741 | } |
1742 | 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); |
1743 | PyObject_DELPyObject_Free(v); |
1744 | } |
1745 | |
1746 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1747 | SwigPyObject_append(PyObject* v, PyObject* next) |
1748 | { |
1749 | SwigPyObject *sobj = (SwigPyObject *) v; |
1750 | #ifndef METH_O0x0008 |
1751 | PyObject *tmp = 0; |
1752 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL__null; |
1753 | next = tmp; |
1754 | #endif |
1755 | if (!SwigPyObject_Check(next)) { |
1756 | PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject"); |
1757 | return NULL__null; |
1758 | } |
1759 | sobj->next = next; |
1760 | Py_INCREF(next)( ((PyObject*)(next))->ob_refcnt++); |
1761 | return SWIG_Py_Void(); |
1762 | } |
1763 | |
1764 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1765 | #ifdef METH_NOARGS0x0004 |
1766 | SwigPyObject_next(PyObject* v) |
1767 | #else |
1768 | SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) |
1769 | #endif |
1770 | { |
1771 | SwigPyObject *sobj = (SwigPyObject *) v; |
1772 | if (sobj->next) { |
1773 | Py_INCREF(sobj->next)( ((PyObject*)(sobj->next))->ob_refcnt++); |
1774 | return sobj->next; |
1775 | } else { |
1776 | return SWIG_Py_Void(); |
1777 | } |
1778 | } |
1779 | |
1780 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1781 | #ifdef METH_NOARGS0x0004 |
1782 | SwigPyObject_disown(PyObject *v) |
1783 | #else |
1784 | SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) |
1785 | #endif |
1786 | { |
1787 | SwigPyObject *sobj = (SwigPyObject *)v; |
1788 | sobj->own = 0; |
1789 | return SWIG_Py_Void(); |
1790 | } |
1791 | |
1792 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1793 | #ifdef METH_NOARGS0x0004 |
1794 | SwigPyObject_acquire(PyObject *v) |
1795 | #else |
1796 | SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) |
1797 | #endif |
1798 | { |
1799 | SwigPyObject *sobj = (SwigPyObject *)v; |
1800 | sobj->own = SWIG_POINTER_OWN0x1; |
1801 | return SWIG_Py_Void(); |
1802 | } |
1803 | |
1804 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1805 | SwigPyObject_own(PyObject *v, PyObject *args) |
1806 | { |
1807 | PyObject *val = 0; |
1808 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000) |
1809 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) |
1810 | #elif (PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000) |
1811 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) |
1812 | #else |
1813 | if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) |
1814 | #endif |
1815 | { |
1816 | return NULL__null; |
1817 | } |
1818 | else |
1819 | { |
1820 | SwigPyObject *sobj = (SwigPyObject *)v; |
1821 | PyObject *obj = PyBool_FromLong(sobj->own); |
1822 | if (val) { |
1823 | #ifdef METH_NOARGS0x0004 |
1824 | if (PyObject_IsTrue(val)) { |
1825 | SwigPyObject_acquire(v); |
1826 | } else { |
1827 | SwigPyObject_disown(v); |
1828 | } |
1829 | #else |
1830 | if (PyObject_IsTrue(val)) { |
1831 | SwigPyObject_acquire(v,args); |
1832 | } else { |
1833 | SwigPyObject_disown(v,args); |
1834 | } |
1835 | #endif |
1836 | } |
1837 | return obj; |
1838 | } |
1839 | } |
1840 | |
1841 | #ifdef METH_O0x0008 |
1842 | static PyMethodDef |
1843 | swigobject_methods[] = { |
1844 | {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS0x0004, (char *)"releases ownership of the pointer"}, |
1845 | {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS0x0004, (char *)"acquires ownership of the pointer"}, |
1846 | {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"}, |
1847 | {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O0x0008, (char *)"appends another 'this' object"}, |
1848 | {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS0x0004, (char *)"returns the next 'this' object"}, |
1849 | {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS0x0004, (char *)"returns object representation"}, |
1850 | {0, 0, 0, 0} |
1851 | }; |
1852 | #else |
1853 | static PyMethodDef |
1854 | swigobject_methods[] = { |
1855 | {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS0x0001, (char *)"releases ownership of the pointer"}, |
1856 | {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS0x0001, (char *)"acquires ownership of the pointer"}, |
1857 | {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"}, |
1858 | {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS0x0001, (char *)"appends another 'this' object"}, |
1859 | {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS0x0001, (char *)"returns the next 'this' object"}, |
1860 | {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS0x0001, (char *)"returns object representation"}, |
1861 | {0, 0, 0, 0} |
1862 | }; |
1863 | #endif |
1864 | |
1865 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
1866 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
1867 | SwigPyObject_getattr(SwigPyObject *sobj,char *name) |
1868 | { |
1869 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); |
1870 | } |
1871 | #endif |
1872 | |
1873 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1874 | SwigPyObject_TypeOnce(void) { |
1875 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; |
1876 | |
1877 | static PyNumberMethods SwigPyObject_as_number = { |
1878 | (binaryfunc)0, /*nb_add*/ |
1879 | (binaryfunc)0, /*nb_subtract*/ |
1880 | (binaryfunc)0, /*nb_multiply*/ |
1881 | /* nb_divide removed in Python 3 */ |
1882 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1883 | (binaryfunc)0, /*nb_divide*/ |
1884 | #endif |
1885 | (binaryfunc)0, /*nb_remainder*/ |
1886 | (binaryfunc)0, /*nb_divmod*/ |
1887 | (ternaryfunc)0,/*nb_power*/ |
1888 | (unaryfunc)0, /*nb_negative*/ |
1889 | (unaryfunc)0, /*nb_positive*/ |
1890 | (unaryfunc)0, /*nb_absolute*/ |
1891 | (inquiry)0, /*nb_nonzero*/ |
1892 | 0, /*nb_invert*/ |
1893 | 0, /*nb_lshift*/ |
1894 | 0, /*nb_rshift*/ |
1895 | 0, /*nb_and*/ |
1896 | 0, /*nb_xor*/ |
1897 | 0, /*nb_or*/ |
1898 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1899 | 0, /*nb_coerce*/ |
1900 | #endif |
1901 | (unaryfunc)SwigPyObject_long, /*nb_int*/ |
1902 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1903 | (unaryfunc)SwigPyObject_long, /*nb_long*/ |
1904 | #else |
1905 | 0, /*nb_reserved*/ |
1906 | #endif |
1907 | (unaryfunc)0, /*nb_float*/ |
1908 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1909 | (unaryfunc)SwigPyObject_oct, /*nb_oct*/ |
1910 | (unaryfunc)SwigPyObject_hex, /*nb_hex*/ |
1911 | #endif |
1912 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x03050000 /* 3.5 */ |
1913 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */ |
1914 | #elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 /* 3.0 */ |
1915 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ |
1916 | #elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x02050000 /* 2.5.0 */ |
1917 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ |
1918 | #elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 /* 2.2.0 */ |
1919 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
1920 | #elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x02000000 /* 2.0.0 */ |
1921 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ |
1922 | #endif |
1923 | }; |
1924 | |
1925 | static PyTypeObject swigpyobject_type; |
1926 | static int type_init = 0; |
1927 | if (!type_init) { |
1928 | const PyTypeObject tmp = { |
1929 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 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) | (14 << 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) | (14 << 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) | (14 << 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) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000 |
1990 | 0, /* tp_del */ |
1991 | #endif |
1992 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
1993 | 0, /* tp_version_tag */ |
1994 | #endif |
1995 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 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) | (14 << 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) | (14 << 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 | |
2020 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2021 | SwigPyObject_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 | |
2037 | typedef 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 | |
2044 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2045 | SwigPyPacked_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 | |
2058 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2059 | SwigPyPacked_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 | |
2069 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2070 | SwigPyPacked_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 | |
2080 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2081 | SwigPyPacked_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 | |
2089 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyPacked_TypeOnce(void); |
2090 | |
2091 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
2092 | SwigPyPacked_type(void) { |
2093 | static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyPacked_TypeOnce(); |
2094 | return type; |
2095 | } |
2096 | |
2097 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
2098 | SwigPyPacked_Check(PyObject *op) { |
2099 | return ((op)->ob_type == SwigPyPacked_TypeOnce()) |
2100 | || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); |
2101 | } |
2102 | |
2103 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2104 | SwigPyPacked_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 | |
2113 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
2114 | SwigPyPacked_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 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
2121 | PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0, |
2122 | #else |
2123 | PyObject_HEAD_INIT(NULL)1, __null, |
2124 | 0, /* ob_size */ |
2125 | #endif |
2126 | (char *)"SwigPyPacked", /* tp_name */ |
2127 | sizeof(SwigPyPacked), /* tp_basicsize */ |
2128 | 0, /* tp_itemsize */ |
2129 | (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ |
2130 | (printfunc)SwigPyPacked_print, /* tp_print */ |
2131 | (getattrfunc)0, /* tp_getattr */ |
2132 | (setattrfunc)0, /* tp_setattr */ |
2133 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
2134 | 0, /* tp_reserved in 3.0.1 */ |
2135 | #else |
2136 | (cmpfunc)SwigPyPacked_compare, /* tp_compare */ |
2137 | #endif |
2138 | (reprfunc)SwigPyPacked_repr, /* tp_repr */ |
2139 | 0, /* tp_as_number */ |
2140 | 0, /* tp_as_sequence */ |
2141 | 0, /* tp_as_mapping */ |
2142 | (hashfunc)0, /* tp_hash */ |
2143 | (ternaryfunc)0, /* tp_call */ |
2144 | (reprfunc)SwigPyPacked_str, /* tp_str */ |
2145 | PyObject_GenericGetAttr, /* tp_getattro */ |
2146 | 0, /* tp_setattro */ |
2147 | 0, /* tp_as_buffer */ |
2148 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0), /* tp_flags */ |
2149 | swigpacked_doc, /* tp_doc */ |
2150 | 0, /* tp_traverse */ |
2151 | 0, /* tp_clear */ |
2152 | 0, /* tp_richcompare */ |
2153 | 0, /* tp_weaklistoffset */ |
2154 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
2155 | 0, /* tp_iter */ |
2156 | 0, /* tp_iternext */ |
2157 | 0, /* tp_methods */ |
2158 | 0, /* tp_members */ |
2159 | 0, /* tp_getset */ |
2160 | 0, /* tp_base */ |
2161 | 0, /* tp_dict */ |
2162 | 0, /* tp_descr_get */ |
2163 | 0, /* tp_descr_set */ |
2164 | 0, /* tp_dictoffset */ |
2165 | 0, /* tp_init */ |
2166 | 0, /* tp_alloc */ |
2167 | 0, /* tp_new */ |
2168 | 0, /* tp_free */ |
2169 | 0, /* tp_is_gc */ |
2170 | 0, /* tp_bases */ |
2171 | 0, /* tp_mro */ |
2172 | 0, /* tp_cache */ |
2173 | 0, /* tp_subclasses */ |
2174 | 0, /* tp_weaklist */ |
2175 | #endif |
2176 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000 |
2177 | 0, /* tp_del */ |
2178 | #endif |
2179 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
2180 | 0, /* tp_version_tag */ |
2181 | #endif |
2182 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x03040000 |
2183 | 0, /* tp_finalize */ |
2184 | #endif |
2185 | #ifdef COUNT_ALLOCS |
2186 | 0, /* tp_allocs */ |
2187 | 0, /* tp_frees */ |
2188 | 0, /* tp_maxalloc */ |
2189 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x02050000 |
2190 | 0, /* tp_prev */ |
2191 | #endif |
2192 | 0 /* tp_next */ |
2193 | #endif |
2194 | }; |
2195 | swigpypacked_type = tmp; |
2196 | type_init = 1; |
2197 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
2198 | swigpypacked_type.ob_type = &PyType_Type; |
2199 | #else |
2200 | if (PyType_Ready(&swigpypacked_type) < 0) |
2201 | return NULL__null; |
2202 | #endif |
2203 | } |
2204 | return &swigpypacked_type; |
2205 | } |
2206 | |
2207 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2208 | SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) |
2209 | { |
2210 | SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type())( (SwigPyPacked *) PyObject_Init( (PyObject *) PyObject_Malloc ( ( (SwigPyPacked_type())->tp_basicsize ) ), (SwigPyPacked_type ())) ); |
2211 | if (sobj) { |
2212 | void *pack = malloc(size); |
2213 | if (pack) { |
2214 | memcpy(pack, ptr, size); |
2215 | sobj->pack = pack; |
2216 | sobj->ty = ty; |
2217 | sobj->size = size; |
2218 | } else { |
2219 | PyObject_DELPyObject_Free((PyObject *) sobj); |
2220 | sobj = 0; |
2221 | } |
2222 | } |
2223 | return (PyObject *) sobj; |
2224 | } |
2225 | |
2226 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
2227 | SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
2228 | { |
2229 | if (SwigPyPacked_Check(obj)) { |
2230 | SwigPyPacked *sobj = (SwigPyPacked *)obj; |
2231 | if (sobj->size != size) return 0; |
2232 | memcpy(ptr, sobj->pack, size); |
2233 | return sobj->ty; |
2234 | } else { |
2235 | return 0; |
2236 | } |
2237 | } |
2238 | |
2239 | /* ----------------------------------------------------------------------------- |
2240 | * pointers/data manipulation |
2241 | * ----------------------------------------------------------------------------- */ |
2242 | |
2243 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
2244 | _SWIG_This(void) |
2245 | { |
2246 | return SWIG_Python_str_FromChar("this"); |
2247 | } |
2248 | |
2249 | static PyObject *swig_this = NULL__null; |
2250 | |
2251 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2252 | SWIG_This(void) |
2253 | { |
2254 | if (swig_this == NULL__null) |
2255 | swig_this = _SWIG_This(); |
2256 | return swig_this; |
2257 | } |
2258 | |
2259 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
2260 | |
2261 | /* TODO: I don't know how to implement the fast getset in Python 3 right now */ |
2262 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
2263 | #define SWIG_PYTHON_SLOW_GETSET_THIS |
2264 | #endif |
2265 | |
2266 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyObject * |
2267 | SWIG_Python_GetSwigThis(PyObject *pyobj) |
2268 | { |
2269 | PyObject *obj; |
2270 | |
2271 | if (SwigPyObject_Check(pyobj)) |
2272 | return (SwigPyObject *) pyobj; |
2273 | |
2274 | #ifdef SWIGPYTHON_BUILTIN |
2275 | (void)obj; |
2276 | # ifdef PyWeakref_CheckProxy |
2277 | if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType ) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType ))) { |
2278 | pyobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))-> ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object : (&_Py_NoneStruct)); |
2279 | if (pyobj && SwigPyObject_Check(pyobj)) |
2280 | return (SwigPyObject*) pyobj; |
2281 | } |
2282 | # endif |
2283 | return NULL__null; |
2284 | #else |
2285 | |
2286 | obj = 0; |
2287 | |
2288 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000)) |
2289 | if (PyInstance_Check(pyobj)((pyobj)->ob_type == &PyInstance_Type)) { |
2290 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); |
2291 | } else { |
2292 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); |
2293 | if (dictptr != NULL__null) { |
2294 | PyObject *dict = *dictptr; |
2295 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; |
2296 | } else { |
2297 | #ifdef PyWeakref_CheckProxy |
2298 | if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType ) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType ))) { |
2299 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))-> ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object : (&_Py_NoneStruct)); |
2300 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; |
2301 | } |
2302 | #endif |
2303 | obj = PyObject_GetAttr(pyobj,SWIG_This()); |
2304 | if (obj) { |
2305 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
2306 | } else { |
2307 | if (PyErr_Occurred()) PyErr_Clear(); |
2308 | return 0; |
2309 | } |
2310 | } |
2311 | } |
2312 | #else |
2313 | obj = PyObject_GetAttr(pyobj,SWIG_This()); |
2314 | if (obj) { |
2315 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
2316 | } else { |
2317 | if (PyErr_Occurred()) PyErr_Clear(); |
2318 | return 0; |
2319 | } |
2320 | #endif |
2321 | if (obj && !SwigPyObject_Check(obj)) { |
2322 | /* a PyObject is called 'this', try to get the 'real this' |
2323 | SwigPyObject from it */ |
2324 | return SWIG_Python_GetSwigThis(obj); |
2325 | } |
2326 | return (SwigPyObject *)obj; |
2327 | #endif |
2328 | } |
2329 | |
2330 | /* Acquire a pointer value */ |
2331 | |
2332 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2333 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { |
2334 | if (own == SWIG_POINTER_OWN0x1) { |
2335 | SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); |
2336 | if (sobj) { |
2337 | int oldown = sobj->own; |
2338 | sobj->own = own; |
2339 | return oldown; |
2340 | } |
2341 | } |
2342 | return 0; |
2343 | } |
2344 | |
2345 | /* Convert a pointer value */ |
2346 | |
2347 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2348 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
2349 | int res; |
2350 | SwigPyObject *sobj; |
2351 | int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV(0x1 << 1)) != 0; |
2352 | |
2353 | if (!obj) |
2354 | return SWIG_ERROR(-1); |
2355 | if (obj == Py_None(&_Py_NoneStruct) && !implicit_conv) { |
2356 | if (ptr) |
2357 | *ptr = 0; |
2358 | return SWIG_OK(0); |
2359 | } |
2360 | |
2361 | res = SWIG_ERROR(-1); |
2362 | |
2363 | sobj = SWIG_Python_GetSwigThis(obj); |
2364 | if (own) |
2365 | *own = 0; |
2366 | while (sobj) { |
2367 | void *vptr = sobj->ptr; |
2368 | if (ty) { |
2369 | swig_type_info *to = sobj->ty; |
2370 | if (to == ty) { |
2371 | /* no type cast needed */ |
2372 | if (ptr) *ptr = vptr; |
2373 | break; |
2374 | } else { |
2375 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); |
2376 | if (!tc) { |
2377 | sobj = (SwigPyObject *)sobj->next; |
2378 | } else { |
2379 | if (ptr) { |
2380 | int newmemory = 0; |
2381 | *ptr = SWIG_TypeCast(tc,vptr,&newmemory); |
2382 | if (newmemory == SWIG_CAST_NEW_MEMORY0x2) { |
2383 | assert(own)(static_cast <bool> (own) ? void (0) : __assert_fail ("own" , "/build/llvm-toolchain-snapshot-7~svn329677/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp" , 2383, __extension__ __PRETTY_FUNCTION__)); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ |
2384 | if (own) |
2385 | *own = *own | SWIG_CAST_NEW_MEMORY0x2; |
2386 | } |
2387 | } |
2388 | break; |
2389 | } |
2390 | } |
2391 | } else { |
2392 | if (ptr) *ptr = vptr; |
2393 | break; |
2394 | } |
2395 | } |
2396 | if (sobj) { |
2397 | if (own) |
2398 | *own = *own | sobj->own; |
2399 | if (flags & SWIG_POINTER_DISOWN0x1) { |
2400 | sobj->own = 0; |
2401 | } |
2402 | res = SWIG_OK(0); |
2403 | } else { |
2404 | if (implicit_conv) { |
2405 | SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; |
2406 | if (data && !data->implicitconv) { |
2407 | PyObject *klass = data->klass; |
2408 | if (klass) { |
2409 | PyObject *impconv; |
2410 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ |
2411 | impconv = SWIG_Python_CallFunctor(klass, obj)PyObject_CallFunctionObjArgs(klass, obj, __null);; |
2412 | data->implicitconv = 0; |
2413 | if (PyErr_Occurred()) { |
2414 | PyErr_Clear(); |
2415 | impconv = 0; |
2416 | } |
2417 | if (impconv) { |
2418 | SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); |
2419 | if (iobj) { |
2420 | void *vptr; |
2421 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); |
2422 | if (SWIG_IsOK(res)(res >= 0)) { |
2423 | if (ptr) { |
2424 | *ptr = vptr; |
2425 | /* transfer the ownership to 'ptr' */ |
2426 | iobj->own = 0; |
2427 | res = SWIG_AddCast(res)(res); |
2428 | res = SWIG_AddNewMask(res)((res >= 0) ? (res | ((1 << 8) << 1)) : res); |
2429 | } else { |
2430 | res = SWIG_AddCast(res)(res); |
2431 | } |
2432 | } |
2433 | } |
2434 | Py_DECREF(impconv)do { if ( --((PyObject*)(impconv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(impconv)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(impconv)))); } while (0); |
2435 | } |
2436 | } |
2437 | } |
2438 | } |
2439 | if (!SWIG_IsOK(res)(res >= 0) && obj == Py_None(&_Py_NoneStruct)) { |
2440 | if (ptr) |
2441 | *ptr = 0; |
2442 | if (PyErr_Occurred()) |
2443 | PyErr_Clear(); |
2444 | res = SWIG_OK(0); |
2445 | } |
2446 | } |
2447 | return res; |
2448 | } |
2449 | |
2450 | /* Convert a function ptr value */ |
2451 | |
2452 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2453 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2454 | if (!PyCFunction_Check(obj)((((PyObject*)(obj))->ob_type) == &PyCFunction_Type)) { |
2455 | return SWIG_ConvertPtr(obj, ptr, ty, 0)SWIG_Python_ConvertPtrAndOwn(obj, ptr, ty, 0, 0); |
2456 | } else { |
2457 | void *vptr = 0; |
2458 | |
2459 | /* here we get the method pointer for callbacks */ |
2460 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
2461 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; |
2462 | if (desc) |
2463 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; |
2464 | if (!desc) |
2465 | return SWIG_ERROR(-1); |
2466 | if (ty) { |
2467 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); |
2468 | if (tc) { |
2469 | int newmemory = 0; |
2470 | *ptr = SWIG_TypeCast(tc,vptr,&newmemory); |
2471 | assert(!newmemory)(static_cast <bool> (!newmemory) ? void (0) : __assert_fail ("!newmemory", "/build/llvm-toolchain-snapshot-7~svn329677/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp" , 2471, __extension__ __PRETTY_FUNCTION__)); /* newmemory handling not yet implemented */ |
2472 | } else { |
2473 | return SWIG_ERROR(-1); |
2474 | } |
2475 | } else { |
2476 | *ptr = vptr; |
2477 | } |
2478 | return SWIG_OK(0); |
2479 | } |
2480 | } |
2481 | |
2482 | /* Convert a packed value value */ |
2483 | |
2484 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2485 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2486 | swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); |
2487 | if (!to) return SWIG_ERROR(-1); |
2488 | if (ty) { |
2489 | if (to != ty) { |
2490 | /* check type cast? */ |
2491 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); |
2492 | if (!tc) return SWIG_ERROR(-1); |
2493 | } |
2494 | } |
2495 | return SWIG_OK(0); |
2496 | } |
2497 | |
2498 | /* ----------------------------------------------------------------------------- |
2499 | * Create a new pointer object |
2500 | * ----------------------------------------------------------------------------- */ |
2501 | |
2502 | /* |
2503 | Create a new instance object, without calling __init__, and set the |
2504 | 'this' attribute. |
2505 | */ |
2506 | |
2507 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
2508 | SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) |
2509 | { |
2510 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000) |
2511 | PyObject *inst = 0; |
2512 | PyObject *newraw = data->newraw; |
2513 | if (newraw) { |
2514 | inst = PyObject_Call(newraw, data->newargs, NULL__null); |
2515 | if (inst) { |
2516 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) |
2517 | PyObject **dictptr = _PyObject_GetDictPtr(inst); |
2518 | if (dictptr != NULL__null) { |
2519 | PyObject *dict = *dictptr; |
2520 | if (dict == NULL__null) { |
2521 | dict = PyDict_New(); |
2522 | *dictptr = dict; |
2523 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2524 | } |
2525 | } |
2526 | #else |
2527 | PyObject *key = SWIG_This(); |
2528 | PyObject_SetAttr(inst, key, swig_this); |
2529 | #endif |
2530 | } |
2531 | } else { |
2532 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
2533 | inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None(&_Py_NoneStruct), Py_None(&_Py_NoneStruct)); |
2534 | if (inst) { |
2535 | PyObject_SetAttr(inst, SWIG_This(), swig_this); |
2536 | Py_TYPE(inst)(((PyObject*)(inst))->ob_type)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG(1L<<19); |
2537 | } |
2538 | #else |
2539 | PyObject *dict = PyDict_New(); |
2540 | if (dict) { |
2541 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2542 | inst = PyInstance_NewRaw(data->newargs, dict); |
2543 | Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(dict)))); } while (0); |
2544 | } |
2545 | #endif |
2546 | } |
2547 | return inst; |
2548 | #else |
2549 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x02010000) |
2550 | PyObject *inst = 0; |
2551 | PyObject *dict = PyDict_New(); |
2552 | if (dict) { |
2553 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2554 | inst = PyInstance_NewRaw(data->newargs, dict); |
2555 | Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(dict)))); } while (0); |
2556 | } |
2557 | return (PyObject *) inst; |
2558 | #else |
2559 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type)( (PyInstanceObject *) PyObject_Init( (PyObject *) PyObject_Malloc ( ( (&PyInstance_Type)->tp_basicsize ) ), (&PyInstance_Type )) ); |
2560 | if (inst == NULL__null) { |
2561 | return NULL__null; |
2562 | } |
2563 | inst->in_class = (PyClassObject *)data->newargs; |
2564 | Py_INCREF(inst->in_class)( ((PyObject*)(inst->in_class))->ob_refcnt++); |
2565 | inst->in_dict = PyDict_New(); |
2566 | if (inst->in_dict == NULL__null) { |
2567 | Py_DECREF(inst)do { if ( --((PyObject*)(inst))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(inst)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(inst)))); } while (0); |
2568 | return NULL__null; |
2569 | } |
2570 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS(1L<<6) |
2571 | inst->in_weakreflist = NULL__null; |
2572 | #endif |
2573 | #ifdef Py_TPFLAGS_GC0 |
2574 | PyObject_GC_Init(inst); |
2575 | #endif |
2576 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); |
2577 | return (PyObject *) inst; |
2578 | #endif |
2579 | #endif |
2580 | } |
2581 | |
2582 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2583 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) |
2584 | { |
2585 | PyObject *dict; |
2586 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) |
2587 | PyObject **dictptr = _PyObject_GetDictPtr(inst); |
2588 | if (dictptr != NULL__null) { |
2589 | dict = *dictptr; |
2590 | if (dict == NULL__null) { |
2591 | dict = PyDict_New(); |
2592 | *dictptr = dict; |
2593 | } |
2594 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2595 | return; |
2596 | } |
2597 | #endif |
2598 | dict = PyObject_GetAttrString(inst, (char*)"__dict__"); |
2599 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2600 | Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(dict)))); } while (0); |
2601 | } |
2602 | |
2603 | |
2604 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
2605 | SWIG_Python_InitShadowInstance(PyObject *args) { |
2606 | PyObject *obj[2]; |
2607 | if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) { |
2608 | return NULL__null; |
2609 | } else { |
2610 | SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); |
2611 | if (sthis) { |
2612 | SwigPyObject_append((PyObject*) sthis, obj[1]); |
2613 | } else { |
2614 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
2615 | } |
2616 | return SWIG_Py_Void(); |
2617 | } |
2618 | } |
2619 | |
2620 | /* Create a new pointer object */ |
2621 | |
2622 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2623 | SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) { |
2624 | SwigPyClientData *clientdata; |
2625 | PyObject * robj; |
2626 | int own; |
2627 | |
2628 | if (!ptr) |
2629 | return SWIG_Py_Void(); |
2630 | |
2631 | clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; |
2632 | own = (flags & SWIG_POINTER_OWN0x1) ? SWIG_POINTER_OWN0x1 : 0; |
2633 | if (clientdata && clientdata->pytype) { |
2634 | SwigPyObject *newobj; |
2635 | if (flags & SWIG_BUILTIN_TP_INIT(0x1 << 2)) { |
2636 | newobj = (SwigPyObject*) self; |
2637 | if (newobj->ptr) { |
2638 | PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); |
2639 | while (newobj->next) |
2640 | newobj = (SwigPyObject *) newobj->next; |
2641 | newobj->next = next_self; |
2642 | newobj = (SwigPyObject *)next_self; |
2643 | #ifdef SWIGPYTHON_BUILTIN |
2644 | newobj->dict = 0; |
2645 | #endif |
2646 | } |
2647 | } else { |
2648 | newobj = PyObject_New(SwigPyObject, clientdata->pytype)( (SwigPyObject *) _PyObject_New(clientdata->pytype) ); |
2649 | #ifdef SWIGPYTHON_BUILTIN |
2650 | newobj->dict = 0; |
2651 | #endif |
2652 | } |
2653 | if (newobj) { |
2654 | newobj->ptr = ptr; |
2655 | newobj->ty = type; |
2656 | newobj->own = own; |
2657 | newobj->next = 0; |
2658 | return (PyObject*) newobj; |
2659 | } |
2660 | return SWIG_Py_Void(); |
2661 | } |
2662 | |
2663 | assert(!(flags & SWIG_BUILTIN_TP_INIT))(static_cast <bool> (!(flags & (0x1 << 2))) ? void (0) : __assert_fail ("!(flags & SWIG_BUILTIN_TP_INIT)" , "/build/llvm-toolchain-snapshot-7~svn329677/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp" , 2663, __extension__ __PRETTY_FUNCTION__)); |
2664 | |
2665 | robj = SwigPyObject_New(ptr, type, own); |
2666 | if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW(0x1 << 1))) { |
2667 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); |
2668 | Py_DECREF(robj)do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(robj)))); } while (0); |
2669 | robj = inst; |
2670 | } |
2671 | return robj; |
2672 | } |
2673 | |
2674 | /* Create a new packed object */ |
2675 | |
2676 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
2677 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
2678 | return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
2679 | } |
2680 | |
2681 | /* -----------------------------------------------------------------------------* |
2682 | * Get type list |
2683 | * -----------------------------------------------------------------------------*/ |
2684 | |
2685 | #ifdef SWIG_LINK_RUNTIME |
2686 | void *SWIG_ReturnGlobalTypeList(void *); |
2687 | #endif |
2688 | |
2689 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_module_info * |
2690 | SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { |
2691 | static void *type_pointer = (void *)0; |
2692 | /* first check if module already created */ |
2693 | if (!type_pointer) { |
2694 | #ifdef SWIG_LINK_RUNTIME |
2695 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); |
2696 | #else |
2697 | # ifdef SWIGPY_USE_CAPSULE |
2698 | type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), 0); |
2699 | # else |
2700 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4", |
2701 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); |
2702 | # endif |
2703 | if (PyErr_Occurred()) { |
2704 | PyErr_Clear(); |
2705 | type_pointer = (void *)0; |
2706 | } |
2707 | #endif |
2708 | } |
2709 | return (swig_module_info *) type_pointer; |
2710 | } |
2711 | |
2712 | #if PY_MAJOR_VERSION2 < 2 |
2713 | /* PyModule_AddObject function was introduced in Python 2.0. The following function |
2714 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
2715 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
2716 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) |
2717 | { |
2718 | PyObject *dict; |
2719 | if (!PyModule_Check(m)((((PyObject*)(m))->ob_type) == (&PyModule_Type) || PyType_IsSubtype ((((PyObject*)(m))->ob_type), (&PyModule_Type)))) { |
2720 | PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg"); |
2721 | return SWIG_ERROR(-1); |
2722 | } |
2723 | if (!o) { |
2724 | PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value"); |
2725 | return SWIG_ERROR(-1); |
2726 | } |
2727 | |
2728 | dict = PyModule_GetDict(m); |
2729 | if (dict == NULL__null) { |
2730 | /* Internal error -- modules must have a dict! */ |
2731 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", |
2732 | PyModule_GetName(m)); |
2733 | return SWIG_ERROR(-1); |
2734 | } |
2735 | if (PyDict_SetItemString(dict, name, o)) |
2736 | return SWIG_ERROR(-1); |
2737 | Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(o)))); } while (0); |
2738 | return SWIG_OK(0); |
2739 | } |
2740 | #endif |
2741 | |
2742 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2743 | #ifdef SWIGPY_USE_CAPSULE |
2744 | SWIG_Python_DestroyModule(PyObject *obj) |
2745 | #else |
2746 | SWIG_Python_DestroyModule(void *vptr) |
2747 | #endif |
2748 | { |
2749 | #ifdef SWIGPY_USE_CAPSULE |
2750 | swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" )); |
2751 | #else |
2752 | swig_module_info *swig_module = (swig_module_info *) vptr; |
2753 | #endif |
2754 | swig_type_info **types = swig_module->types; |
2755 | size_t i; |
2756 | for (i =0; i < swig_module->size; ++i) { |
2757 | swig_type_info *ty = types[i]; |
2758 | if (ty->owndata) { |
2759 | SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; |
2760 | if (data) SwigPyClientData_Del(data); |
2761 | } |
2762 | } |
2763 | 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); |
2764 | swig_this = NULL__null; |
2765 | } |
2766 | |
2767 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2768 | SWIG_Python_SetModule(swig_module_info *swig_module) { |
2769 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
2770 | /* Add a dummy module object into sys.modules */ |
2771 | PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4"); |
2772 | #else |
2773 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL__null, NULL__null, 0, NULL__null} }; /* Sentinel */ |
2774 | 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); |
2775 | #endif |
2776 | #ifdef SWIGPY_USE_CAPSULE |
2777 | PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), SWIG_Python_DestroyModule); |
2778 | if (pointer && module) { |
2779 | PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); |
2780 | } else { |
2781 | 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); |
2782 | } |
2783 | #else |
2784 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
2785 | if (pointer && module) { |
2786 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); |
2787 | } else { |
2788 | 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); |
2789 | } |
2790 | #endif |
2791 | } |
2792 | |
2793 | /* The python cached type query */ |
2794 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2795 | SWIG_Python_TypeCache(void) { |
2796 | static PyObject *SWIG_STATIC_POINTER(cache)cache = PyDict_New(); |
2797 | return cache; |
2798 | } |
2799 | |
2800 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
2801 | SWIG_Python_TypeQuery(const char *type) |
2802 | { |
2803 | PyObject *cache = SWIG_Python_TypeCache(); |
2804 | PyObject *key = SWIG_Python_str_FromChar(type); |
2805 | PyObject *obj = PyDict_GetItem(cache, key); |
2806 | swig_type_info *descriptor; |
2807 | if (obj) { |
2808 | #ifdef SWIGPY_USE_CAPSULE |
2809 | descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL__null); |
2810 | #else |
2811 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); |
2812 | #endif |
2813 | } else { |
2814 | swig_module_info *swig_module = SWIG_GetModule(0)SWIG_Python_GetModule(0); |
2815 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); |
2816 | if (descriptor) { |
2817 | #ifdef SWIGPY_USE_CAPSULE |
2818 | obj = PyCapsule_New((void*) descriptor, NULL__null, NULL__null); |
2819 | #else |
2820 | obj = PyCObject_FromVoidPtr(descriptor, NULL__null); |
2821 | #endif |
2822 | PyDict_SetItem(cache, key, obj); |
2823 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
2824 | } |
2825 | } |
2826 | Py_DECREF(key)do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(key)))); } while (0); |
2827 | return descriptor; |
2828 | } |
2829 | |
2830 | /* |
2831 | For backward compatibility only |
2832 | */ |
2833 | #define SWIG_POINTER_EXCEPTION0 0 |
2834 | #define SWIG_arg_fail(arg)SWIG_Python_ArgFail(arg) SWIG_Python_ArgFail(arg) |
2835 | #define SWIG_MustGetPtr(p, type, argnum, flags)SWIG_Python_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) |
2836 | |
2837 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2838 | SWIG_Python_AddErrMesg(const char* mesg, int infront) |
2839 | { |
2840 | if (PyErr_Occurred()) { |
2841 | PyObject *type = 0; |
2842 | PyObject *value = 0; |
2843 | PyObject *traceback = 0; |
2844 | PyErr_Fetch(&type, &value, &traceback); |
2845 | if (value) { |
2846 | char *tmp; |
2847 | PyObject *old_str = PyObject_Str(value); |
2848 | Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt ++); } while (0); |
2849 | PyErr_Clear(); |
2850 | if (infront) { |
2851 | PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); |
2852 | } else { |
2853 | PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); |
2854 | } |
2855 | SWIG_Python_str_DelForPy3(tmp); |
2856 | 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); |
2857 | } |
2858 | return 1; |
2859 | } else { |
2860 | return 0; |
2861 | } |
2862 | } |
2863 | |
2864 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2865 | SWIG_Python_ArgFail(int argnum) |
2866 | { |
2867 | if (PyErr_Occurred()) { |
2868 | /* add information about failing argument */ |
2869 | char mesg[256]; |
2870 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); |
2871 | return SWIG_Python_AddErrMesg(mesg, 1); |
2872 | } else { |
2873 | return 0; |
2874 | } |
2875 | } |
2876 | |
2877 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char * |
2878 | SwigPyObject_GetDesc(PyObject *self) |
2879 | { |
2880 | SwigPyObject *v = (SwigPyObject *)self; |
2881 | swig_type_info *ty = v ? v->ty : 0; |
2882 | return ty ? ty->str : ""; |
2883 | } |
2884 | |
2885 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2886 | SWIG_Python_TypeError(const char *type, PyObject *obj) |
2887 | { |
2888 | if (type) { |
2889 | #if defined(SWIG_COBJECT_TYPES) |
2890 | if (obj && SwigPyObject_Check(obj)) { |
2891 | const char *otype = (const char *) SwigPyObject_GetDesc(obj); |
2892 | if (otype) { |
2893 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", |
2894 | type, otype); |
2895 | return; |
2896 | } |
2897 | } else |
2898 | #endif |
2899 | { |
2900 | const char *otype = (obj ? obj->ob_type->tp_name : 0); |
2901 | if (otype) { |
2902 | PyObject *str = PyObject_Str(obj); |
2903 | const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; |
2904 | if (cstr) { |
2905 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", |
2906 | type, otype, cstr); |
2907 | SWIG_Python_str_DelForPy3(cstr); |
2908 | } else { |
2909 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", |
2910 | type, otype); |
2911 | } |
2912 | 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); |
2913 | return; |
2914 | } |
2915 | } |
2916 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); |
2917 | } else { |
2918 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); |
2919 | } |
2920 | } |
2921 | |
2922 | |
2923 | /* Convert a pointer value, signal an exception on a type mismatch */ |
2924 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void * |
2925 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) { |
2926 | void *result; |
2927 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags)SWIG_Python_ConvertPtrAndOwn(obj, &result, ty, flags, 0) == -1) { |
2928 | PyErr_Clear(); |
2929 | #if SWIG_POINTER_EXCEPTION0 |
2930 | if (flags) { |
2931 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); |
2932 | SWIG_Python_ArgFail(argnum); |
2933 | } |
2934 | #endif |
2935 | } |
2936 | return result; |
2937 | } |
2938 | |
2939 | #ifdef SWIGPYTHON_BUILTIN |
2940 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2941 | SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { |
2942 | PyTypeObject *tp = obj->ob_type; |
2943 | PyObject *descr; |
2944 | PyObject *encoded_name; |
2945 | descrsetfunc f; |
2946 | int res = -1; |
2947 | |
2948 | # ifdef Py_USING_UNICODE1 |
2949 | if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0)) { |
2950 | name = PyUnicode_DecodePyUnicodeUCS4_Decode(PyString_AsString(name), PyString_Size(name), NULL__null, NULL__null); |
2951 | if (!name) |
2952 | return -1; |
2953 | } else if (!PyUnicode_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<28))) != 0)) |
2954 | # else |
2955 | if (!PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0)) |
2956 | # endif |
2957 | { |
2958 | PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name); |
2959 | return -1; |
2960 | } else { |
2961 | Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++); |
2962 | } |
2963 | |
2964 | if (!tp->tp_dict) { |
2965 | if (PyType_Ready(tp) < 0) |
2966 | goto done; |
2967 | } |
2968 | |
2969 | descr = _PyType_Lookup(tp, name); |
2970 | f = NULL__null; |
2971 | if (descr != NULL__null) |
2972 | f = descr->ob_type->tp_descr_set; |
2973 | if (!f) { |
2974 | if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0)) { |
2975 | encoded_name = name; |
2976 | Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++); |
2977 | } else { |
2978 | encoded_name = PyUnicode_AsUTF8StringPyUnicodeUCS4_AsUTF8String(name); |
2979 | } |
2980 | PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); |
2981 | 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); |
2982 | } else { |
2983 | res = f(descr, obj, value); |
2984 | } |
2985 | |
2986 | done: |
2987 | Py_DECREF(name)do { if ( --((PyObject*)(name))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(name)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(name)))); } while (0); |
2988 | return res; |
2989 | } |
2990 | #endif |
2991 | |
2992 | |
2993 | #ifdef __cplusplus201103L |
2994 | } |
2995 | #endif |
2996 | |
2997 | |
2998 | |
2999 | #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) |
3000 | |
3001 | #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 |
3002 | |
3003 | |
3004 | |
3005 | // Forward declaration to be inserted at the start of LLDBWrapPython.h |
3006 | #include "lldb/API/SBDebugger.h" |
3007 | #include "lldb/API/SBValue.h" |
3008 | |
3009 | SWIGEXPORT__attribute__ ((visibility("default"))) lldb::ValueObjectSP |
3010 | LLDBSWIGPython_GetValueObjectSPFromSBValue (void* data) |
3011 | { |
3012 | lldb::ValueObjectSP valobj_sp; |
3013 | if (data) |
3014 | { |
3015 | lldb::SBValue* sb_ptr = (lldb::SBValue *)data; |
3016 | valobj_sp = sb_ptr->GetSP(); |
3017 | } |
3018 | return valobj_sp; |
3019 | } |
3020 | |
3021 | #ifdef __cplusplus201103L |
3022 | extern "C" { |
3023 | #endif |
3024 | |
3025 | void LLDBSwigPythonCallPythonLogOutputCallback(const char *str, void *baton); |
3026 | |
3027 | #ifdef __cplusplus201103L |
3028 | } |
3029 | #endif |
3030 | |
3031 | |
3032 | /* -------- TYPES TABLE (BEGIN) -------- */ |
3033 | |
3034 | #define SWIGTYPE_p_FILEswig_types[0] swig_types[0] |
3035 | #define SWIGTYPE_p_boolswig_types[1] swig_types[1] |
3036 | #define SWIGTYPE_p_charswig_types[2] swig_types[2] |
3037 | #define SWIGTYPE_p_doubleswig_types[3] swig_types[3] |
3038 | #define SWIGTYPE_p_f_p_void__p_voidswig_types[4] swig_types[4] |
3039 | #define SWIGTYPE_p_f_p_void_p_q_const__void_size_t__voidswig_types[5] swig_types[5] |
3040 | #define SWIGTYPE_p_intswig_types[6] swig_types[6] |
3041 | #define SWIGTYPE_p_lldb__ConnectionStatusswig_types[7] swig_types[7] |
3042 | #define SWIGTYPE_p_lldb__SBAddressswig_types[8] swig_types[8] |
3043 | #define SWIGTYPE_p_lldb__SBAttachInfoswig_types[9] swig_types[9] |
3044 | #define SWIGTYPE_p_lldb__SBBlockswig_types[10] swig_types[10] |
3045 | #define SWIGTYPE_p_lldb__SBBreakpointswig_types[11] swig_types[11] |
3046 | #define SWIGTYPE_p_lldb__SBBreakpointListswig_types[12] swig_types[12] |
3047 | #define SWIGTYPE_p_lldb__SBBreakpointLocationswig_types[13] swig_types[13] |
3048 | #define SWIGTYPE_p_lldb__SBBreakpointNameswig_types[14] swig_types[14] |
3049 | #define SWIGTYPE_p_lldb__SBBroadcasterswig_types[15] swig_types[15] |
3050 | #define SWIGTYPE_p_lldb__SBCommandInterpreterswig_types[16] swig_types[16] |
3051 | #define SWIGTYPE_p_lldb__SBCommandInterpreterRunOptionsswig_types[17] swig_types[17] |
3052 | #define SWIGTYPE_p_lldb__SBCommandReturnObjectswig_types[18] swig_types[18] |
3053 | #define SWIGTYPE_p_lldb__SBCommunicationswig_types[19] swig_types[19] |
3054 | #define SWIGTYPE_p_lldb__SBCompileUnitswig_types[20] swig_types[20] |
3055 | #define SWIGTYPE_p_lldb__SBDataswig_types[21] swig_types[21] |
3056 | #define SWIGTYPE_p_lldb__SBDebuggerswig_types[22] swig_types[22] |
3057 | #define SWIGTYPE_p_lldb__SBDeclarationswig_types[23] swig_types[23] |
3058 | #define SWIGTYPE_p_lldb__SBErrorswig_types[24] swig_types[24] |
3059 | #define SWIGTYPE_p_lldb__SBEventswig_types[25] swig_types[25] |
3060 | #define SWIGTYPE_p_lldb__SBExecutionContextswig_types[26] swig_types[26] |
3061 | #define SWIGTYPE_p_lldb__SBExpressionOptionsswig_types[27] swig_types[27] |
3062 | #define SWIGTYPE_p_lldb__SBFileSpecswig_types[28] swig_types[28] |
3063 | #define SWIGTYPE_p_lldb__SBFileSpecListswig_types[29] swig_types[29] |
3064 | #define SWIGTYPE_p_lldb__SBFrameswig_types[30] swig_types[30] |
3065 | #define SWIGTYPE_p_lldb__SBFunctionswig_types[31] swig_types[31] |
3066 | #define SWIGTYPE_p_lldb__SBHostOSswig_types[32] swig_types[32] |
3067 | #define SWIGTYPE_p_lldb__SBInstructionswig_types[33] swig_types[33] |
3068 | #define SWIGTYPE_p_lldb__SBInstructionListswig_types[34] swig_types[34] |
3069 | #define SWIGTYPE_p_lldb__SBLanguageRuntimeswig_types[35] swig_types[35] |
3070 | #define SWIGTYPE_p_lldb__SBLaunchInfoswig_types[36] swig_types[36] |
3071 | #define SWIGTYPE_p_lldb__SBLineEntryswig_types[37] swig_types[37] |
3072 | #define SWIGTYPE_p_lldb__SBListenerswig_types[38] swig_types[38] |
3073 | #define SWIGTYPE_p_lldb__SBMemoryRegionInfoswig_types[39] swig_types[39] |
3074 | #define SWIGTYPE_p_lldb__SBMemoryRegionInfoListswig_types[40] swig_types[40] |
3075 | #define SWIGTYPE_p_lldb__SBModuleswig_types[41] swig_types[41] |
3076 | #define SWIGTYPE_p_lldb__SBModuleSpecswig_types[42] swig_types[42] |
3077 | #define SWIGTYPE_p_lldb__SBModuleSpecListswig_types[43] swig_types[43] |
3078 | #define SWIGTYPE_p_lldb__SBPlatformswig_types[44] swig_types[44] |
3079 | #define SWIGTYPE_p_lldb__SBPlatformConnectOptionsswig_types[45] swig_types[45] |
3080 | #define SWIGTYPE_p_lldb__SBPlatformShellCommandswig_types[46] swig_types[46] |
3081 | #define SWIGTYPE_p_lldb__SBProcessswig_types[47] swig_types[47] |
3082 | #define SWIGTYPE_p_lldb__SBProcessInfoswig_types[48] swig_types[48] |
3083 | #define SWIGTYPE_p_lldb__SBQueueswig_types[49] swig_types[49] |
3084 | #define SWIGTYPE_p_lldb__SBQueueItemswig_types[50] swig_types[50] |
3085 | #define SWIGTYPE_p_lldb__SBSectionswig_types[51] swig_types[51] |
3086 | #define SWIGTYPE_p_lldb__SBSourceManagerswig_types[52] swig_types[52] |
3087 | #define SWIGTYPE_p_lldb__SBStreamswig_types[53] swig_types[53] |
3088 | #define SWIGTYPE_p_lldb__SBStringListswig_types[54] swig_types[54] |
3089 | #define SWIGTYPE_p_lldb__SBStructuredDataswig_types[55] swig_types[55] |
3090 | #define SWIGTYPE_p_lldb__SBSymbolswig_types[56] swig_types[56] |
3091 | #define SWIGTYPE_p_lldb__SBSymbolContextswig_types[57] swig_types[57] |
3092 | #define SWIGTYPE_p_lldb__SBSymbolContextListswig_types[58] swig_types[58] |
3093 | #define SWIGTYPE_p_lldb__SBTargetswig_types[59] swig_types[59] |
3094 | #define SWIGTYPE_p_lldb__SBThreadswig_types[60] swig_types[60] |
3095 | #define SWIGTYPE_p_lldb__SBThreadCollectionswig_types[61] swig_types[61] |
3096 | #define SWIGTYPE_p_lldb__SBThreadPlanswig_types[62] swig_types[62] |
3097 | #define SWIGTYPE_p_lldb__SBTraceswig_types[63] swig_types[63] |
3098 | #define SWIGTYPE_p_lldb__SBTraceOptionsswig_types[64] swig_types[64] |
3099 | #define SWIGTYPE_p_lldb__SBTypeswig_types[65] swig_types[65] |
3100 | #define SWIGTYPE_p_lldb__SBTypeCategoryswig_types[66] swig_types[66] |
3101 | #define SWIGTYPE_p_lldb__SBTypeEnumMemberswig_types[67] swig_types[67] |
3102 | #define SWIGTYPE_p_lldb__SBTypeEnumMemberListswig_types[68] swig_types[68] |
3103 | #define SWIGTYPE_p_lldb__SBTypeFilterswig_types[69] swig_types[69] |
3104 | #define SWIGTYPE_p_lldb__SBTypeFormatswig_types[70] swig_types[70] |
3105 | #define SWIGTYPE_p_lldb__SBTypeListswig_types[71] swig_types[71] |
3106 | #define SWIGTYPE_p_lldb__SBTypeMemberswig_types[72] swig_types[72] |
3107 | #define SWIGTYPE_p_lldb__SBTypeMemberFunctionswig_types[73] swig_types[73] |
3108 | #define SWIGTYPE_p_lldb__SBTypeNameSpecifierswig_types[74] swig_types[74] |
3109 | #define SWIGTYPE_p_lldb__SBTypeSummaryswig_types[75] swig_types[75] |
3110 | #define SWIGTYPE_p_lldb__SBTypeSummaryOptionsswig_types[76] swig_types[76] |
3111 | #define SWIGTYPE_p_lldb__SBTypeSyntheticswig_types[77] swig_types[77] |
3112 | #define SWIGTYPE_p_lldb__SBUnixSignalsswig_types[78] swig_types[78] |
3113 | #define SWIGTYPE_p_lldb__SBValueswig_types[79] swig_types[79] |
3114 | #define SWIGTYPE_p_lldb__SBValueListswig_types[80] swig_types[80] |
3115 | #define SWIGTYPE_p_lldb__SBVariablesOptionsswig_types[81] swig_types[81] |
3116 | #define SWIGTYPE_p_lldb__SBWatchpointswig_types[82] swig_types[82] |
3117 | #define SWIGTYPE_p_lldb_private__SharingPtrT_lldb_private__ValueObject_tswig_types[83] swig_types[83] |
3118 | #define SWIGTYPE_p_long_doubleswig_types[84] swig_types[84] |
3119 | #define SWIGTYPE_p_long_longswig_types[85] swig_types[85] |
3120 | #define SWIGTYPE_p_p_voidswig_types[86] swig_types[86] |
3121 | #define SWIGTYPE_p_pthread_rwlock_tswig_types[87] swig_types[87] |
3122 | #define SWIGTYPE_p_pthread_tswig_types[88] swig_types[88] |
3123 | #define SWIGTYPE_p_shortswig_types[89] swig_types[89] |
3124 | #define SWIGTYPE_p_signed_charswig_types[90] swig_types[90] |
3125 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__ABI_tswig_types[91] swig_types[91] |
3126 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Baton_tswig_types[92] swig_types[92] |
3127 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Block_tswig_types[93] swig_types[93] |
3128 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointLocation_tswig_types[94] swig_types[94] |
3129 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointResolver_tswig_types[95] swig_types[95] |
3130 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__BreakpointSite_tswig_types[96] swig_types[96] |
3131 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Breakpoint_tswig_types[97] swig_types[97] |
3132 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__BroadcasterManager_tswig_types[98] swig_types[98] |
3133 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Broadcaster_tswig_types[99] swig_types[99] |
3134 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__ClangASTImporter_tswig_types[100] swig_types[100] |
3135 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__CommandObject_tswig_types[101] swig_types[101] |
3136 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Communication_tswig_types[102] swig_types[102] |
3137 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__CompileUnit_tswig_types[103] swig_types[103] |
3138 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Connection_tswig_types[104] swig_types[104] |
3139 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__DataBuffer_tswig_types[105] swig_types[105] |
3140 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__DataExtractor_tswig_types[106] swig_types[106] |
3141 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Debugger_tswig_types[107] swig_types[107] |
3142 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Disassembler_tswig_types[108] swig_types[108] |
3143 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__DynamicLoader_tswig_types[109] swig_types[109] |
3144 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__EventDataStructuredData_tswig_types[110] swig_types[110] |
3145 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__EventData_tswig_types[111] swig_types[111] |
3146 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Event_tswig_types[112] swig_types[112] |
3147 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__ExecutionContextRef_tswig_types[113] swig_types[113] |
3148 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__ExpressionVariable_tswig_types[114] swig_types[114] |
3149 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__File_tswig_types[115] swig_types[115] |
3150 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__FuncUnwinders_tswig_types[116] swig_types[116] |
3151 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__FunctionCaller_tswig_types[117] swig_types[117] |
3152 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Function_tswig_types[118] swig_types[118] |
3153 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__IOHandler_tswig_types[119] swig_types[119] |
3154 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__IOObject_tswig_types[120] swig_types[120] |
3155 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__IRExecutionUnit_tswig_types[121] swig_types[121] |
3156 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__InlineFunctionInfo_tswig_types[122] swig_types[122] |
3157 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Instruction_tswig_types[123] swig_types[123] |
3158 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__InstrumentationRuntime_tswig_types[124] swig_types[124] |
3159 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__JITLoader_tswig_types[125] swig_types[125] |
3160 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__LanguageRuntime_tswig_types[126] swig_types[126] |
3161 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__LineTable_tswig_types[127] swig_types[127] |
3162 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Listener_tswig_types[128] swig_types[128] |
3163 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__MemoryHistory_tswig_types[129] swig_types[129] |
3164 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__MemoryRegionInfo_tswig_types[130] swig_types[130] |
3165 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Module_tswig_types[131] swig_types[131] |
3166 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__ObjectFileJITDelegate_tswig_types[132] swig_types[132] |
3167 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__ObjectFile_tswig_types[133] swig_types[133] |
3168 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueArch_tswig_types[134] swig_types[134] |
3169 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueArgs_tswig_types[135] swig_types[135] |
3170 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueArray_tswig_types[136] swig_types[136] |
3171 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueBoolean_tswig_types[137] swig_types[137] |
3172 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueDictionary_tswig_types[138] swig_types[138] |
3173 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueFileSpecList_tswig_types[139] swig_types[139] |
3174 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueFileSpec_tswig_types[140] swig_types[140] |
3175 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueFormat_tswig_types[141] swig_types[141] |
3176 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValuePathMappings_tswig_types[142] swig_types[142] |
3177 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueProperties_tswig_types[143] swig_types[143] |
3178 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueRegex_tswig_types[144] swig_types[144] |
3179 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueSInt64_tswig_types[145] swig_types[145] |
3180 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueString_tswig_types[146] swig_types[146] |
3181 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueUInt64_tswig_types[147] swig_types[147] |
3182 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValueUUID_tswig_types[148] swig_types[148] |
3183 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__OptionValue_tswig_types[149] swig_types[149] |
3184 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Platform_tswig_types[150] swig_types[150] |
3185 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__ProcessAttachInfo_tswig_types[151] swig_types[151] |
3186 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__ProcessLaunchInfo_tswig_types[152] swig_types[152] |
3187 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Process_tswig_types[153] swig_types[153] |
3188 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Property_tswig_types[154] swig_types[154] |
3189 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__QueueItem_tswig_types[155] swig_types[155] |
3190 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Queue_tswig_types[156] swig_types[156] |
3191 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__REPL_tswig_types[157] swig_types[157] |
3192 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegisterCheckpoint_tswig_types[158] swig_types[158] |
3193 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegisterContext_tswig_types[159] swig_types[159] |
3194 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__RegularExpression_tswig_types[160] swig_types[160] |
3195 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptInterpreter_tswig_types[161] swig_types[161] |
3196 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptSummaryFormat_tswig_types[162] swig_types[162] |
3197 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__ScriptedSyntheticChildren_tswig_types[163] swig_types[163] |
3198 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__SearchFilter_tswig_types[164] swig_types[164] |
3199 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__SectionLoadList_tswig_types[165] swig_types[165] |
3200 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Section_tswig_types[166] swig_types[166] |
3201 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Settings_tswig_types[167] swig_types[167] |
3202 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__StackFrameList_tswig_types[168] swig_types[168] |
3203 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__StackFrame_tswig_types[169] swig_types[169] |
3204 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__StopInfo_tswig_types[170] swig_types[170] |
3205 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__StoppointLocation_tswig_types[171] swig_types[171] |
3206 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__StreamFile_tswig_types[172] swig_types[172] |
3207 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Stream_tswig_types[173] swig_types[173] |
3208 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__StringSummaryFormat_tswig_types[174] swig_types[174] |
3209 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__StructuredDataPlugin_tswig_types[175] swig_types[175] |
3210 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__SymbolContextSpecifier_tswig_types[176] swig_types[176] |
3211 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__SymbolFileType_tswig_types[177] swig_types[177] |
3212 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__SymbolFile_tswig_types[178] swig_types[178] |
3213 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__SyntheticChildrenFrontEnd_tswig_types[179] swig_types[179] |
3214 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__SyntheticChildren_tswig_types[180] swig_types[180] |
3215 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__SystemRuntime_tswig_types[181] swig_types[181] |
3216 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__TargetProperties_tswig_types[182] swig_types[182] |
3217 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Target_tswig_types[183] swig_types[183] |
3218 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadCollection_tswig_types[184] swig_types[184] |
3219 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadPlanTracer_tswig_types[185] swig_types[185] |
3220 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__ThreadPlan_tswig_types[186] swig_types[186] |
3221 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Thread_tswig_types[187] swig_types[187] |
3222 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__TraceOptions_tswig_types[188] swig_types[188] |
3223 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeCategoryImpl_tswig_types[189] swig_types[189] |
3224 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeEnumMemberImpl_tswig_types[190] swig_types[190] |
3225 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeFilterImpl_tswig_types[191] swig_types[191] |
3226 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeFormatImpl_tswig_types[192] swig_types[192] |
3227 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeImpl_tswig_types[193] swig_types[193] |
3228 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeMemberFunctionImpl_tswig_types[194] swig_types[194] |
3229 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeNameSpecifierImpl_tswig_types[195] swig_types[195] |
3230 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSummaryImpl_tswig_types[196] swig_types[196] |
3231 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSummaryOptions_tswig_types[197] swig_types[197] |
3232 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeSystem_tswig_types[198] swig_types[198] |
3233 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__TypeValidatorImpl_tswig_types[199] swig_types[199] |
3234 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Type_tswig_types[200] swig_types[200] |
3235 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnixSignals_tswig_types[201] swig_types[201] |
3236 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnwindAssembly_tswig_types[202] swig_types[202] |
3237 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__UnwindPlan_tswig_types[203] swig_types[203] |
3238 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__UserExpression_tswig_types[204] swig_types[204] |
3239 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__UtilityFunction_tswig_types[205] swig_types[205] |
3240 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__ValueList_tswig_types[206] swig_types[206] |
3241 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__ValueObjectList_tswig_types[207] swig_types[207] |
3242 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Value_tswig_types[208] swig_types[208] |
3243 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__VariableList_tswig_types[209] swig_types[209] |
3244 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Variable_tswig_types[210] swig_types[210] |
3245 | #define SWIGTYPE_p_std__shared_ptrT_lldb_private__Watchpoint_tswig_types[211] swig_types[211] |
3246 | #define SWIGTYPE_p_std__unique_ptrT_lldb_private__ClangASTContext_tswig_types[212] swig_types[212] |
3247 | #define SWIGTYPE_p_std__unique_ptrT_lldb_private__ClangModulesDeclVendor_tswig_types[213] swig_types[213] |
3248 | #define SWIGTYPE_p_std__unique_ptrT_lldb_private__ClangPersistentVariables_tswig_types[214] swig_types[214] |
3249 | #define SWIGTYPE_p_std__unique_ptrT_lldb_private__DynamicCheckerFunctions_tswig_types[215] swig_types[215] |
3250 | #define SWIGTYPE_p_std__unique_ptrT_lldb_private__DynamicLoader_tswig_types[216] swig_types[216] |
3251 | #define SWIGTYPE_p_std__unique_ptrT_lldb_private__GoASTContext_tswig_types[217] swig_types[217] |
3252 | #define SWIGTYPE_p_std__unique_ptrT_lldb_private__JITLoaderList_tswig_types[218] swig_types[218] |
3253 | #define SWIGTYPE_p_std__unique_ptrT_lldb_private__MemoryRegionInfo_tswig_types[219] swig_types[219] |
3254 | #define SWIGTYPE_p_std__unique_ptrT_lldb_private__OperatingSystem_tswig_types[220] swig_types[220] |
3255 | #define SWIGTYPE_p_std__unique_ptrT_lldb_private__ScriptInterpreter_tswig_types[221] swig_types[221] |
3256 | #define SWIGTYPE_p_std__unique_ptrT_lldb_private__SectionList_tswig_types[222] swig_types[222] |
3257 | #define SWIGTYPE_p_std__unique_ptrT_lldb_private__SourceManager_tswig_types[223] swig_types[223] |
3258 | #define SWIGTYPE_p_std__unique_ptrT_lldb_private__StackFrame_tswig_types[224] swig_types[224] |
3259 | #define SWIGTYPE_p_std__unique_ptrT_lldb_private__StructuredDataImpl_tswig_types[225] swig_types[225] |
3260 | #define SWIGTYPE_p_std__unique_ptrT_lldb_private__SymbolVendor_tswig_types[226] swig_types[226] |
3261 | #define SWIGTYPE_p_std__unique_ptrT_lldb_private__SystemRuntime_tswig_types[227] swig_types[227] |
3262 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__BreakpointLocation_tswig_types[228] swig_types[228] |
3263 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__BreakpointSite_tswig_types[229] swig_types[229] |
3264 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__Breakpoint_tswig_types[230] swig_types[230] |
3265 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__BroadcasterManager_tswig_types[231] swig_types[231] |
3266 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__Debugger_tswig_types[232] swig_types[232] |
3267 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__Listener_tswig_types[233] swig_types[233] |
3268 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__Module_tswig_types[234] swig_types[234] |
3269 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__ObjectFileJITDelegate_tswig_types[235] swig_types[235] |
3270 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__ObjectFile_tswig_types[236] swig_types[236] |
3271 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__OptionValue_tswig_types[237] swig_types[237] |
3272 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__Process_tswig_types[238] swig_types[238] |
3273 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__Queue_tswig_types[239] swig_types[239] |
3274 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__Section_tswig_types[240] swig_types[240] |
3275 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__StackFrame_tswig_types[241] swig_types[241] |
3276 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__Stream_tswig_types[242] swig_types[242] |
3277 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__StructuredDataPlugin_tswig_types[243] swig_types[243] |
3278 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__SymbolFileType_tswig_types[244] swig_types[244] |
3279 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__Target_tswig_types[245] swig_types[245] |
3280 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__Thread_tswig_types[246] swig_types[246] |
3281 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__Type_tswig_types[247] swig_types[247] |
3282 | #define SWIGTYPE_p_std__weak_ptrT_lldb_private__UnixSignals_tswig_types[248] swig_types[248] |
3283 | #define SWIGTYPE_p_unsigned_charswig_types[249] swig_types[249] |
3284 | #define SWIGTYPE_p_unsigned_intswig_types[250] swig_types[250] |
3285 | #define SWIGTYPE_p_unsigned_long_longswig_types[251] swig_types[251] |
3286 | #define SWIGTYPE_p_unsigned_shortswig_types[252] swig_types[252] |
3287 | #define SWIGTYPE_p_voidswig_types[253] swig_types[253] |
3288 | static swig_type_info *swig_types[255]; |
3289 | static swig_module_info swig_module = {swig_types, 254, 0, 0, 0, 0}; |
3290 | #define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name ) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
3291 | #define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module , name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) |
3292 | |
3293 | /* -------- TYPES TABLE (END) -------- */ |
3294 | |
3295 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) <= 0x02000000) |
3296 | # if !defined(SWIG_PYTHON_CLASSIC) |
3297 | # error "This python version requires swig to be run with the '-classic' option" |
3298 | # endif |
3299 | #endif |
3300 | |
3301 | /*----------------------------------------------- |
3302 | @(target):= _lldb.so |
3303 | ------------------------------------------------*/ |
3304 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
3305 | # define SWIG_initinit_lldb PyInit__lldb |
3306 | |
3307 | #else |
3308 | # define SWIG_initinit_lldb init_lldb |
3309 | |
3310 | #endif |
3311 | #define SWIG_name"_lldb" "_lldb" |
3312 | |
3313 | #define SWIGVERSION0x030012 0x030012 |
3314 | #define SWIG_VERSION0x030012 SWIGVERSION0x030012 |
3315 | |
3316 | |
3317 | #define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >( a)) const_cast< void * >(static_cast< const void * >(a)) |
3318 | #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)) |
3319 | |
3320 | |
3321 | #include <stdexcept> |
3322 | |
3323 | |
3324 | namespace swig { |
3325 | class SwigPtr_PyObject { |
3326 | protected: |
3327 | PyObject *_obj; |
3328 | |
3329 | public: |
3330 | SwigPtr_PyObject() :_obj(0) |
3331 | { |
3332 | } |
3333 | |
3334 | SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) |
3335 | { |
3336 | SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block; |
3337 | Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt ++); } while (0); |
3338 | SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end(); |
3339 | } |
3340 | |
3341 | SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) |
3342 | { |
3343 | if (initial_ref) { |
3344 | SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block; |
3345 | Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt ++); } while (0); |
3346 | SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end(); |
3347 | } |
3348 | } |
3349 | |
3350 | SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) |
3351 | { |
3352 | SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block; |
3353 | Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj ))->ob_refcnt++); } while (0); |
3354 | 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); |
3355 | _obj = item._obj; |
3356 | SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end(); |
3357 | return *this; |
3358 | } |
3359 | |
3360 | ~SwigPtr_PyObject() |
3361 | { |
3362 | SWIG_PYTHON_THREAD_BEGIN_BLOCKSWIG_Python_Thread_Block _swig_thread_block; |
3363 | 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); |
3364 | SWIG_PYTHON_THREAD_END_BLOCK_swig_thread_block.end(); |
3365 | } |
3366 | |
3367 | operator PyObject *() const |
3368 | { |
3369 | return _obj; |
3370 | } |
3371 | |
3372 | PyObject *operator->() const |
3373 | { |
3374 | return _obj; |
3375 | } |
3376 | }; |
3377 | } |
3378 | |
3379 | |
3380 | namespace swig { |
3381 | struct SwigVar_PyObject : SwigPtr_PyObject { |
3382 | SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } |
3383 | |
3384 | SwigVar_PyObject & operator = (PyObject* obj) |
3385 | { |
3386 | 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); |
3387 | _obj = obj; |
3388 | return *this; |
3389 | } |
3390 | }; |
3391 | } |
3392 | |
3393 | |
3394 | #include <algorithm> |
3395 | #include <string> |
3396 | |
3397 | |
3398 | #include "lldb/lldb-public.h" |
3399 | #include "lldb/API/SBAddress.h" |
3400 | #include "lldb/API/SBAttachInfo.h" |
3401 | #include "lldb/API/SBBlock.h" |
3402 | #include "lldb/API/SBBreakpoint.h" |
3403 | #include "lldb/API/SBBreakpointLocation.h" |
3404 | #include "lldb/API/SBBreakpointName.h" |
3405 | #include "lldb/API/SBBroadcaster.h" |
3406 | #include "lldb/API/SBCommandInterpreter.h" |
3407 | #include "lldb/API/SBCommandReturnObject.h" |
3408 | #include "lldb/API/SBCommunication.h" |
3409 | #include "lldb/API/SBCompileUnit.h" |
3410 | #include "lldb/API/SBData.h" |
3411 | #include "lldb/API/SBDebugger.h" |
3412 | #include "lldb/API/SBDeclaration.h" |
3413 | #include "lldb/API/SBError.h" |
3414 | #include "lldb/API/SBEvent.h" |
3415 | #include "lldb/API/SBExecutionContext.h" |
3416 | #include "lldb/API/SBExpressionOptions.h" |
3417 | #include "lldb/API/SBFileSpec.h" |
3418 | #include "lldb/API/SBFileSpecList.h" |
3419 | #include "lldb/API/SBFrame.h" |
3420 | #include "lldb/API/SBFunction.h" |
3421 | #include "lldb/API/SBHostOS.h" |
3422 | #include "lldb/API/SBInstruction.h" |
3423 | #include "lldb/API/SBInstructionList.h" |
3424 | #include "lldb/API/SBLanguageRuntime.h" |
3425 | #include "lldb/API/SBLaunchInfo.h" |
3426 | #include "lldb/API/SBLineEntry.h" |
3427 | #include "lldb/API/SBListener.h" |
3428 | #include "lldb/API/SBMemoryRegionInfo.h" |
3429 | #include "lldb/API/SBMemoryRegionInfoList.h" |
3430 | #include "lldb/API/SBModule.h" |
3431 | #include "lldb/API/SBModuleSpec.h" |
3432 | #include "lldb/API/SBPlatform.h" |
3433 | #include "lldb/API/SBProcess.h" |
3434 | #include "lldb/API/SBProcessInfo.h" |
3435 | #include "lldb/API/SBQueue.h" |
3436 | #include "lldb/API/SBQueueItem.h" |
3437 | #include "lldb/API/SBSection.h" |
3438 | #include "lldb/API/SBSourceManager.h" |
3439 | #include "lldb/API/SBStream.h" |
3440 | #include "lldb/API/SBStringList.h" |
3441 | #include "lldb/API/SBStructuredData.h" |
3442 | #include "lldb/API/SBSymbol.h" |
3443 | #include "lldb/API/SBSymbolContext.h" |
3444 | #include "lldb/API/SBSymbolContextList.h" |
3445 | #include "lldb/API/SBTarget.h" |
3446 | #include "lldb/API/SBThread.h" |
3447 | #include "lldb/API/SBThreadCollection.h" |
3448 | #include "lldb/API/SBThreadPlan.h" |
3449 | #include "lldb/API/SBTrace.h" |
3450 | #include "lldb/API/SBTraceOptions.h" |
3451 | #include "lldb/API/SBType.h" |
3452 | #include "lldb/API/SBTypeCategory.h" |
3453 | #include "lldb/API/SBTypeEnumMember.h" |
3454 | #include "lldb/API/SBTypeFilter.h" |
3455 | #include "lldb/API/SBTypeFormat.h" |
3456 | #include "lldb/API/SBTypeNameSpecifier.h" |
3457 | #include "lldb/API/SBTypeSummary.h" |
3458 | #include "lldb/API/SBTypeSynthetic.h" |
3459 | #include "lldb/API/SBValue.h" |
3460 | #include "lldb/API/SBValueList.h" |
3461 | #include "lldb/API/SBVariablesOptions.h" |
3462 | #include "lldb/API/SBWatchpoint.h" |
3463 | #include "lldb/API/SBUnixSignals.h" |
3464 | |
3465 | #include "../source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h" |
3466 | |
3467 | #include "../scripts/Python/python-swigsafecast.swig" |
3468 | |
3469 | |
3470 | #include <stdint.h> // Use the C99 official header |
3471 | |
3472 | |
3473 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3474 | SWIG_From_int (int value) |
3475 | { |
3476 | return PyInt_FromLong((long) value); |
3477 | } |
3478 | |
3479 | |
3480 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3481 | SWIG_From_unsigned_SS_int (unsigned int value) |
3482 | { |
3483 | return PyInt_FromSize_t((size_t) value); |
3484 | } |
3485 | |
3486 | |
3487 | #include <limits.h> |
3488 | #if !defined(SWIG_NO_LLONG_MAX) |
3489 | # if !defined(LLONG_MAX9223372036854775807LL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL) |
3490 | # define LLONG_MAX9223372036854775807LL __LONG_LONG_MAX__9223372036854775807LL |
3491 | # define LLONG_MIN(-9223372036854775807LL -1LL) (-LLONG_MAX9223372036854775807LL - 1LL) |
3492 | # define ULLONG_MAX(9223372036854775807LL*2ULL+1ULL) (LLONG_MAX9223372036854775807LL * 2ULL + 1ULL) |
3493 | # endif |
3494 | #endif |
3495 | |
3496 | |
3497 | #if defined(LLONG_MAX9223372036854775807LL) && !defined(SWIG_LONG_LONG_AVAILABLE) |
3498 | # define SWIG_LONG_LONG_AVAILABLE |
3499 | #endif |
3500 | |
3501 | |
3502 | #ifdef SWIG_LONG_LONG_AVAILABLE |
3503 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3504 | SWIG_From_unsigned_SS_long_SS_long (unsigned long long value) |
3505 | { |
3506 | return (value > LONG_MAX9223372036854775807L) ? |
3507 | PyLong_FromUnsignedLongLong(value) : PyInt_FromLong(static_cast< long >(value)); |
3508 | } |
3509 | #endif |
3510 | |
3511 | |
3512 | SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info* |
3513 | SWIG_pchar_descriptor(void) |
3514 | { |
3515 | static int init = 0; |
3516 | static swig_type_info* info = 0; |
3517 | if (!init) { |
3518 | info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char" ); |
3519 | init = 1; |
3520 | } |
3521 | return info; |
3522 | } |
3523 | |
3524 | |
3525 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3526 | SWIG_FromCharPtrAndSize(const char* carray, size_t size) |
3527 | { |
3528 | if (carray) { |
3529 | if (size > INT_MAX2147483647) { |
3530 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
3531 | return pchar_descriptor ? |
3532 | SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(__null, const_cast< char * >( carray), pchar_descriptor, 0) : SWIG_Py_Void(); |
3533 | } else { |
3534 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
3535 | #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) |
3536 | return PyBytes_FromStringAndSizePyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size)); |
3537 | #else |
3538 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) >= 0x03010000 |
3539 | return PyUnicode_DecodeUTF8PyUnicodeUCS4_DecodeUTF8(carray, static_cast< Py_ssize_t >(size), "surrogateescape"); |
3540 | #else |
3541 | return PyUnicode_FromStringAndSizePyUnicodeUCS4_FromStringAndSize(carray, static_cast< Py_ssize_t >(size)); |
3542 | #endif |
3543 | #endif |
3544 | #else |
3545 | return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size)); |
3546 | #endif |
3547 | } |
3548 | } else { |
3549 | return SWIG_Py_Void(); |
3550 | } |
3551 | } |
3552 | |
3553 | |
3554 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3555 | SWIG_FromCharPtr(const char *cptr) |
3556 | { |
3557 | return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); |
3558 | } |
3559 | |
3560 | |
3561 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3562 | SWIG_From_bool (bool value) |
3563 | { |
3564 | return PyBool_FromLong(value ? 1 : 0); |
3565 | } |
3566 | |
3567 | |
3568 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3569 | SWIG_AsVal_double (PyObject *obj, double *val) |
3570 | { |
3571 | int res = SWIG_TypeError-5; |
3572 | if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype ((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))) { |
3573 | if (val) *val = PyFloat_AsDouble(obj); |
3574 | return SWIG_OK(0); |
3575 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
3576 | } else if (PyInt_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 23))) != 0)) { |
3577 | if (val) *val = (double) PyInt_AsLong(obj); |
3578 | return SWIG_OK(0); |
3579 | #endif |
3580 | } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3581 | double v = PyLong_AsDouble(obj); |
3582 | if (!PyErr_Occurred()) { |
3583 | if (val) *val = v; |
3584 | return SWIG_OK(0); |
3585 | } else { |
3586 | PyErr_Clear(); |
3587 | } |
3588 | } |
3589 | #ifdef SWIG_PYTHON_CAST_MODE |
3590 | { |
3591 | int dispatch = 0; |
3592 | double d = PyFloat_AsDouble(obj); |
3593 | if (!PyErr_Occurred()) { |
3594 | if (val) *val = d; |
3595 | return SWIG_AddCast(SWIG_OK)((0)); |
3596 | } else { |
3597 | PyErr_Clear(); |
3598 | } |
3599 | if (!dispatch) { |
3600 | long v = PyLong_AsLong(obj); |
3601 | if (!PyErr_Occurred()) { |
3602 | if (val) *val = v; |
3603 | return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0))); |
3604 | } else { |
3605 | PyErr_Clear(); |
3606 | } |
3607 | } |
3608 | } |
3609 | #endif |
3610 | return res; |
3611 | } |
3612 | |
3613 | |
3614 | #include <float.h> |
3615 | |
3616 | |
3617 | #include <math.h> |
3618 | |
3619 | |
3620 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3621 | SWIG_CanCastAsInteger(double *d, double min, double max) { |
3622 | double x = *d; |
3623 | if ((min <= x && x <= max)) { |
3624 | double fx = floor(x); |
3625 | double cx = ceil(x); |
3626 | double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ |
3627 | if ((errno(*__errno_location ()) == EDOM33) || (errno(*__errno_location ()) == ERANGE34)) { |
3628 | errno(*__errno_location ()) = 0; |
3629 | } else { |
3630 | double summ, reps, diff; |
3631 | if (rd < x) { |
3632 | diff = x - rd; |
3633 | } else if (rd > x) { |
3634 | diff = rd - x; |
3635 | } else { |
3636 | return 1; |
3637 | } |
3638 | summ = rd + x; |
3639 | reps = diff/summ; |
3640 | if (reps < 8*DBL_EPSILON2.2204460492503131e-16) { |
3641 | *d = rd; |
3642 | return 1; |
3643 | } |
3644 | } |
3645 | } |
3646 | return 0; |
3647 | } |
3648 | |
3649 | |
3650 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3651 | SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) |
3652 | { |
3653 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
3654 | if (PyInt_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 23))) != 0)) { |
3655 | long v = PyInt_AsLong(obj); |
3656 | if (v >= 0) { |
3657 | if (val) *val = v; |
3658 | return SWIG_OK(0); |
3659 | } else { |
3660 | return SWIG_OverflowError-7; |
3661 | } |
3662 | } else |
3663 | #endif |
3664 | if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3665 | unsigned long v = PyLong_AsUnsignedLong(obj); |
3666 | if (!PyErr_Occurred()) { |
3667 | if (val) *val = v; |
3668 | return SWIG_OK(0); |
3669 | } else { |
3670 | PyErr_Clear(); |
3671 | return SWIG_OverflowError-7; |
3672 | } |
3673 | } |
3674 | #ifdef SWIG_PYTHON_CAST_MODE |
3675 | { |
3676 | int dispatch = 0; |
3677 | unsigned long v = PyLong_AsUnsignedLong(obj); |
3678 | if (!PyErr_Occurred()) { |
3679 | if (val) *val = v; |
3680 | return SWIG_AddCast(SWIG_OK)((0)); |
3681 | } else { |
3682 | PyErr_Clear(); |
3683 | } |
3684 | if (!dispatch) { |
3685 | double d; |
3686 | int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d)); |
3687 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) { |
3688 | if (val) *val = (unsigned long)(d); |
3689 | return res; |
3690 | } |
3691 | } |
3692 | } |
3693 | #endif |
3694 | return SWIG_TypeError-5; |
3695 | } |
3696 | |
3697 | |
3698 | #ifdef SWIG_LONG_LONG_AVAILABLE |
3699 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3700 | SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val) |
3701 | { |
3702 | int res = SWIG_TypeError-5; |
3703 | if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3704 | unsigned long long v = PyLong_AsUnsignedLongLong(obj); |
3705 | if (!PyErr_Occurred()) { |
3706 | if (val) *val = v; |
3707 | return SWIG_OK(0); |
3708 | } else { |
3709 | PyErr_Clear(); |
3710 | res = SWIG_OverflowError-7; |
3711 | } |
3712 | } else { |
3713 | unsigned long v; |
3714 | res = SWIG_AsVal_unsigned_SS_long (obj,&v); |
3715 | if (SWIG_IsOK(res)(res >= 0)) { |
3716 | if (val) *val = v; |
3717 | return res; |
3718 | } |
3719 | } |
3720 | #ifdef SWIG_PYTHON_CAST_MODE |
3721 | { |
3722 | const double mant_max = 1LL << DBL_MANT_DIG53; |
3723 | double d; |
3724 | res = SWIG_AsVal_double (obj,&d); |
3725 | if (SWIG_IsOK(res)(res >= 0) && !SWIG_CanCastAsInteger(&d, 0, mant_max)) |
3726 | return SWIG_OverflowError-7; |
3727 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { |
3728 | if (val) *val = (unsigned long long)(d); |
3729 | return SWIG_AddCast(res)(res); |
3730 | } |
3731 | res = SWIG_TypeError-5; |
3732 | } |
3733 | #endif |
3734 | return res; |
3735 | } |
3736 | #endif |
3737 | |
3738 | |
3739 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3740 | SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) |
3741 | { |
3742 | unsigned long v; |
3743 | int res = SWIG_AsVal_unsigned_SS_long (obj, &v); |
3744 | if (SWIG_IsOK(res)(res >= 0)) { |
3745 | if ((v > UINT_MAX(2147483647 *2U +1U))) { |
3746 | return SWIG_OverflowError-7; |
3747 | } else { |
3748 | if (val) *val = static_cast< unsigned int >(v); |
3749 | } |
3750 | } |
3751 | return res; |
3752 | } |
3753 | |
3754 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBAddress___str__(lldb::SBAddress *self){ |
3755 | lldb::SBStream description; |
3756 | self->GetDescription (description); |
3757 | const char *desc = description.GetData(); |
3758 | size_t desc_len = description.GetSize(); |
3759 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
3760 | --desc_len; |
3761 | if (desc_len > 0) |
3762 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
3763 | else |
3764 | return lldb_private::PythonString("").release(); |
3765 | } |
3766 | |
3767 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3768 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) |
3769 | { |
3770 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3771 | #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) |
3772 | if (PyBytes_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 27))) != 0)) |
3773 | #else |
3774 | if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 28))) != 0)) |
3775 | #endif |
3776 | #else |
3777 | if (PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 27))) != 0)) |
3778 | #endif |
3779 | { |
3780 | char *cstr; Py_ssize_t len; |
3781 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3782 | #if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR) |
3783 | if (!alloc && cptr) { |
3784 | /* We can't allow converting without allocation, since the internal |
3785 | representation of string in Python 3 is UCS-2/UCS-4 but we require |
3786 | a UTF-8 representation. |
3787 | TODO(bhy) More detailed explanation */ |
3788 | return SWIG_RuntimeError-3; |
3789 | } |
3790 | obj = PyUnicode_AsUTF8StringPyUnicodeUCS4_AsUTF8String(obj); |
3791 | if(alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3792 | #endif |
3793 | PyBytes_AsStringAndSizePyString_AsStringAndSize(obj, &cstr, &len); |
3794 | #else |
3795 | PyString_AsStringAndSize(obj, &cstr, &len); |
3796 | #endif |
3797 | if (cptr) { |
3798 | if (alloc) { |
3799 | /* |
3800 | In python the user should not be able to modify the inner |
3801 | string representation. To warranty that, if you define |
3802 | SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string |
3803 | buffer is always returned. |
3804 | |
3805 | The default behavior is just to return the pointer value, |
3806 | so, be careful. |
3807 | */ |
3808 | #if defined(SWIG_PYTHON_SAFE_CSTRINGS) |
3809 | if (*alloc != SWIG_OLDOBJ((0))) |
3810 | #else |
3811 | if (*alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) |
3812 | #endif |
3813 | { |
3814 | *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1))); |
3815 | *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3816 | } else { |
3817 | *cptr = cstr; |
3818 | *alloc = SWIG_OLDOBJ((0)); |
3819 | } |
3820 | } else { |
3821 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3822 | #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) |
3823 | *cptr = PyBytes_AsStringPyString_AsString(obj); |
3824 | #else |
3825 | assert(0)(static_cast <bool> (0) ? void (0) : __assert_fail ("0" , "/build/llvm-toolchain-snapshot-7~svn329677/build-llvm/tools/lldb/scripts/LLDBWrapPython.cpp" , 3825, __extension__ __PRETTY_FUNCTION__)); /* Should never reach here with Unicode strings in Python 3 */ |
3826 | #endif |
3827 | #else |
3828 | *cptr = SWIG_Python_str_AsChar(obj); |
3829 | #endif |
3830 | } |
3831 | } |
3832 | if (psize) *psize = len + 1; |
3833 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR) |
3834 | 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); |
3835 | #endif |
3836 | return SWIG_OK(0); |
3837 | } else { |
3838 | #if defined(SWIG_PYTHON_2_UNICODE) |
3839 | #if defined(SWIG_PYTHON_STRICT_BYTE_CHAR) |
3840 | #error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once" |
3841 | #endif |
3842 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0))<0x03000000 |
3843 | if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 28))) != 0)) { |
3844 | char *cstr; Py_ssize_t len; |
3845 | if (!alloc && cptr) { |
3846 | return SWIG_RuntimeError-3; |
3847 | } |
3848 | obj = PyUnicode_AsUTF8StringPyUnicodeUCS4_AsUTF8String(obj); |
3849 | if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) { |
3850 | if (cptr) { |
3851 | if (alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3852 | *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1))); |
3853 | } |
3854 | if (psize) *psize = len + 1; |
3855 | |
3856 | 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); |
3857 | return SWIG_OK(0); |
3858 | } else { |
3859 | 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); |
3860 | } |
3861 | } |
3862 | #endif |
3863 | #endif |
3864 | |
3865 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
3866 | if (pchar_descriptor) { |
3867 | void* vptr = 0; |
3868 | if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor , 0, 0) == SWIG_OK(0)) { |
3869 | if (cptr) *cptr = (char *) vptr; |
3870 | if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; |
3871 | if (alloc) *alloc = SWIG_OLDOBJ((0)); |
3872 | return SWIG_OK(0); |
3873 | } |
3874 | } |
3875 | } |
3876 | return SWIG_TypeError-5; |
3877 | } |
3878 | |
3879 | |
3880 | |
3881 | |
3882 | |
3883 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3884 | SWIG_AsVal_long (PyObject *obj, long* val) |
3885 | { |
3886 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (14 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
3887 | if (PyInt_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 23))) != 0)) { |
3888 | if (val) *val = PyInt_AsLong(obj); |
3889 | return SWIG_OK(0); |
3890 | } else |
3891 | #endif |
3892 | if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3893 | long v = PyLong_AsLong(obj); |
3894 | if (!PyErr_Occurred()) { |
3895 | if (val) *val = v; |
3896 | return SWIG_OK(0); |
3897 | } else { |
3898 | PyErr_Clear(); |
3899 | return SWIG_OverflowError-7; |
3900 | } |
3901 | } |
3902 | #ifdef SWIG_PYTHON_CAST_MODE |
3903 | { |
3904 | int dispatch = 0; |
3905 | long v = PyInt_AsLong(obj); |
3906 | if (!PyErr_Occurred()) { |
3907 | if (val) *val = v; |
3908 | return SWIG_AddCast(SWIG_OK)((0)); |
3909 | } else { |
3910 | PyErr_Clear(); |
3911 | } |
3912 | if (!dispatch) { |
3913 | double d; |
3914 | int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d)); |
3915 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) { |
3916 | if (val) *val = (long)(d); |
3917 | return res; |
3918 | } |
3919 | } |
3920 | } |
3921 | #endif |
3922 | return SWIG_TypeError-5; |
3923 | } |
3924 | |
3925 | |
3926 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3927 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
3928 | { |
3929 | int r; |
3930 | if (!PyBool_Check(obj)((((PyObject*)(obj))->ob_type) == &PyBool_Type)) |
3931 | return SWIG_ERROR(-1); |
3932 | r = PyObject_IsTrue(obj); |
3933 | if (r == -1) |
3934 | return SWIG_ERROR(-1); |
3935 | if (val) *val = r ? true : false; |
3936 | return SWIG_OK(0); |
3937 | } |
3938 | |
3939 | |
3940 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3941 | SWIG_AsVal_int (PyObject * obj, int *val) |
3942 | { |
3943 | long v; |
3944 | int res = SWIG_AsVal_long (obj, &v); |
3945 | if (SWIG_IsOK(res)(res >= 0)) { |
3946 | if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) { |
3947 | return SWIG_OverflowError-7; |
3948 | } else { |
3949 | if (val) *val = static_cast< int >(v); |
3950 | } |
3951 | } |
3952 | return res; |
3953 | } |
3954 | |
3955 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBBlock___str__(lldb::SBBlock *self){ |
3956 | lldb::SBStream description; |
3957 | self->GetDescription (description); |
3958 | const char *desc = description.GetData(); |
3959 | size_t desc_len = description.GetSize(); |
3960 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
3961 | --desc_len; |
3962 | if (desc_len > 0) |
3963 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
3964 | else |
3965 | return lldb_private::PythonString("").release(); |
3966 | } |
3967 | |
3968 | #define SWIG_From_longPyInt_FromLong PyInt_FromLong |
3969 | |
3970 | |
3971 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3972 | SWIG_From_unsigned_SS_long (unsigned long value) |
3973 | { |
3974 | return (value > LONG_MAX9223372036854775807L) ? |
3975 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); |
3976 | } |
3977 | |
3978 | |
3979 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3980 | SWIG_From_size_t (size_t value) |
3981 | { |
3982 | #ifdef SWIG_LONG_LONG_AVAILABLE |
3983 | if (sizeof(size_t) <= sizeof(unsigned long)) { |
3984 | #endif |
3985 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); |
3986 | #ifdef SWIG_LONG_LONG_AVAILABLE |
3987 | } else { |
3988 | /* assume sizeof(size_t) <= sizeof(unsigned long long) */ |
3989 | return SWIG_From_unsigned_SS_long_SS_long (static_cast< unsigned long long >(value)); |
3990 | } |
3991 | #endif |
3992 | } |
3993 | |
3994 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBBreakpoint___str__(lldb::SBBreakpoint *self){ |
3995 | lldb::SBStream description; |
3996 | self->GetDescription (description); |
3997 | const char *desc = description.GetData(); |
3998 | size_t desc_len = description.GetSize(); |
3999 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4000 | --desc_len; |
4001 | if (desc_len > 0) |
4002 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4003 | else |
4004 | return lldb_private::PythonString("").release(); |
4005 | } |
4006 | |
4007 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
4008 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
4009 | { |
4010 | int res = SWIG_TypeError-5; |
4011 | #ifdef SWIG_LONG_LONG_AVAILABLE |
4012 | if (sizeof(size_t) <= sizeof(unsigned long)) { |
4013 | #endif |
4014 | unsigned long v; |
4015 | res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); |
4016 | if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v); |
4017 | #ifdef SWIG_LONG_LONG_AVAILABLE |
4018 | } else if (sizeof(size_t) <= sizeof(unsigned long long)) { |
4019 | unsigned long long v; |
4020 | res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0); |
4021 | if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v); |
4022 | } |
4023 | #endif |
4024 | return res; |
4025 | } |
4026 | |
4027 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBBreakpointLocation___str__(lldb::SBBreakpointLocation *self){ |
4028 | lldb::SBStream description; |
4029 | self->GetDescription (description, lldb::eDescriptionLevelFull); |
4030 | const char *desc = description.GetData(); |
4031 | size_t desc_len = description.GetSize(); |
4032 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4033 | --desc_len; |
4034 | if (desc_len > 0) |
4035 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4036 | else |
4037 | return lldb_private::PythonString("").release(); |
4038 | } |
4039 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBBreakpointName___str__(lldb::SBBreakpointName *self){ |
4040 | lldb::SBStream description; |
4041 | self->GetDescription (description); |
4042 | const char *desc = description.GetData(); |
4043 | size_t desc_len = description.GetSize(); |
4044 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4045 | --desc_len; |
4046 | if (desc_len > 0) |
4047 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4048 | else |
4049 | return lldb_private::PythonString("").release(); |
4050 | } |
4051 | |
4052 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
4053 | SWIG_AsCharArray(PyObject * obj, char *val, size_t size) |
4054 | { |
4055 | char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ((0)); |
4056 | int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc); |
4057 | if (SWIG_IsOK(res)(res >= 0)) { |
4058 | /* special case of single char conversion when we don't need space for NUL */ |
4059 | if (size == 1 && csize == 2 && cptr && !cptr[1]) --csize; |
4060 | if (csize <= size) { |
4061 | if (val) { |
4062 | if (csize) memcpy(val, cptr, csize*sizeof(char)); |
4063 | if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char)); |
4064 | } |
4065 | if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) { |
4066 | delete[] cptr; |
4067 | res = SWIG_DelNewMask(res)((res >= 0) ? (res & ~((1 << 8) << 1)) : res ); |
4068 | } |
4069 | return res; |
4070 | } |
4071 | if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] cptr; |
4072 | } |
4073 | return SWIG_TypeError-5; |
4074 | } |
4075 | |
4076 | |
4077 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
4078 | SWIG_AsVal_char (PyObject * obj, char *val) |
4079 | { |
4080 | int res = SWIG_AsCharArray(obj, val, 1); |
4081 | if (!SWIG_IsOK(res)(res >= 0)) { |
4082 | long v; |
4083 | res = SWIG_AddCast(SWIG_AsVal_long (obj, &v))(SWIG_AsVal_long (obj, &v)); |
4084 | if (SWIG_IsOK(res)(res >= 0)) { |
4085 | if ((CHAR_MIN(-127 -1) <= v) && (v <= CHAR_MAX127)) { |
4086 | if (val) *val = static_cast< char >(v); |
4087 | } else { |
4088 | res = SWIG_OverflowError-7; |
4089 | } |
4090 | } |
4091 | } |
4092 | return res; |
4093 | } |
4094 | |
4095 | SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_SetImmediateOutputFile(lldb::SBCommandReturnObject *self,FILE *fh){ |
4096 | self->SetImmediateOutputFile(fh, true); |
4097 | } |
4098 | SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_SetImmediateErrorFile(lldb::SBCommandReturnObject *self,FILE *fh){ |
4099 | self->SetImmediateErrorFile(fh, true); |
4100 | } |
4101 | SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_Print(lldb::SBCommandReturnObject *self,char const *str){ |
4102 | self->Printf("%s", str); |
4103 | } |
4104 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBCommandReturnObject___str__(lldb::SBCommandReturnObject *self){ |
4105 | lldb::SBStream description; |
4106 | self->GetDescription (description); |
4107 | const char *desc = description.GetData(); |
4108 | size_t desc_len = description.GetSize(); |
4109 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4110 | --desc_len; |
4111 | if (desc_len > 0) |
4112 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4113 | else |
4114 | return lldb_private::PythonString("").release(); |
4115 | } |
4116 | SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_write(lldb::SBCommandReturnObject *self,char const *str){ |
4117 | if (str) |
4118 | self->Printf("%s",str); |
4119 | } |
4120 | SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBCommandReturnObject_flush(lldb::SBCommandReturnObject *self){} |
4121 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBCompileUnit___str__(lldb::SBCompileUnit *self){ |
4122 | lldb::SBStream description; |
4123 | self->GetDescription (description); |
4124 | const char *desc = description.GetData(); |
4125 | size_t desc_len = description.GetSize(); |
4126 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4127 | --desc_len; |
4128 | if (desc_len > 0) |
4129 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4130 | else |
4131 | return lldb_private::PythonString("").release(); |
4132 | } |
4133 | |
4134 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
4135 | SWIG_From_unsigned_SS_char (unsigned char value) |
4136 | { |
4137 | return SWIG_From_unsigned_SS_long (value); |
4138 | } |
4139 | |
4140 | |
4141 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
4142 | SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) |
4143 | { |
4144 | unsigned long v; |
4145 | int res = SWIG_AsVal_unsigned_SS_long (obj, &v); |
4146 | if (SWIG_IsOK(res)(res >= 0)) { |
4147 | if ((v > UCHAR_MAX(127*2 +1))) { |
4148 | return SWIG_OverflowError-7; |
4149 | } else { |
4150 | if (val) *val = static_cast< unsigned char >(v); |
4151 | } |
4152 | } |
4153 | return res; |
4154 | } |
4155 | |
4156 | |
4157 | #define SWIG_From_doublePyFloat_FromDouble PyFloat_FromDouble |
4158 | |
4159 | |
4160 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
4161 | SWIG_From_float (float value) |
4162 | { |
4163 | return SWIG_From_doublePyFloat_FromDouble (value); |
4164 | } |
4165 | |
4166 | |
4167 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
4168 | SWIG_From_unsigned_SS_short (unsigned short value) |
4169 | { |
4170 | return SWIG_From_unsigned_SS_long (value); |
4171 | } |
4172 | |
4173 | |
4174 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
4175 | SWIG_From_signed_SS_char (signed char value) |
4176 | { |
4177 | return SWIG_From_longPyInt_FromLong (value); |
4178 | } |
4179 | |
4180 | |
4181 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
4182 | SWIG_From_short (short value) |
4183 | { |
4184 | return SWIG_From_longPyInt_FromLong (value); |
4185 | } |
4186 | |
4187 | |
4188 | #ifdef SWIG_LONG_LONG_AVAILABLE |
4189 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
4190 | SWIG_From_long_SS_long (long long value) |
4191 | { |
4192 | return ((value < LONG_MIN(-9223372036854775807L -1L)) || (value > LONG_MAX9223372036854775807L)) ? |
4193 | PyLong_FromLongLong(value) : PyInt_FromLong(static_cast< long >(value)); |
4194 | } |
4195 | #endif |
4196 | |
4197 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBData___str__(lldb::SBData *self){ |
4198 | lldb::SBStream description; |
4199 | self->GetDescription (description); |
4200 | const char *desc = description.GetData(); |
4201 | size_t desc_len = description.GetSize(); |
4202 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4203 | --desc_len; |
4204 | if (desc_len > 0) |
4205 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4206 | else |
4207 | return lldb_private::PythonString("").release(); |
4208 | } |
4209 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBDebugger___str__(lldb::SBDebugger *self){ |
4210 | lldb::SBStream description; |
4211 | self->GetDescription (description); |
4212 | const char *desc = description.GetData(); |
4213 | size_t desc_len = description.GetSize(); |
4214 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4215 | --desc_len; |
4216 | if (desc_len > 0) |
4217 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4218 | else |
4219 | return lldb_private::PythonString("").release(); |
4220 | } |
4221 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBDeclaration___str__(lldb::SBDeclaration *self){ |
4222 | lldb::SBStream description; |
4223 | self->GetDescription (description); |
4224 | const char *desc = description.GetData(); |
4225 | size_t desc_len = description.GetSize(); |
4226 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4227 | --desc_len; |
4228 | if (desc_len > 0) |
4229 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4230 | else |
4231 | return lldb_private::PythonString("").release(); |
4232 | } |
4233 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBError___str__(lldb::SBError *self){ |
4234 | lldb::SBStream description; |
4235 | self->GetDescription (description); |
4236 | const char *desc = description.GetData(); |
4237 | size_t desc_len = description.GetSize(); |
4238 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4239 | --desc_len; |
4240 | if (desc_len > 0) |
4241 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4242 | else |
4243 | return lldb_private::PythonString("").release(); |
4244 | } |
4245 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBFileSpec___str__(lldb::SBFileSpec *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 | } |
4257 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBFrame___str__(lldb::SBFrame *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 | } |
4269 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBFunction___str__(lldb::SBFunction *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 | } |
4281 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBInstruction___str__(lldb::SBInstruction *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 | } |
4293 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBInstructionList___str__(lldb::SBInstructionList *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 | } |
4305 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBLineEntry___str__(lldb::SBLineEntry *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 | } |
4317 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBMemoryRegionInfo___str__(lldb::SBMemoryRegionInfo *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 | } |
4329 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBModule___str__(lldb::SBModule *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 | } |
4341 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBModuleSpec___str__(lldb::SBModuleSpec *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 | } |
4353 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBModuleSpecList___str__(lldb::SBModuleSpecList *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 | } |
4365 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBProcess___str__(lldb::SBProcess *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 | } |
4377 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBSection___str__(lldb::SBSection *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 | } |
4389 | SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBStream_Print(lldb::SBStream *self,char const *str){ |
4390 | self->Printf("%s", str); |
4391 | } |
4392 | SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBStream_write(lldb::SBStream *self,char const *str){ |
4393 | if (str) |
4394 | self->Printf("%s",str); |
4395 | } |
4396 | SWIGINTERNstatic __attribute__ ((__unused__)) void lldb_SBStream_flush(lldb::SBStream *self){} |
4397 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBSymbol___str__(lldb::SBSymbol *self){ |
4398 | lldb::SBStream description; |
4399 | self->GetDescription (description); |
4400 | const char *desc = description.GetData(); |
4401 | size_t desc_len = description.GetSize(); |
4402 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4403 | --desc_len; |
4404 | if (desc_len > 0) |
4405 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4406 | else |
4407 | return lldb_private::PythonString("").release(); |
4408 | } |
4409 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBSymbolContext___str__(lldb::SBSymbolContext *self){ |
4410 | lldb::SBStream description; |
4411 | self->GetDescription (description); |
4412 | const char *desc = description.GetData(); |
4413 | size_t desc_len = description.GetSize(); |
4414 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4415 | --desc_len; |
4416 | if (desc_len > 0) |
4417 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4418 | else |
4419 | return lldb_private::PythonString("").release(); |
4420 | } |
4421 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBSymbolContextList___str__(lldb::SBSymbolContextList *self){ |
4422 | lldb::SBStream description; |
4423 | self->GetDescription (description); |
4424 | const char *desc = description.GetData(); |
4425 | size_t desc_len = description.GetSize(); |
4426 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4427 | --desc_len; |
4428 | if (desc_len > 0) |
4429 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4430 | else |
4431 | return lldb_private::PythonString("").release(); |
4432 | } |
4433 | |
4434 | #ifdef SWIG_LONG_LONG_AVAILABLE |
4435 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
4436 | SWIG_AsVal_long_SS_long (PyObject *obj, long long *val) |
4437 | { |
4438 | int res = SWIG_TypeError-5; |
4439 | if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
4440 | long long v = PyLong_AsLongLong(obj); |
4441 | if (!PyErr_Occurred()) { |
4442 | if (val) *val = v; |
4443 | return SWIG_OK(0); |
4444 | } else { |
4445 | PyErr_Clear(); |
4446 | res = SWIG_OverflowError-7; |
4447 | } |
4448 | } else { |
4449 | long v; |
4450 | res = SWIG_AsVal_long (obj,&v); |
4451 | if (SWIG_IsOK(res)(res >= 0)) { |
4452 | if (val) *val = v; |
4453 | return res; |
4454 | } |
4455 | } |
4456 | #ifdef SWIG_PYTHON_CAST_MODE |
4457 | { |
4458 | const double mant_max = 1LL << DBL_MANT_DIG53; |
4459 | const double mant_min = -mant_max; |
4460 | double d; |
4461 | res = SWIG_AsVal_double (obj,&d); |
4462 | if (SWIG_IsOK(res)(res >= 0) && !SWIG_CanCastAsInteger(&d, mant_min, mant_max)) |
4463 | return SWIG_OverflowError-7; |
4464 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, mant_min, mant_max)) { |
4465 | if (val) *val = (long long)(d); |
4466 | return SWIG_AddCast(res)(res); |
4467 | } |
4468 | res = SWIG_TypeError-5; |
4469 | } |
4470 | #endif |
4471 | return res; |
4472 | } |
4473 | #endif |
4474 | |
4475 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTarget___str__(lldb::SBTarget *self){ |
4476 | lldb::SBStream description; |
4477 | self->GetDescription (description, lldb::eDescriptionLevelBrief); |
4478 | const char *desc = description.GetData(); |
4479 | size_t desc_len = description.GetSize(); |
4480 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4481 | --desc_len; |
4482 | if (desc_len > 0) |
4483 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4484 | else |
4485 | return lldb_private::PythonString("").release(); |
4486 | } |
4487 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBThread___str__(lldb::SBThread *self){ |
4488 | lldb::SBStream description; |
4489 | self->GetDescription (description); |
4490 | const char *desc = description.GetData(); |
4491 | size_t desc_len = description.GetSize(); |
4492 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4493 | --desc_len; |
4494 | if (desc_len > 0) |
4495 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4496 | else |
4497 | return lldb_private::PythonString("").release(); |
4498 | } |
4499 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeMember___str__(lldb::SBTypeMember *self){ |
4500 | lldb::SBStream description; |
4501 | self->GetDescription (description, lldb::eDescriptionLevelBrief); |
4502 | const char *desc = description.GetData(); |
4503 | size_t desc_len = description.GetSize(); |
4504 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4505 | --desc_len; |
4506 | if (desc_len > 0) |
4507 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4508 | else |
4509 | return lldb_private::PythonString("").release(); |
4510 | } |
4511 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeMemberFunction___str__(lldb::SBTypeMemberFunction *self){ |
4512 | lldb::SBStream description; |
4513 | self->GetDescription (description, lldb::eDescriptionLevelBrief); |
4514 | const char *desc = description.GetData(); |
4515 | size_t desc_len = description.GetSize(); |
4516 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4517 | --desc_len; |
4518 | if (desc_len > 0) |
4519 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4520 | else |
4521 | return lldb_private::PythonString("").release(); |
4522 | } |
4523 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBType___str__(lldb::SBType *self){ |
4524 | lldb::SBStream description; |
4525 | self->GetDescription (description, lldb::eDescriptionLevelBrief); |
4526 | const char *desc = description.GetData(); |
4527 | size_t desc_len = description.GetSize(); |
4528 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4529 | --desc_len; |
4530 | if (desc_len > 0) |
4531 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4532 | else |
4533 | return lldb_private::PythonString("").release(); |
4534 | } |
4535 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeCategory___str__(lldb::SBTypeCategory *self){ |
4536 | lldb::SBStream description; |
4537 | self->GetDescription (description, lldb::eDescriptionLevelBrief); |
4538 | const char *desc = description.GetData(); |
4539 | size_t desc_len = description.GetSize(); |
4540 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4541 | --desc_len; |
4542 | if (desc_len > 0) |
4543 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4544 | else |
4545 | return lldb_private::PythonString("").release(); |
4546 | } |
4547 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeEnumMember___str__(lldb::SBTypeEnumMember *self){ |
4548 | lldb::SBStream description; |
4549 | self->GetDescription (description, lldb::eDescriptionLevelBrief); |
4550 | const char *desc = description.GetData(); |
4551 | size_t desc_len = description.GetSize(); |
4552 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4553 | --desc_len; |
4554 | if (desc_len > 0) |
4555 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4556 | else |
4557 | return lldb_private::PythonString("").release(); |
4558 | } |
4559 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeFilter___str__(lldb::SBTypeFilter *self){ |
4560 | lldb::SBStream description; |
4561 | self->GetDescription (description, lldb::eDescriptionLevelBrief); |
4562 | const char *desc = description.GetData(); |
4563 | size_t desc_len = description.GetSize(); |
4564 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4565 | --desc_len; |
4566 | if (desc_len > 0) |
4567 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4568 | else |
4569 | return lldb_private::PythonString("").release(); |
4570 | } |
4571 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeFormat___str__(lldb::SBTypeFormat *self){ |
4572 | lldb::SBStream description; |
4573 | self->GetDescription (description, lldb::eDescriptionLevelBrief); |
4574 | const char *desc = description.GetData(); |
4575 | size_t desc_len = description.GetSize(); |
4576 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4577 | --desc_len; |
4578 | if (desc_len > 0) |
4579 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4580 | else |
4581 | return lldb_private::PythonString("").release(); |
4582 | } |
4583 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeNameSpecifier___str__(lldb::SBTypeNameSpecifier *self){ |
4584 | lldb::SBStream description; |
4585 | self->GetDescription (description, lldb::eDescriptionLevelBrief); |
4586 | const char *desc = description.GetData(); |
4587 | size_t desc_len = description.GetSize(); |
4588 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4589 | --desc_len; |
4590 | if (desc_len > 0) |
4591 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4592 | else |
4593 | return lldb_private::PythonString("").release(); |
4594 | } |
4595 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeSummary___str__(lldb::SBTypeSummary *self){ |
4596 | lldb::SBStream description; |
4597 | self->GetDescription (description, lldb::eDescriptionLevelBrief); |
4598 | const char *desc = description.GetData(); |
4599 | size_t desc_len = description.GetSize(); |
4600 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4601 | --desc_len; |
4602 | if (desc_len > 0) |
4603 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4604 | else |
4605 | return lldb_private::PythonString("").release(); |
4606 | } |
4607 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBTypeSynthetic___str__(lldb::SBTypeSynthetic *self){ |
4608 | lldb::SBStream description; |
4609 | self->GetDescription (description, lldb::eDescriptionLevelBrief); |
4610 | const char *desc = description.GetData(); |
4611 | size_t desc_len = description.GetSize(); |
4612 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4613 | --desc_len; |
4614 | if (desc_len > 0) |
4615 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4616 | else |
4617 | return lldb_private::PythonString("").release(); |
4618 | } |
4619 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBValue___str__(lldb::SBValue *self){ |
4620 | lldb::SBStream description; |
4621 | self->GetDescription (description); |
4622 | const char *desc = description.GetData(); |
4623 | size_t desc_len = description.GetSize(); |
4624 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4625 | --desc_len; |
4626 | if (desc_len > 0) |
4627 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4628 | else |
4629 | return lldb_private::PythonString("").release(); |
4630 | } |
4631 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBValueList___str__(lldb::SBValueList *self){ |
4632 | lldb::SBStream description; |
4633 | const size_t n = self->GetSize(); |
4634 | if (n) |
4635 | { |
4636 | for (size_t i=0; i<n; ++i) |
4637 | self->GetValueAtIndex(i).GetDescription(description); |
4638 | } |
4639 | else |
4640 | { |
4641 | description.Printf("<empty> lldb.SBValueList()"); |
4642 | } |
4643 | const char *desc = description.GetData(); |
4644 | size_t desc_len = description.GetSize(); |
4645 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4646 | --desc_len; |
4647 | if (desc_len > 0) |
4648 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4649 | else |
4650 | return lldb_private::PythonString("").release(); |
4651 | } |
4652 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *lldb_SBWatchpoint___str__(lldb::SBWatchpoint *self){ |
4653 | lldb::SBStream description; |
4654 | self->GetDescription (description, lldb::eDescriptionLevelVerbose); |
4655 | const char *desc = description.GetData(); |
4656 | size_t desc_len = description.GetSize(); |
4657 | if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) |
4658 | --desc_len; |
4659 | if (desc_len > 0) |
4660 | return lldb_private::PythonString(llvm::StringRef(desc, desc_len)).release(); |
4661 | else |
4662 | return lldb_private::PythonString("").release(); |
4663 | } |
4664 | |
4665 | |
4666 | template <typename T> |
4667 | PyObject * |
4668 | SBTypeToSWIGWrapper (T* item); |
4669 | |
4670 | class PyErr_Cleaner |
4671 | { |
4672 | public: |
4673 | PyErr_Cleaner(bool print=false) : |
4674 | m_print(print) |
4675 | { |
4676 | } |
4677 | |
4678 | ~PyErr_Cleaner() |
4679 | { |
4680 | if (PyErr_Occurred()) |
4681 | { |
4682 | if(m_print && !PyErr_ExceptionMatches(PyExc_SystemExit)) |
4683 | PyErr_Print(); |
4684 | PyErr_Clear(); |
4685 | } |
4686 | } |
4687 | |
4688 | private: |
4689 | bool m_print; |
4690 | }; |
4691 | |
4692 | |
4693 | #ifdef __cplusplus201103L |
4694 | extern "C" { |
4695 | #endif |
4696 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAddress__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4697 | PyObject *resultobj = 0; |
4698 | lldb::SBAddress *result = 0 ; |
4699 | |
4700 | if (!PyArg_ParseTuple(args,(char *)":new_SBAddress")) SWIG_failgoto fail; |
4701 | { |
4702 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
4703 | result = (lldb::SBAddress *)new lldb::SBAddress(); |
4704 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
4705 | } |
4706 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__SBAddress, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[8], (( 0x1 << 1) | 0x1) | 0); |
4707 | return resultobj; |
4708 | fail: |
4709 | return NULL__null; |
4710 | } |
4711 | |
4712 | |
4713 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAddress__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4714 | PyObject *resultobj = 0; |
4715 | lldb::SBAddress *arg1 = 0 ; |
4716 | void *argp1 = 0 ; |
4717 | int res1 = 0 ; |
4718 | PyObject * obj0 = 0 ; |
4719 | lldb::SBAddress *result = 0 ; |
4720 | |
4721 | if (!PyArg_ParseTuple(args,(char *)"O:new_SBAddress",&obj0)) SWIG_failgoto fail; |
4722 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_lldb__SBAddress, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
4723 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4724 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SBAddress" "', argument " "1"" of type '" "lldb::SBAddress const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_SBAddress" "', argument " "1"" of type '" "lldb::SBAddress const &""'"); goto fail ; } while(0); |
4725 | } |
4726 | if (!argp1) { |
4727 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SBAddress" "', argument " "1"" of type '" "lldb::SBAddress const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_SBAddress" "', argument " "1"" of type '" "lldb::SBAddress const &""'"); goto fail; } while(0); |
4728 | } |
4729 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
4730 | { |
4731 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
4732 | result = (lldb::SBAddress *)new lldb::SBAddress((lldb::SBAddress const &)*arg1); |
4733 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
4734 | } |
4735 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__SBAddress, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[8], (( 0x1 << 1) | 0x1) | 0); |
4736 | return resultobj; |
4737 | fail: |
4738 | return NULL__null; |
4739 | } |
4740 | |
4741 | |
4742 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAddress__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4743 | PyObject *resultobj = 0; |
4744 | lldb::SBSection arg1 ; |
4745 | lldb::addr_t arg2 ; |
4746 | void *argp1 ; |
4747 | int res1 = 0 ; |
4748 | unsigned long long val2 ; |
4749 | int ecode2 = 0 ; |
4750 | PyObject * obj0 = 0 ; |
4751 | PyObject * obj1 = 0 ; |
4752 | lldb::SBAddress *result = 0 ; |
4753 | |
4754 | if (!PyArg_ParseTuple(args,(char *)"OO:new_SBAddress",&obj0,&obj1)) SWIG_failgoto fail; |
4755 | { |
4756 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_lldb__SBSection, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[51] , 0 | 0, 0); |
4757 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SBAddress" "', argument " "1"" of type '" "lldb::SBSection""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_SBAddress" "', argument " "1"" of type '" "lldb::SBSection""'"); goto fail; } while(0); |
4759 | } |
4760 | if (!argp1) { |
4761 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SBAddress" "', argument " "1"" of type '" "lldb::SBSection""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_SBAddress" "', argument " "1"" of type '" "lldb::SBSection""'"); goto fail; } while(0); |
4762 | } else { |
4763 | lldb::SBSection * temp = reinterpret_cast< lldb::SBSection * >(argp1); |
4764 | arg1 = *temp; |
4765 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete temp; |
4766 | } |
4767 | } |
4768 | ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); |
4769 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4770 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SBAddress" "', argument " "2"" of type '" "lldb::addr_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_SBAddress" "', argument " "2"" of type '" "lldb::addr_t""'"); goto fail; } while(0); |
4771 | } |
4772 | arg2 = static_cast< lldb::addr_t >(val2); |
4773 | { |
4774 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
4775 | result = (lldb::SBAddress *)new lldb::SBAddress(arg1,arg2); |
4776 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
4777 | } |
4778 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__SBAddress, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[8], (( 0x1 << 1) | 0x1) | 0); |
4779 | return resultobj; |
4780 | fail: |
4781 | return NULL__null; |
4782 | } |
4783 | |
4784 | |
4785 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAddress__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4786 | PyObject *resultobj = 0; |
4787 | lldb::addr_t arg1 ; |
4788 | lldb::SBTarget *arg2 = 0 ; |
4789 | unsigned long long val1 ; |
4790 | int ecode1 = 0 ; |
4791 | void *argp2 = 0 ; |
4792 | int res2 = 0 ; |
4793 | PyObject * obj0 = 0 ; |
4794 | PyObject * obj1 = 0 ; |
4795 | lldb::SBAddress *result = 0 ; |
4796 | |
4797 | if (!PyArg_ParseTuple(args,(char *)"OO:new_SBAddress",&obj0,&obj1)) SWIG_failgoto fail; |
4798 | ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(obj0, &val1); |
4799 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
4800 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SBAddress" "', argument " "1"" of type '" "lldb::addr_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_SBAddress" "', argument " "1"" of type '" "lldb::addr_t""'"); goto fail; } while(0); |
4801 | } |
4802 | arg1 = static_cast< lldb::addr_t >(val1); |
4803 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_lldb__SBTarget, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[59] , 0, 0); |
4804 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4805 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_SBAddress" "', argument " "2"" of type '" "lldb::SBTarget &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "new_SBAddress" "', argument " "2"" of type '" "lldb::SBTarget &""'"); goto fail; } while (0); |
4806 | } |
4807 | if (!argp2) { |
4808 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SBAddress" "', argument " "2"" of type '" "lldb::SBTarget &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_SBAddress" "', argument " "2"" of type '" "lldb::SBTarget &""'"); goto fail; } while(0); |
4809 | } |
4810 | arg2 = reinterpret_cast< lldb::SBTarget * >(argp2); |
4811 | { |
4812 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
4813 | result = (lldb::SBAddress *)new lldb::SBAddress(arg1,*arg2); |
4814 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
4815 | } |
4816 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_lldb__SBAddress, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[8], (( 0x1 << 1) | 0x1) | 0); |
4817 | return resultobj; |
4818 | fail: |
4819 | return NULL__null; |
4820 | } |
4821 | |
4822 | |
4823 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_SBAddress(PyObject *self, PyObject *args) { |
4824 | Py_ssize_t argc; |
4825 | PyObject *argv[3] = { |
4826 | 0 |
4827 | }; |
4828 | Py_ssize_t ii; |
4829 | |
4830 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4831 | argc = args ? PyObject_LengthPyObject_Size(args) : 0; |
4832 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
4833 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4834 | } |
4835 | if (argc == 0) { |
4836 | return _wrap_new_SBAddress__SWIG_0(self, args); |
4837 | } |
4838 | if (argc == 1) { |
4839 | int _v; |
4840 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_lldb__SBAddress, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[8], 0, 0); |
4841 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4842 | if (_v) { |
4843 | return _wrap_new_SBAddress__SWIG_1(self, args); |
4844 | } |
4845 | } |
4846 | if (argc == 2) { |
4847 | int _v; |
4848 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_lldb__SBSection, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[51], 0, 0 ); |
4849 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4850 | if (_v) { |
4851 | { |
4852 | int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], NULL__null); |
4853 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4854 | } |
4855 | if (_v) { |
4856 | return _wrap_new_SBAddress__SWIG_2(self, args); |
4857 | } |
4858 | } |
4859 | } |
4860 | if (argc == 2) { |
4861 | int _v; |
4862 | { |
4863 | int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL__null); |
4864 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4865 | } |
4866 | if (_v) { |
4867 | void *vptr = 0; |
4868 | int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_lldb__SBTarget, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[59 ], 0, 0); |
4869 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4870 | if (_v) { |
4871 | return _wrap_new_SBAddress__SWIG_3(self, args); |
4872 | } |
4873 | } |
4874 | } |
4875 | |
4876 | fail: |
4877 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SBAddress'.\n" |
4878 | " Possible C/C++ prototypes are:\n" |
4879 | " lldb::SBAddress::SBAddress()\n" |
4880 | " lldb::SBAddress::SBAddress(lldb::SBAddress const &)\n" |
4881 | " lldb::SBAddress::SBAddress(lldb::SBSection,lldb::addr_t)\n" |
4882 | " lldb::SBAddress::SBAddress(lldb::addr_t,lldb::SBTarget &)\n"); |
4883 | return 0; |
4884 | } |
4885 | |
4886 | |
4887 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SBAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4888 | PyObject *resultobj = 0; |
4889 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
4890 | void *argp1 = 0 ; |
4891 | int res1 = 0 ; |
4892 | PyObject * obj0 = 0 ; |
4893 | |
4894 | if (!PyArg_ParseTuple(args,(char *)"O:delete_SBAddress",&obj0)) SWIG_failgoto fail; |
4895 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0x1 | 0, 0); |
4896 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SBAddress" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_SBAddress" "', argument " "1"" of type '" "lldb::SBAddress *""'"); goto fail; } while( 0); |
4898 | } |
4899 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
4900 | { |
4901 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
4902 | delete arg1; |
4903 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
4904 | } |
4905 | resultobj = SWIG_Py_Void(); |
4906 | return resultobj; |
4907 | fail: |
4908 | return NULL__null; |
4909 | } |
4910 | |
4911 | |
4912 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_IsValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4913 | PyObject *resultobj = 0; |
4914 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
4915 | void *argp1 = 0 ; |
4916 | int res1 = 0 ; |
4917 | PyObject * obj0 = 0 ; |
4918 | bool result; |
4919 | |
4920 | if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_IsValid",&obj0)) SWIG_failgoto fail; |
4921 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
4922 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_IsValid" "', argument " "1"" of type '" "lldb::SBAddress const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_IsValid" "', argument " "1"" of type '" "lldb::SBAddress const *""'"); goto fail; } while (0); |
4924 | } |
4925 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
4926 | { |
4927 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
4928 | result = (bool)((lldb::SBAddress const *)arg1)->IsValid(); |
4929 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
4930 | } |
4931 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4932 | return resultobj; |
4933 | fail: |
4934 | return NULL__null; |
4935 | } |
4936 | |
4937 | |
4938 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4939 | PyObject *resultobj = 0; |
4940 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
4941 | void *argp1 = 0 ; |
4942 | int res1 = 0 ; |
4943 | PyObject * obj0 = 0 ; |
4944 | |
4945 | if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_Clear",&obj0)) SWIG_failgoto fail; |
4946 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
4947 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_Clear" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_Clear" "', argument " "1"" of type '" "lldb::SBAddress *""'"); goto fail; } while( 0); |
4949 | } |
4950 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
4951 | { |
4952 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
4953 | (arg1)->Clear(); |
4954 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
4955 | } |
4956 | resultobj = SWIG_Py_Void(); |
4957 | return resultobj; |
4958 | fail: |
4959 | return NULL__null; |
4960 | } |
4961 | |
4962 | |
4963 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetFileAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4964 | PyObject *resultobj = 0; |
4965 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
4966 | void *argp1 = 0 ; |
4967 | int res1 = 0 ; |
4968 | PyObject * obj0 = 0 ; |
4969 | lldb::addr_t result; |
4970 | |
4971 | if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetFileAddress",&obj0)) SWIG_failgoto fail; |
4972 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
4973 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4974 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetFileAddress" "', argument " "1"" of type '" "lldb::SBAddress const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_GetFileAddress" "', argument " "1"" of type '" "lldb::SBAddress const *""'"); goto fail; } while (0); |
4975 | } |
4976 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
4977 | { |
4978 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
4979 | result = (lldb::addr_t)((lldb::SBAddress const *)arg1)->GetFileAddress(); |
4980 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
4981 | } |
4982 | resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); |
4983 | return resultobj; |
4984 | fail: |
4985 | return NULL__null; |
4986 | } |
4987 | |
4988 | |
4989 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetLoadAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4990 | PyObject *resultobj = 0; |
4991 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
4992 | lldb::SBTarget *arg2 = 0 ; |
4993 | void *argp1 = 0 ; |
4994 | int res1 = 0 ; |
4995 | void *argp2 = 0 ; |
4996 | int res2 = 0 ; |
4997 | PyObject * obj0 = 0 ; |
4998 | PyObject * obj1 = 0 ; |
4999 | lldb::addr_t result; |
5000 | |
5001 | if (!PyArg_ParseTuple(args,(char *)"OO:SBAddress_GetLoadAddress",&obj0,&obj1)) SWIG_failgoto fail; |
5002 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
5003 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5004 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetLoadAddress" "', argument " "1"" of type '" "lldb::SBAddress const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_GetLoadAddress" "', argument " "1"" of type '" "lldb::SBAddress const *""'"); goto fail; } while (0); |
5005 | } |
5006 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
5007 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_lldb__SBTarget, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[59] , 0 | 0, 0); |
5008 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5009 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SBAddress_GetLoadAddress" "', argument " "2"" of type '" "lldb::SBTarget const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "SBAddress_GetLoadAddress" "', argument " "2"" of type '" "lldb::SBTarget const &""'"); goto fail; } while(0); |
5010 | } |
5011 | if (!argp2) { |
5012 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SBAddress_GetLoadAddress" "', argument " "2"" of type '" "lldb::SBTarget const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SBAddress_GetLoadAddress" "', argument " "2"" of type '" "lldb::SBTarget const &""'"); goto fail; } while(0); |
5013 | } |
5014 | arg2 = reinterpret_cast< lldb::SBTarget * >(argp2); |
5015 | { |
5016 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
5017 | result = (lldb::addr_t)((lldb::SBAddress const *)arg1)->GetLoadAddress((lldb::SBTarget const &)*arg2); |
5018 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
5019 | } |
5020 | resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); |
5021 | return resultobj; |
5022 | fail: |
5023 | return NULL__null; |
5024 | } |
5025 | |
5026 | |
5027 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_SetLoadAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5028 | PyObject *resultobj = 0; |
5029 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
5030 | lldb::addr_t arg2 ; |
5031 | lldb::SBTarget *arg3 = 0 ; |
5032 | void *argp1 = 0 ; |
5033 | int res1 = 0 ; |
5034 | unsigned long long val2 ; |
5035 | int ecode2 = 0 ; |
5036 | void *argp3 = 0 ; |
5037 | int res3 = 0 ; |
5038 | PyObject * obj0 = 0 ; |
5039 | PyObject * obj1 = 0 ; |
5040 | PyObject * obj2 = 0 ; |
5041 | |
5042 | if (!PyArg_ParseTuple(args,(char *)"OOO:SBAddress_SetLoadAddress",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
5043 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
5044 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_SetLoadAddress" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_SetLoadAddress" "', argument " "1"" of type '" "lldb::SBAddress *""'"); goto fail; } while( 0); |
5046 | } |
5047 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
5048 | ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); |
5049 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5050 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SBAddress_SetLoadAddress" "', argument " "2"" of type '" "lldb::addr_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SBAddress_SetLoadAddress" "', argument " "2"" of type '" "lldb::addr_t""'"); goto fail ; } while(0); |
5051 | } |
5052 | arg2 = static_cast< lldb::addr_t >(val2); |
5053 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_lldb__SBTarget, 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[59] , 0, 0); |
5054 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
5055 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SBAddress_SetLoadAddress" "', argument " "3"" of type '" "lldb::SBTarget &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "SBAddress_SetLoadAddress" "', argument " "3"" of type '" "lldb::SBTarget &""'"); goto fail; } while (0); |
5056 | } |
5057 | if (!argp3) { |
5058 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SBAddress_SetLoadAddress" "', argument " "3"" of type '" "lldb::SBTarget &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SBAddress_SetLoadAddress" "', argument " "3"" of type '" "lldb::SBTarget &""'"); goto fail; } while(0); |
5059 | } |
5060 | arg3 = reinterpret_cast< lldb::SBTarget * >(argp3); |
5061 | { |
5062 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
5063 | (arg1)->SetLoadAddress(arg2,*arg3); |
5064 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
5065 | } |
5066 | resultobj = SWIG_Py_Void(); |
5067 | return resultobj; |
5068 | fail: |
5069 | return NULL__null; |
5070 | } |
5071 | |
5072 | |
5073 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_OffsetAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5074 | PyObject *resultobj = 0; |
5075 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
5076 | lldb::addr_t arg2 ; |
5077 | void *argp1 = 0 ; |
5078 | int res1 = 0 ; |
5079 | unsigned long long val2 ; |
5080 | int ecode2 = 0 ; |
5081 | PyObject * obj0 = 0 ; |
5082 | PyObject * obj1 = 0 ; |
5083 | bool result; |
5084 | |
5085 | if (!PyArg_ParseTuple(args,(char *)"OO:SBAddress_OffsetAddress",&obj0,&obj1)) SWIG_failgoto fail; |
5086 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
5087 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_OffsetAddress" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_OffsetAddress" "', argument " "1"" of type '" "lldb::SBAddress *""'"); goto fail; } while( 0); |
5089 | } |
5090 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
5091 | ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); |
5092 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5093 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SBAddress_OffsetAddress" "', argument " "2"" of type '" "lldb::addr_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SBAddress_OffsetAddress" "', argument " "2"" of type '" "lldb::addr_t""'"); goto fail ; } while(0); |
5094 | } |
5095 | arg2 = static_cast< lldb::addr_t >(val2); |
5096 | { |
5097 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
5098 | result = (bool)(arg1)->OffsetAddress(arg2); |
5099 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
5100 | } |
5101 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5102 | return resultobj; |
5103 | fail: |
5104 | return NULL__null; |
5105 | } |
5106 | |
5107 | |
5108 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5109 | PyObject *resultobj = 0; |
5110 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
5111 | lldb::SBStream *arg2 = 0 ; |
5112 | void *argp1 = 0 ; |
5113 | int res1 = 0 ; |
5114 | void *argp2 = 0 ; |
5115 | int res2 = 0 ; |
5116 | PyObject * obj0 = 0 ; |
5117 | PyObject * obj1 = 0 ; |
5118 | bool result; |
5119 | |
5120 | if (!PyArg_ParseTuple(args,(char *)"OO:SBAddress_GetDescription",&obj0,&obj1)) SWIG_failgoto fail; |
5121 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
5122 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetDescription" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_GetDescription" "', argument " "1"" of type '" "lldb::SBAddress *""'"); goto fail; } while( 0); |
5124 | } |
5125 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
5126 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_lldb__SBStream, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[53] , 0, 0); |
5127 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5128 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SBAddress_GetDescription" "', argument " "2"" of type '" "lldb::SBStream &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "SBAddress_GetDescription" "', argument " "2"" of type '" "lldb::SBStream &""'"); goto fail; } while (0); |
5129 | } |
5130 | if (!argp2) { |
5131 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SBAddress_GetDescription" "', argument " "2"" of type '" "lldb::SBStream &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SBAddress_GetDescription" "', argument " "2"" of type '" "lldb::SBStream &""'"); goto fail; } while(0); |
5132 | } |
5133 | arg2 = reinterpret_cast< lldb::SBStream * >(argp2); |
5134 | { |
5135 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
5136 | result = (bool)(arg1)->GetDescription(*arg2); |
5137 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
5138 | } |
5139 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5140 | return resultobj; |
5141 | fail: |
5142 | return NULL__null; |
5143 | } |
5144 | |
5145 | |
5146 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetSection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5147 | PyObject *resultobj = 0; |
5148 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
5149 | void *argp1 = 0 ; |
5150 | int res1 = 0 ; |
5151 | PyObject * obj0 = 0 ; |
5152 | lldb::SBSection result; |
5153 | |
5154 | if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetSection",&obj0)) SWIG_failgoto fail; |
5155 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
5156 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetSection" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_GetSection" "', argument " "1"" of type '" "lldb::SBAddress *""'"); goto fail; } while( 0); |
5158 | } |
5159 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
5160 | { |
5161 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
5162 | result = (arg1)->GetSection(); |
5163 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
5164 | } |
5165 | resultobj = SWIG_NewPointerObj((new lldb::SBSection(static_cast< const lldb::SBSection& >(result))), SWIGTYPE_p_lldb__SBSection, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new lldb::SBSection(static_cast < const lldb::SBSection& >(result))), swig_types[51 ], 0x1 | 0); |
5166 | return resultobj; |
5167 | fail: |
5168 | return NULL__null; |
5169 | } |
5170 | |
5171 | |
5172 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5173 | PyObject *resultobj = 0; |
5174 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
5175 | void *argp1 = 0 ; |
5176 | int res1 = 0 ; |
5177 | PyObject * obj0 = 0 ; |
5178 | lldb::addr_t result; |
5179 | |
5180 | if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetOffset",&obj0)) SWIG_failgoto fail; |
5181 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
5182 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5183 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetOffset" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_GetOffset" "', argument " "1"" of type '" "lldb::SBAddress *""'"); goto fail; } while( 0); |
5184 | } |
5185 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
5186 | { |
5187 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
5188 | result = (lldb::addr_t)(arg1)->GetOffset(); |
5189 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
5190 | } |
5191 | resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); |
5192 | return resultobj; |
5193 | fail: |
5194 | return NULL__null; |
5195 | } |
5196 | |
5197 | |
5198 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_SetAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5199 | PyObject *resultobj = 0; |
5200 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
5201 | lldb::SBSection arg2 ; |
5202 | lldb::addr_t arg3 ; |
5203 | void *argp1 = 0 ; |
5204 | int res1 = 0 ; |
5205 | void *argp2 ; |
5206 | int res2 = 0 ; |
5207 | unsigned long long val3 ; |
5208 | int ecode3 = 0 ; |
5209 | PyObject * obj0 = 0 ; |
5210 | PyObject * obj1 = 0 ; |
5211 | PyObject * obj2 = 0 ; |
5212 | |
5213 | if (!PyArg_ParseTuple(args,(char *)"OOO:SBAddress_SetAddress",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
5214 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
5215 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_SetAddress" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_SetAddress" "', argument " "1"" of type '" "lldb::SBAddress *""'"); goto fail; } while( 0); |
5217 | } |
5218 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
5219 | { |
5220 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_lldb__SBSection, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[51] , 0 | 0, 0); |
5221 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5222 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SBAddress_SetAddress" "', argument " "2"" of type '" "lldb::SBSection""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "SBAddress_SetAddress" "', argument " "2"" of type '" "lldb::SBSection""'"); goto fail; } while(0); |
5223 | } |
5224 | if (!argp2) { |
5225 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SBAddress_SetAddress" "', argument " "2"" of type '" "lldb::SBSection""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SBAddress_SetAddress" "', argument " "2"" of type '" "lldb::SBSection""'"); goto fail; } while(0); |
5226 | } else { |
5227 | lldb::SBSection * temp = reinterpret_cast< lldb::SBSection * >(argp2); |
5228 | arg2 = *temp; |
5229 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete temp; |
5230 | } |
5231 | } |
5232 | ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(obj2, &val3); |
5233 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
5234 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SBAddress_SetAddress" "', argument " "3"" of type '" "lldb::addr_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "SBAddress_SetAddress" "', argument " "3"" of type '" "lldb::addr_t""'"); goto fail; } while(0); |
5235 | } |
5236 | arg3 = static_cast< lldb::addr_t >(val3); |
5237 | { |
5238 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
5239 | (arg1)->SetAddress(arg2,arg3); |
5240 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
5241 | } |
5242 | resultobj = SWIG_Py_Void(); |
5243 | return resultobj; |
5244 | fail: |
5245 | return NULL__null; |
5246 | } |
5247 | |
5248 | |
5249 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetAddressClass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5250 | PyObject *resultobj = 0; |
5251 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
5252 | void *argp1 = 0 ; |
5253 | int res1 = 0 ; |
5254 | PyObject * obj0 = 0 ; |
5255 | lldb::AddressClass result; |
5256 | |
5257 | if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetAddressClass",&obj0)) SWIG_failgoto fail; |
5258 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
5259 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5260 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetAddressClass" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_GetAddressClass" "', argument " "1"" of type '" "lldb::SBAddress *""'"); goto fail; } while(0); |
5261 | } |
5262 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
5263 | { |
5264 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
5265 | result = (lldb::AddressClass)(arg1)->GetAddressClass(); |
5266 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
5267 | } |
5268 | resultobj = SWIG_From_int(static_cast< int >(result)); |
5269 | return resultobj; |
5270 | fail: |
5271 | return NULL__null; |
5272 | } |
5273 | |
5274 | |
5275 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetSymbolContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5276 | PyObject *resultobj = 0; |
5277 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
5278 | uint32_t arg2 ; |
5279 | void *argp1 = 0 ; |
5280 | int res1 = 0 ; |
5281 | unsigned int val2 ; |
5282 | int ecode2 = 0 ; |
5283 | PyObject * obj0 = 0 ; |
5284 | PyObject * obj1 = 0 ; |
5285 | lldb::SBSymbolContext result; |
5286 | |
5287 | if (!PyArg_ParseTuple(args,(char *)"OO:SBAddress_GetSymbolContext",&obj0,&obj1)) SWIG_failgoto fail; |
5288 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
5289 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetSymbolContext" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_GetSymbolContext" "', argument " "1"" of type '" "lldb::SBAddress *""'"); goto fail; } while(0); |
5291 | } |
5292 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
5293 | ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); |
5294 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5295 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SBAddress_GetSymbolContext" "', argument " "2"" of type '" "uint32_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SBAddress_GetSymbolContext" "', argument " "2"" of type '" "uint32_t""'"); goto fail; } while (0); |
5296 | } |
5297 | arg2 = static_cast< uint32_t >(val2); |
5298 | { |
5299 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
5300 | result = (arg1)->GetSymbolContext(arg2); |
5301 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
5302 | } |
5303 | resultobj = SWIG_NewPointerObj((new lldb::SBSymbolContext(static_cast< const lldb::SBSymbolContext& >(result))), SWIGTYPE_p_lldb__SBSymbolContext, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new lldb::SBSymbolContext( static_cast< const lldb::SBSymbolContext& >(result) )), swig_types[57], 0x1 | 0); |
5304 | return resultobj; |
5305 | fail: |
5306 | return NULL__null; |
5307 | } |
5308 | |
5309 | |
5310 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5311 | PyObject *resultobj = 0; |
5312 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
5313 | void *argp1 = 0 ; |
5314 | int res1 = 0 ; |
5315 | PyObject * obj0 = 0 ; |
5316 | lldb::SBModule result; |
5317 | |
5318 | if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetModule",&obj0)) SWIG_failgoto fail; |
5319 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
5320 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5321 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetModule" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_GetModule" "', argument " "1"" of type '" "lldb::SBAddress *""'"); goto fail; } while( 0); |
5322 | } |
5323 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
5324 | { |
5325 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
5326 | result = (arg1)->GetModule(); |
5327 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
5328 | } |
5329 | resultobj = SWIG_NewPointerObj((new lldb::SBModule(static_cast< const lldb::SBModule& >(result))), SWIGTYPE_p_lldb__SBModule, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new lldb::SBModule(static_cast < const lldb::SBModule& >(result))), swig_types[41] , 0x1 | 0); |
5330 | return resultobj; |
5331 | fail: |
5332 | return NULL__null; |
5333 | } |
5334 | |
5335 | |
5336 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetCompileUnit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5337 | PyObject *resultobj = 0; |
5338 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
5339 | void *argp1 = 0 ; |
5340 | int res1 = 0 ; |
5341 | PyObject * obj0 = 0 ; |
5342 | lldb::SBCompileUnit result; |
5343 | |
5344 | if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetCompileUnit",&obj0)) SWIG_failgoto fail; |
5345 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
5346 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetCompileUnit" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_GetCompileUnit" "', argument " "1"" of type '" "lldb::SBAddress *""'"); goto fail; } while( 0); |
5348 | } |
5349 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
5350 | { |
5351 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
5352 | result = (arg1)->GetCompileUnit(); |
5353 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
5354 | } |
5355 | resultobj = SWIG_NewPointerObj((new lldb::SBCompileUnit(static_cast< const lldb::SBCompileUnit& >(result))), SWIGTYPE_p_lldb__SBCompileUnit, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new lldb::SBCompileUnit(static_cast < const lldb::SBCompileUnit& >(result))), swig_types [20], 0x1 | 0); |
5356 | return resultobj; |
5357 | fail: |
5358 | return NULL__null; |
5359 | } |
5360 | |
5361 | |
5362 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5363 | PyObject *resultobj = 0; |
5364 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
5365 | void *argp1 = 0 ; |
5366 | int res1 = 0 ; |
5367 | PyObject * obj0 = 0 ; |
5368 | lldb::SBFunction result; |
5369 | |
5370 | if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetFunction",&obj0)) SWIG_failgoto fail; |
5371 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
5372 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetFunction" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_GetFunction" "', argument " "1"" of type '" "lldb::SBAddress *""'"); goto fail; } while( 0); |
5374 | } |
5375 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
5376 | { |
5377 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
5378 | result = (arg1)->GetFunction(); |
5379 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
5380 | } |
5381 | resultobj = SWIG_NewPointerObj((new lldb::SBFunction(static_cast< const lldb::SBFunction& >(result))), SWIGTYPE_p_lldb__SBFunction, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new lldb::SBFunction(static_cast < const lldb::SBFunction& >(result))), swig_types[31 ], 0x1 | 0); |
5382 | return resultobj; |
5383 | fail: |
5384 | return NULL__null; |
5385 | } |
5386 | |
5387 | |
5388 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5389 | PyObject *resultobj = 0; |
5390 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
5391 | void *argp1 = 0 ; |
5392 | int res1 = 0 ; |
5393 | PyObject * obj0 = 0 ; |
5394 | lldb::SBBlock result; |
5395 | |
5396 | if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetBlock",&obj0)) SWIG_failgoto fail; |
5397 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
5398 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetBlock" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_GetBlock" "', argument " "1"" of type '" "lldb::SBAddress *""'"); goto fail; } while( 0); |
5400 | } |
5401 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
5402 | { |
5403 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
5404 | result = (arg1)->GetBlock(); |
5405 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
5406 | } |
5407 | resultobj = SWIG_NewPointerObj((new lldb::SBBlock(static_cast< const lldb::SBBlock& >(result))), SWIGTYPE_p_lldb__SBBlock, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new lldb::SBBlock(static_cast < const lldb::SBBlock& >(result))), swig_types[10], 0x1 | 0); |
5408 | return resultobj; |
5409 | fail: |
5410 | return NULL__null; |
5411 | } |
5412 | |
5413 | |
5414 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5415 | PyObject *resultobj = 0; |
5416 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
5417 | void *argp1 = 0 ; |
5418 | int res1 = 0 ; |
5419 | PyObject * obj0 = 0 ; |
5420 | lldb::SBSymbol result; |
5421 | |
5422 | if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetSymbol",&obj0)) SWIG_failgoto fail; |
5423 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
5424 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5425 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetSymbol" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_GetSymbol" "', argument " "1"" of type '" "lldb::SBAddress *""'"); goto fail; } while( 0); |
5426 | } |
5427 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
5428 | { |
5429 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
5430 | result = (arg1)->GetSymbol(); |
5431 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
5432 | } |
5433 | resultobj = SWIG_NewPointerObj((new lldb::SBSymbol(static_cast< const lldb::SBSymbol& >(result))), SWIGTYPE_p_lldb__SBSymbol, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new lldb::SBSymbol(static_cast < const lldb::SBSymbol& >(result))), swig_types[56] , 0x1 | 0); |
5434 | return resultobj; |
5435 | fail: |
5436 | return NULL__null; |
5437 | } |
5438 | |
5439 | |
5440 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SBAddress_GetLineEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5441 | PyObject *resultobj = 0; |
5442 | lldb::SBAddress *arg1 = (lldb::SBAddress *) 0 ; |
5443 | void *argp1 = 0 ; |
5444 | int res1 = 0 ; |
5445 | PyObject * obj0 = 0 ; |
5446 | lldb::SBLineEntry result; |
5447 | |
5448 | if (!PyArg_ParseTuple(args,(char *)"O:SBAddress_GetLineEntry",&obj0)) SWIG_failgoto fail; |
5449 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_lldb__SBAddress, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
5450 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5451 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SBAddress_GetLineEntry" "', argument " "1"" of type '" "lldb::SBAddress *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SBAddress_GetLineEntry" "', argument " "1"" of type '" "lldb::SBAddress *""'"); goto fail; } while( 0); |
5452 | } |
5453 | arg1 = reinterpret_cast< lldb::SBAddress * >(argp1); |
5454 | { |
5455 | SWIG_PYTHON_THREAD_BEGIN_ALLOWSWIG_Python_Thread_Allow _swig_thread_allow; |
5456 | result = (arg1)->GetLineEntry(); |
5457 | SWIG_PYTHON_THREAD_END_ALLOW_swig_thread_allow.end(); |
5458 | } |
5459 |