Changeset 81254
- Timestamp:
- 07/28/11 01:36:47 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gsoc11-rev-upgrade/base/src/machista1.0/machista_wrap.c
r80760 r81254 1 1 /* ---------------------------------------------------------------------------- 2 2 * This file was automatically generated by SWIG (http://www.swig.org). 3 * Version 1.3. 313 * Version 1.3.40 4 4 * 5 5 * This file is not intended to be easily readable and contains a number of … … 9 9 * ----------------------------------------------------------------------------- */ 10 10 11 #define SWIGTCL 12 11 13 /* ----------------------------------------------------------------------------- 12 14 * This section contains generic SWIG labels for method/variable … … 16 18 /* template workaround for compilers that cannot correctly implement the C++ standard */ 17 19 #ifndef SWIGTEMPLATEDISAMBIGUATOR 18 # if defined(__SUNPRO_CC) 19 # if (__SUNPRO_CC <= 0x560)20 # define SWIGTEMPLATEDISAMBIGUATOR template21 # else 22 # define SWIGTEMPLATEDISAMBIGUATOR 23 # endif20 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) 21 # define SWIGTEMPLATEDISAMBIGUATOR template 22 # elif defined(__HP_aCC) 23 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ 24 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ 25 # define SWIGTEMPLATEDISAMBIGUATOR template 24 26 # else 25 # define SWIGTEMPLATEDISAMBIGUATOR27 # define SWIGTEMPLATEDISAMBIGUATOR 26 28 # endif 27 29 #endif … … 49 51 # define SWIGUNUSED 50 52 # endif 53 #endif 54 55 #ifndef SWIG_MSC_UNSUPPRESS_4505 56 # if defined(_MSC_VER) 57 # pragma warning(disable : 4505) /* unreferenced local function has been removed */ 58 # endif 51 59 #endif 52 60 … … 106 114 #endif 107 115 116 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ 117 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) 118 # define _SCL_SECURE_NO_DEPRECATE 119 #endif 120 121 108 122 109 123 #include <stdio.h> … … 117 131 * swigrun.swg 118 132 * 119 * This file contains generic C API SWIG runtime support for pointer133 * This file contains generic C API SWIG runtime support for pointer 120 134 * type checking. 121 135 * ----------------------------------------------------------------------------- */ … … 123 137 /* This should only be incremented when either the layout of swig_type_info changes, 124 138 or for whatever reason, the runtime changes incompatibly */ 125 #define SWIG_RUNTIME_VERSION " 3"139 #define SWIG_RUNTIME_VERSION "4" 126 140 127 141 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ … … 136 150 /* 137 151 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for 138 creating a static or dynamic library from the swigruntime code.139 In 99.9% of the cases, swigjust needs to declare them as 'static'.140 141 But only do this if isstrictly necessary, ie, if you have problems142 with your compiler or s o.152 creating a static or dynamic library from the SWIG runtime code. 153 In 99.9% of the cases, SWIG just needs to declare them as 'static'. 154 155 But only do this if strictly necessary, ie, if you have problems 156 with your compiler or suchlike. 143 157 */ 144 158 … … 158 172 /* Flags for pointer conversions */ 159 173 #define SWIG_POINTER_DISOWN 0x1 174 #define SWIG_CAST_NEW_MEMORY 0x2 160 175 161 176 /* Flags for new pointer objects */ … … 166 181 Flags/methods for returning states. 167 182 168 The swigconversion methods, as ConvertPtr, return and integer183 The SWIG conversion methods, as ConvertPtr, return and integer 169 184 that tells if the conversion was successful or not. And if not, 170 185 an error code can be returned (see swigerrors.swg for the codes). … … 173 188 states. 174 189 175 In old swig versions, you usually write code as:190 In old versions of SWIG, code such as the following was usually written: 176 191 177 192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { … … 181 196 } 182 197 183 Now you can be more explicit as:198 Now you can be more explicit: 184 199 185 200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags); … … 190 205 } 191 206 192 that seems to be the same, but now you can also do207 which is the same really, but now you can also do 193 208 194 209 Type *ptr; … … 208 223 I.e., now SWIG_ConvertPtr can return new objects and you can 209 224 identify the case and take care of the deallocation. Of course that 210 requires also to SWIG_ConvertPtr to return new result values,as225 also requires SWIG_ConvertPtr to return new result values, such as 211 226 212 227 int SWIG_ConvertPtr(obj, ptr,...) { … … 226 241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be 227 242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the 228 swigerrors code.243 SWIG errors code. 229 244 230 245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code … … 240 255 241 256 just use the SWIG_AddCast()/SWIG_CheckState() 242 243 244 */ 257 */ 258 245 259 #define SWIG_OK (0) 246 260 #define SWIG_ERROR (-1) … … 267 281 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) 268 282 269 270 283 /* Cast-Rank Mode */ 271 284 #if defined(SWIG_CASTRANK_MODE) … … 290 303 291 304 292 293 294 305 #include <string.h> 295 306 … … 298 309 #endif 299 310 300 typedef void *(*swig_converter_func)(void * );311 typedef void *(*swig_converter_func)(void *, int *); 301 312 typedef struct swig_type_info *(*swig_dycast_func)(void **); 302 313 303 /* Structure to store infor omation on one type */314 /* Structure to store information on one type */ 304 315 typedef struct swig_type_info { 305 316 const char *name; /* mangled name of this type */ … … 346 357 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; 347 358 } 348 return ( l1 - f1) - (l2 - f2);359 return (int)((l1 - f1) - (l2 - f2)); 349 360 } 350 361 … … 388 399 389 400 390 /* think of this as a c++ template<> or a scheme macro */391 #define SWIG_TypeCheck_Template(comparison, ty) \392 if (ty) { \393 swig_cast_info *iter = ty->cast; \394 while (iter) { \395 if (comparison) { \396 if (iter == ty->cast) return iter; \397 /* Move iter to the top of the linked list */ \398 iter->prev->next = iter->next; \399 if (iter->next) \400 iter->next->prev = iter->prev; \401 iter->next = ty->cast; \402 iter->prev = 0; \403 if (ty->cast) ty->cast->prev = iter; \404 ty->cast = iter; \405 return iter; \406 } \407 iter = iter->next; \408 } \409 } \410 return 0411 412 401 /* 413 402 Check the typename … … 415 404 SWIGRUNTIME swig_cast_info * 416 405 SWIG_TypeCheck(const char *c, swig_type_info *ty) { 417 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); 418 } 419 420 /* Same as previous function, except strcmp is replaced with a pointer comparison */ 406 if (ty) { 407 swig_cast_info *iter = ty->cast; 408 while (iter) { 409 if (strcmp(iter->type->name, c) == 0) { 410 if (iter == ty->cast) 411 return iter; 412 /* Move iter to the top of the linked list */ 413 iter->prev->next = iter->next; 414 if (iter->next) 415 iter->next->prev = iter->prev; 416 iter->next = ty->cast; 417 iter->prev = 0; 418 if (ty->cast) ty->cast->prev = iter; 419 ty->cast = iter; 420 return iter; 421 } 422 iter = iter->next; 423 } 424 } 425 return 0; 426 } 427 428 /* 429 Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison 430 */ 421 431 SWIGRUNTIME swig_cast_info * 422 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { 423 SWIG_TypeCheck_Template(iter->type == from, into); 432 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { 433 if (ty) { 434 swig_cast_info *iter = ty->cast; 435 while (iter) { 436 if (iter->type == from) { 437 if (iter == ty->cast) 438 return iter; 439 /* Move iter to the top of the linked list */ 440 iter->prev->next = iter->next; 441 if (iter->next) 442 iter->next->prev = iter->prev; 443 iter->next = ty->cast; 444 iter->prev = 0; 445 if (ty->cast) ty->cast->prev = iter; 446 ty->cast = iter; 447 return iter; 448 } 449 iter = iter->next; 450 } 451 } 452 return 0; 424 453 } 425 454 … … 428 457 */ 429 458 SWIGRUNTIMEINLINE void * 430 SWIG_TypeCast(swig_cast_info *ty, void *ptr ) {431 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr );459 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { 460 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); 432 461 } 433 462 … … 826 855 swig_attribute *attributes; 827 856 struct swig_class **bases; 828 c har **base_names;857 const char **base_names; 829 858 swig_module_info *module; 830 859 } swig_class; … … 957 986 #define SWIG_Tcl_GetConstant SWIG_Tcl_GetConstantObj 958 987 988 #include "assert.h" 959 989 960 990 #ifdef __cplusplus … … 1012 1042 *ptr = (void *) 0; 1013 1043 if (strcmp(c,"NULL") == 0) return SWIG_OK; 1044 1045 /* Empty string: not a pointer */ 1046 if (*c == 0) return SWIG_ERROR; 1047 1014 1048 /* Hmmm. It could be an object name. */ 1015 if (Tcl_VarEval(interp,c," cget -this", (char *) NULL) == TCL_OK) { 1049 1050 /* Check if this is a command at all. Prevents <c> cget -this */ 1051 /* from being called when c is not a command, firing the unknown proc */ 1052 if (Tcl_VarEval(interp,"info commands ", c, (char *) NULL) == TCL_OK) { 1016 1053 Tcl_Obj *result = Tcl_GetObjResult(interp); 1017 c = Tcl_GetStringFromObj(result, NULL); 1018 continue; 1019 } 1020 Tcl_ResetResult(interp); 1021 return SWIG_ERROR; 1022 } 1054 if (*(Tcl_GetStringFromObj(result, NULL)) == 0) { 1055 /* It's not a command, so it can't be a pointer */ 1056 Tcl_ResetResult(interp); 1057 return SWIG_ERROR; 1058 } 1059 } else { 1060 /* This will only fail if the argument is multiple words. */ 1061 /* Multiple words are also not commands. */ 1062 Tcl_ResetResult(interp); 1063 return SWIG_ERROR; 1064 } 1065 1066 /* Check if this is really a SWIG pointer */ 1067 if (Tcl_VarEval(interp,c," cget -this", (char *) NULL) != TCL_OK) { 1068 Tcl_ResetResult(interp); 1069 return SWIG_ERROR; 1070 } 1071 1072 c = Tcl_GetStringFromObj(Tcl_GetObjResult(interp), NULL); 1073 } 1074 1023 1075 c++; 1024 1076 c = SWIG_UnpackData(c,ptr,sizeof(void *)); … … 1031 1083 SWIG_Disown((void *) *ptr); 1032 1084 } 1033 *ptr = SWIG_TypeCast(tc,(void *) *ptr); 1085 { 1086 int newmemory = 0; 1087 *ptr = SWIG_TypeCast(tc,(void *) *ptr,&newmemory); 1088 assert(!newmemory); /* newmemory handling not yet implemented */ 1089 } 1034 1090 } 1035 1091 return SWIG_OK; … … 1322 1378 while (meth && meth->name) { 1323 1379 char *cr = (char *) Tcl_GetStringResult(interp); 1324 int meth_len = strlen(meth->name);1380 size_t meth_len = strlen(meth->name); 1325 1381 char* where = strchr(cr,':'); 1326 1382 while(where) { … … 1586 1642 #define SWIG_version "1.0" 1587 1643 1588 #define SWIGVERSION 0x0103 311644 #define SWIGVERSION 0x010340 1589 1645 #define SWIG_VERSION SWIGVERSION 1590 1646 … … 1609 1665 #endif 1610 1666 1667 /* Compatibility version for TCL stubs */ 1668 #ifndef SWIG_TCL_STUBS_VERSION 1669 #define SWIG_TCL_STUBS_VERSION "8.1" 1670 #endif 1671 1611 1672 1612 1673 … … 1620 1681 1621 1682 #include <limits.h> 1622 #ifndef LLONG_MIN 1623 # define LLONG_MIN LONG_LONG_MIN 1624 #endif 1625 #ifndef LLONG_MAX 1626 # define LLONG_MAX LONG_LONG_MAX 1627 #endif 1628 #ifndef ULLONG_MAX 1629 # define ULLONG_MAX ULONG_LONG_MAX 1683 #if !defined(SWIG_NO_LLONG_MAX) 1684 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) 1685 # define LLONG_MAX __LONG_LONG_MAX__ 1686 # define LLONG_MIN (-LLONG_MAX - 1LL) 1687 # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) 1688 # endif 1630 1689 #endif 1631 1690 … … 1756 1815 unsigned long v; 1757 1816 if (*nptr == '-') return SWIG_OverflowError; 1817 errno = 0; 1758 1818 v = strtoul(nptr, &endptr,0); 1759 if (errno == ERANGE) { 1819 if (nptr[0] == '\0' || *endptr != '\0') 1820 return SWIG_TypeError; 1821 if (v == ULONG_MAX && errno == ERANGE) { 1760 1822 errno = 0; 1761 1823 return SWIG_OverflowError; … … 1798 1860 }; 1799 1861 static swig_class *swig_macho_handle_bases[] = {0}; 1800 static c har *swig_macho_handle_base_names[] = {0};1862 static const char * swig_macho_handle_base_names[] = {0}; 1801 1863 static swig_class _wrap_class_macho_handle = { "macho_handle", &SWIGTYPE_p_macho_handle,0,0, swig_macho_handle_methods, swig_macho_handle_attributes, swig_macho_handle_bases,swig_macho_handle_base_names, &swig_module }; 1802 1864 SWIGINTERN int 1803 1865 _wrap_macho_loadcmd_mlt_install_name_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { 1804 1866 struct macho_loadcmd *arg1 = (struct macho_loadcmd *) 0 ; 1805 char *result = 0 ;1806 1867 void *argp1 = 0 ; 1807 1868 int res1 = 0 ; 1869 char *result = 0 ; 1808 1870 1809 1871 if (SWIG_GetArgs(interp, objc, objv,"o:machista::macho_loadcmd_mlt_install_name_get self ",(void *)0) == TCL_ERROR) SWIG_fail; … … 1824 1886 _wrap_macho_loadcmd_mlt_type_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { 1825 1887 struct macho_loadcmd *arg1 = (struct macho_loadcmd *) 0 ; 1826 uint32_t result;1827 1888 void *argp1 = 0 ; 1828 1889 int res1 = 0 ; 1890 uint32_t result; 1829 1891 1830 1892 if (SWIG_GetArgs(interp, objc, objv,"o:machista::macho_loadcmd_mlt_type_get self ",(void *)0) == TCL_ERROR) SWIG_fail; … … 1845 1907 _wrap_macho_loadcmd_mlt_comp_version_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { 1846 1908 struct macho_loadcmd *arg1 = (struct macho_loadcmd *) 0 ; 1847 uint32_t result;1848 1909 void *argp1 = 0 ; 1849 1910 int res1 = 0 ; 1911 uint32_t result; 1850 1912 1851 1913 if (SWIG_GetArgs(interp, objc, objv,"o:machista::macho_loadcmd_mlt_comp_version_get self ",(void *)0) == TCL_ERROR) SWIG_fail; … … 1866 1928 _wrap_macho_loadcmd_mlt_version_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { 1867 1929 struct macho_loadcmd *arg1 = (struct macho_loadcmd *) 0 ; 1868 uint32_t result;1869 1930 void *argp1 = 0 ; 1870 1931 int res1 = 0 ; 1932 uint32_t result; 1871 1933 1872 1934 if (SWIG_GetArgs(interp, objc, objv,"o:machista::macho_loadcmd_mlt_version_get self ",(void *)0) == TCL_ERROR) SWIG_fail; … … 1887 1949 _wrap_macho_loadcmd_next_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { 1888 1950 struct macho_loadcmd *arg1 = (struct macho_loadcmd *) 0 ; 1889 struct macho_loadcmd *result = 0 ;1890 1951 void *argp1 = 0 ; 1891 1952 int res1 = 0 ; 1953 struct macho_loadcmd *result = 0 ; 1892 1954 1893 1955 if (SWIG_GetArgs(interp, objc, objv,"o:machista::macho_loadcmd_next_get self ",(void *)0) == TCL_ERROR) SWIG_fail; … … 1917 1979 }; 1918 1980 static swig_class *swig_macho_loadcmd_bases[] = {0}; 1919 static c har *swig_macho_loadcmd_base_names[] = {0};1981 static const char * swig_macho_loadcmd_base_names[] = {0}; 1920 1982 static swig_class _wrap_class_macho_loadcmd = { "macho_loadcmd", &SWIGTYPE_p_macho_loadcmd,0,0, swig_macho_loadcmd_methods, swig_macho_loadcmd_attributes, swig_macho_loadcmd_bases,swig_macho_loadcmd_base_names, &swig_module }; 1921 1983 SWIGINTERN int 1922 1984 _wrap_macho_arch_mat_install_name_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { 1923 1985 struct macho_arch *arg1 = (struct macho_arch *) 0 ; 1924 char *result = 0 ;1925 1986 void *argp1 = 0 ; 1926 1987 int res1 = 0 ; 1988 char *result = 0 ; 1927 1989 1928 1990 if (SWIG_GetArgs(interp, objc, objv,"o:machista::macho_arch_mat_install_name_get self ",(void *)0) == TCL_ERROR) SWIG_fail; … … 1943 2005 _wrap_macho_arch_mat_rpath_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { 1944 2006 struct macho_arch *arg1 = (struct macho_arch *) 0 ; 1945 char *result = 0 ;1946 2007 void *argp1 = 0 ; 1947 2008 int res1 = 0 ; 2009 char *result = 0 ; 1948 2010 1949 2011 if (SWIG_GetArgs(interp, objc, objv,"o:machista::macho_arch_mat_rpath_get self ",(void *)0) == TCL_ERROR) SWIG_fail; … … 1964 2026 _wrap_macho_arch_mat_arch_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { 1965 2027 struct macho_arch *arg1 = (struct macho_arch *) 0 ; 1966 cpu_type_t result;1967 2028 void *argp1 = 0 ; 1968 2029 int res1 = 0 ; 2030 cpu_type_t result; 1969 2031 1970 2032 if (SWIG_GetArgs(interp, objc, objv,"o:machista::macho_arch_mat_arch_get self ",(void *)0) == TCL_ERROR) SWIG_fail; … … 1985 2047 _wrap_macho_arch_mat_comp_version_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { 1986 2048 struct macho_arch *arg1 = (struct macho_arch *) 0 ; 1987 uint32_t result;1988 2049 void *argp1 = 0 ; 1989 2050 int res1 = 0 ; 2051 uint32_t result; 1990 2052 1991 2053 if (SWIG_GetArgs(interp, objc, objv,"o:machista::macho_arch_mat_comp_version_get self ",(void *)0) == TCL_ERROR) SWIG_fail; … … 2006 2068 _wrap_macho_arch_mat_version_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { 2007 2069 struct macho_arch *arg1 = (struct macho_arch *) 0 ; 2008 uint32_t result;2009 2070 void *argp1 = 0 ; 2010 2071 int res1 = 0 ; 2072 uint32_t result; 2011 2073 2012 2074 if (SWIG_GetArgs(interp, objc, objv,"o:machista::macho_arch_mat_version_get self ",(void *)0) == TCL_ERROR) SWIG_fail; … … 2027 2089 _wrap_macho_arch_mat_loadcmds_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { 2028 2090 struct macho_arch *arg1 = (struct macho_arch *) 0 ; 2029 struct macho_loadcmd *result = 0 ;2030 2091 void *argp1 = 0 ; 2031 2092 int res1 = 0 ; 2093 struct macho_loadcmd *result = 0 ; 2032 2094 2033 2095 if (SWIG_GetArgs(interp, objc, objv,"o:machista::macho_arch_mat_loadcmds_get self ",(void *)0) == TCL_ERROR) SWIG_fail; … … 2048 2110 _wrap_macho_arch_next_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { 2049 2111 struct macho_arch *arg1 = (struct macho_arch *) 0 ; 2050 struct macho_arch *result = 0 ;2051 2112 void *argp1 = 0 ; 2052 2113 int res1 = 0 ; 2114 struct macho_arch *result = 0 ; 2053 2115 2054 2116 if (SWIG_GetArgs(interp, objc, objv,"o:machista::macho_arch_next_get self ",(void *)0) == TCL_ERROR) SWIG_fail; … … 2080 2142 }; 2081 2143 static swig_class *swig_macho_arch_bases[] = {0}; 2082 static c har *swig_macho_arch_base_names[] = {0};2144 static const char * swig_macho_arch_base_names[] = {0}; 2083 2145 static swig_class _wrap_class_macho_arch = { "macho_arch", &SWIGTYPE_p_macho_arch,0,0, swig_macho_arch_methods, swig_macho_arch_attributes, swig_macho_arch_bases,swig_macho_arch_base_names, &swig_module }; 2084 2146 SWIGINTERN int 2085 2147 _wrap_macho_mt_archs_get(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { 2086 2148 struct macho *arg1 = (struct macho *) 0 ; 2087 struct macho_arch *result = 0 ;2088 2149 void *argp1 = 0 ; 2089 2150 int res1 = 0 ; 2151 struct macho_arch *result = 0 ; 2090 2152 2091 2153 if (SWIG_GetArgs(interp, objc, objv,"o:machista::macho_mt_archs_get self ",(void *)0) == TCL_ERROR) SWIG_fail; … … 2111 2173 }; 2112 2174 static swig_class *swig_macho_bases[] = {0}; 2113 static c har *swig_macho_base_names[] = {0};2175 static const char * swig_macho_base_names[] = {0}; 2114 2176 static swig_class _wrap_class_macho = { "macho", &SWIGTYPE_p_macho,0,0, swig_macho_methods, swig_macho_attributes, swig_macho_bases,swig_macho_base_names, &swig_module }; 2115 2177 SWIGINTERN int … … 2151 2213 char *arg2 = (char *) 0 ; 2152 2214 struct macho **arg3 = (struct macho **) 0 ; 2153 int result;2154 2215 void *argp1 = 0 ; 2155 2216 int res1 = 0 ; … … 2158 2219 int alloc2 = 0 ; 2159 2220 struct macho *res3 ; 2221 int result; 2160 2222 2161 2223 { … … 2189 2251 _wrap_strerror(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { 2190 2252 int arg1 ; 2191 char *result = 0 ;2192 2253 int val1 ; 2193 2254 int ecode1 = 0 ; 2255 char *result = 0 ; 2194 2256 2195 2257 if (SWIG_GetArgs(interp, objc, objv,"o:machista::strerror err ",(void *)0) == TCL_ERROR) SWIG_fail; … … 2210 2272 _wrap_format_dylib_version(ClientData clientData SWIGUNUSED, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { 2211 2273 uint32_t arg1 ; 2212 char *result = 0 ;2213 2274 unsigned int val1 ; 2214 2275 int ecode1 = 0 ; 2276 char *result = 0 ; 2215 2277 2216 2278 if (SWIG_GetArgs(interp, objc, objv,"o:machista::format_dylib_version uint32_t ",(void *)0) == TCL_ERROR) SWIG_fail; … … 2270 2332 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; 2271 2333 static swig_type_info _swigt__p_int = {"_p_int", "int *|cpu_type_t *", 0, 0, (void*)0, 0}; 2272 static swig_type_info _swigt__p_macho = {"_p_macho", "struct macho * ", 0, 0, (void*)&_wrap_class_macho, 0};2273 static swig_type_info _swigt__p_macho_arch = {"_p_macho_arch", "struct macho_arch * ", 0, 0, (void*)&_wrap_class_macho_arch, 0};2274 static swig_type_info _swigt__p_macho_handle = {"_p_macho_handle", " struct macho_handle *", 0, 0, (void*)&_wrap_class_macho_handle, 0};2275 static swig_type_info _swigt__p_macho_loadcmd = {"_p_macho_loadcmd", "struct macho_loadcmd * ", 0, 0, (void*)&_wrap_class_macho_loadcmd, 0};2334 static swig_type_info _swigt__p_macho = {"_p_macho", "struct macho *|macho *", 0, 0, (void*)&_wrap_class_macho, 0}; 2335 static swig_type_info _swigt__p_macho_arch = {"_p_macho_arch", "struct macho_arch *|macho_arch *", 0, 0, (void*)&_wrap_class_macho_arch, 0}; 2336 static swig_type_info _swigt__p_macho_handle = {"_p_macho_handle", "macho_handle *|struct macho_handle *", 0, 0, (void*)&_wrap_class_macho_handle, 0}; 2337 static swig_type_info _swigt__p_macho_loadcmd = {"_p_macho_loadcmd", "struct macho_loadcmd *|macho_loadcmd *", 0, 0, (void*)&_wrap_class_macho_loadcmd, 0}; 2276 2338 static swig_type_info _swigt__p_p_macho = {"_p_p_macho", "struct macho **", 0, 0, (void*)0, 0}; 2277 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "u nsigned int *|uint32_t *", 0, 0, (void*)0, 0};2339 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "uint32_t *|unsigned int *", 0, 0, (void*)0, 0}; 2278 2340 2279 2341 static swig_type_info *swig_type_initial[] = { … … 2371 2433 size_t i; 2372 2434 swig_module_info *module_head, *iter; 2373 int found ;2435 int found, init; 2374 2436 2375 2437 clientdata = clientdata; … … 2381 2443 swig_module.cast_initial = swig_cast_initial; 2382 2444 swig_module.next = &swig_module; 2445 init = 1; 2446 } else { 2447 init = 0; 2383 2448 } 2384 2449 … … 2409 2474 } 2410 2475 2476 /* When multiple interpeters are used, a module could have already been initialized in 2477 a different interpreter, but not yet have a pointer in this interpreter. 2478 In this case, we do not want to continue adding types... everything should be 2479 set up already */ 2480 if (init == 0) return; 2481 2411 2482 /* Now work on filling in swig_module.types */ 2412 2483 #ifdef SWIGRUNTIME_DEBUG … … 2592 2663 if (interp == 0) return TCL_ERROR; 2593 2664 #ifdef USE_TCL_STUBS 2594 if (Tcl_InitStubs(interp, (char*)"8.1", 0) == NULL) { 2665 /* (char*) cast is required to avoid compiler warning/error for Tcl < 8.4. */ 2666 if (Tcl_InitStubs(interp, (char*)SWIG_TCL_STUBS_VERSION, 0) == NULL) { 2595 2667 return TCL_ERROR; 2596 2668 } 2597 2669 #endif 2670 #ifdef USE_TK_STUBS 2671 /* (char*) cast is required to avoid compiler warning/error. */ 2672 if (Tk_InitStubs(interp, (char*)SWIG_TCL_STUBS_VERSION, 0) == NULL) { 2673 return TCL_ERROR; 2674 } 2675 #endif 2676 2598 2677 Tcl_PkgProvide(interp, (char*)SWIG_name, (char*)SWIG_version); 2599 2678
Note: See TracChangeset
for help on using the changeset viewer.

