10#define SWIG_VERSION 0x040200
12#define SWIG_LUA_TARGET SWIG_LUA_FLAVOR_LUA
13#define SWIG_LUA_MODULE_GLOBAL
21#ifndef SWIGTEMPLATEDISAMBIGUATOR
22# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
23# define SWIGTEMPLATEDISAMBIGUATOR template
24# elif defined(__HP_aCC)
27# define SWIGTEMPLATEDISAMBIGUATOR template
29# define SWIGTEMPLATEDISAMBIGUATOR
35# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
36# define SWIGINLINE inline
45# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
46# define SWIGUNUSED __attribute__ ((__unused__))
51# define SWIGUNUSED __attribute__ ((__unused__))
57#ifndef SWIG_MSC_UNSUPPRESS_4505
59# pragma warning(disable : 4505)
65# define SWIGUNUSEDPARM(p)
67# define SWIGUNUSEDPARM(p) p SWIGUNUSED
73# define SWIGINTERN static SWIGUNUSED
77#ifndef SWIGINTERNINLINE
78# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
83# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
84# ifndef GCC_HASCLASSVISIBILITY
85# define GCC_HASCLASSVISIBILITY
91# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
92# if defined(STATIC_LINKED)
95# define SWIGEXPORT __declspec(dllexport)
98# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
99# define SWIGEXPORT __attribute__ ((visibility("default")))
108# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
109# define SWIGSTDCALL __stdcall
116#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
117# define _CRT_SECURE_NO_DEPRECATE
121#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
122# define _SCL_SECURE_NO_DEPRECATE
126#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
127# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
135#ifdef __INTEL_COMPILER
136# pragma warning disable 592
139#if __cplusplus >=201103L
140# define SWIG_NULLPTR nullptr
142# define SWIG_NULLPTR NULL
154#define SWIG_RUNTIME_VERSION "4"
157#ifdef SWIG_TYPE_TABLE
158# define SWIG_QUOTE_STRING(x) #x
159# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
160# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
162# define SWIG_TYPE_TABLE_NAME
175# define SWIGRUNTIME SWIGINTERN
178#ifndef SWIGRUNTIMEINLINE
179# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
183#ifndef SWIG_BUFFER_SIZE
184# define SWIG_BUFFER_SIZE 1024
188#define SWIG_POINTER_DISOWN 0x1
189#define SWIG_CAST_NEW_MEMORY 0x2
190#define SWIG_POINTER_NO_NULL 0x4
191#define SWIG_POINTER_CLEAR 0x8
192#define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
195#define SWIG_POINTER_OWN 0x1
279#define SWIG_ERROR (-1)
283#define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
285#define SWIG_IsOK(r) (r >= 0)
286#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
289#define SWIG_CASTRANKLIMIT (1 << 8)
291#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
293#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
295#define SWIG_BADOBJ (SWIG_ERROR)
296#define SWIG_OLDOBJ (SWIG_OK)
297#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
298#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
300#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
301#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
302#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
303#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
304#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
305#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
308#if defined(SWIG_CASTRANK_MODE)
309# ifndef SWIG_TypeRank
310# define SWIG_TypeRank unsigned long
312# ifndef SWIG_MAXCASTRANK
313# define SWIG_MAXCASTRANK (2)
315# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
316# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
324# define SWIG_AddCast(r) (r)
325# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
331#if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \
332 (defined __cplusplus && __cplusplus >= 201103L) || \
333 defined SWIG_HAVE_SNPRINTF) && \
334 !defined SWIG_NO_SNPRINTF
335# define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A)
336# define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B)
342# define SWIG_snprintf(O,S,F,A) sprintf(O,F,A)
343# define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B)
352typedef void *(*swig_converter_func)(
void *,
int *);
394 const char *f2,
const char *l2) {
395 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
396 while ((*f1 ==
' ') && (f1 != l1)) ++f1;
397 while ((*f2 ==
' ') && (f2 != l2)) ++f2;
398 if (*f1 != *f2)
return (*f1 > *f2) ? 1 : -1;
400 return (
int)((l1 - f1) - (l2 - f2));
410 const char* te = tb + strlen(tb);
412 while (equiv != 0 && *ne) {
413 for (nb = ne; *ne; ++ne) {
414 if (*ne ==
'|')
break;
439 if (strcmp(iter->
type->
name, c) == 0) {
440 if (iter == ty->
cast)
466 if (iter->
type == from) {
467 if (iter == ty->
cast)
499 if (!ty || !ty->
dcast)
return ty;
500 while (ty && (ty->
dcast)) {
501 ty = (*ty->
dcast)(ptr);
527 const char *last_name =
type->str;
530 if (*
s ==
'|') last_name =
s+1;
578 size_t r = iter->
size - 1;
581 size_t i = (l + r) >> 1;
582 const char *iname = iter->
types[i]->
name;
584 int compare = strcmp(name, iname);
586 return iter->
types[i];
602 }
while (iter != end);
629 for (; i < iter->
size; ++i) {
631 return iter->
types[i];
634 }
while (iter != end);
646 static const char hex[17] =
"0123456789abcdef";
647 const unsigned char *u = (
unsigned char *) ptr;
648 const unsigned char *eu = u + sz;
649 for (; u != eu; ++u) {
650 unsigned char uu = *u;
651 *(c++) = hex[(uu & 0xf0) >> 4];
652 *(c++) = hex[uu & 0xf];
662 unsigned char *u = (
unsigned char *) ptr;
663 const unsigned char *eu = u + sz;
664 for (; u != eu; ++u) {
667 if ((d >=
'0') && (d <=
'9'))
668 uu = (
unsigned char)((d -
'0') << 4);
669 else if ((d >=
'a') && (d <=
'f'))
670 uu = (
unsigned char)((d - (
'a'-10)) << 4);
674 if ((d >=
'0') && (d <=
'9'))
675 uu |= (
unsigned char)(d -
'0');
676 else if ((d >=
'a') && (d <=
'f'))
677 uu |= (
unsigned char)(d - (
'a'-10));
691 if ((2*
sizeof(
void *) + 2) > bsz)
return 0;
694 if (strlen(name) + 1 > (bsz - (r - buff)))
return 0;
702 if (strcmp(c,
"NULL") == 0) {
715 size_t lname = (name ? strlen(name) : 0);
716 if ((2*sz + 2 + lname) > bsz)
return 0;
720 strncpy(r,name,lname+1);
730 if (strcmp(c,
"NULL") == 0) {
745#define SWIG_UnknownError -1
746#define SWIG_IOError -2
747#define SWIG_RuntimeError -3
748#define SWIG_IndexError -4
749#define SWIG_TypeError -5
750#define SWIG_DivisionByZero -6
751#define SWIG_OverflowError -7
752#define SWIG_SyntaxError -8
753#define SWIG_ValueError -9
754#define SWIG_SystemError -10
755#define SWIG_AttributeError -11
756#define SWIG_MemoryError -12
757#define SWIG_NullReferenceError -13
781#define SWIG_LUA_FLAVOR_LUA 1
782#define SWIG_LUA_FLAVOR_ELUA 2
783#define SWIG_LUA_FLAVOR_ELUAC 3
785#if !defined(SWIG_LUA_TARGET)
786# error SWIG_LUA_TARGET not defined
789#if defined(SWIG_LUA_ELUA_EMULATE)
791struct swig_elua_entry;
793typedef struct swig_elua_key {
801typedef struct swig_elua_val {
805 const struct swig_elua_entry *
table;
807 lua_CFunction function;
817typedef struct swig_elua_entry {
822#define LSTRKEY(x) {LUA_TSTRING, {.strkey = x} }
823#define LNUMKEY(x) {LUA_TNUMBER, {.numkey = x} }
824#define LNILKEY {LUA_TNIL, {.strkey = 0} }
826#define LNUMVAL(x) {LUA_TNUMBER, {.number = x} }
827#define LFUNCVAL(x) {LUA_TFUNCTION, {.function = x} }
828#define LROVAL(x) {LUA_TTABLE, {.table = x} }
829#define LNILVAL {LUA_TNIL, {.string = 0} }
830#define LSTRVAL(x) {LUA_TSTRING, {.string = x} }
832#define LUA_REG_TYPE swig_elua_entry
834#define SWIG_LUA_ELUA_EMUL_METATABLE_KEY "__metatable"
836#define lua_pushrotable(L,p)\
839 SWIG_Lua_elua_emulate_register(L,(swig_elua_entry*)(p));
841#define SWIG_LUA_CONSTTAB_POINTER(B,C,D)\
842 LSTRKEY(B), {LUA_TUSERDATA, { .userdata={0,0,(void*)(C),&D} } }
844#define SWIG_LUA_CONSTTAB_BINARY(B,S,C,D)\
845 LSTRKEY(B), {LUA_TUSERDATA, { .userdata={1,S,(void*)(C),&D} } }
848#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
849# define SWIG_LUA_CONSTTAB_INT(B, C) LSTRKEY(B), LNUMVAL(C)
850# define SWIG_LUA_CONSTTAB_FLOAT(B, C) LSTRKEY(B), LNUMVAL(C)
851# define SWIG_LUA_CONSTTAB_STRING(B, C) LSTRKEY(B), LSTRVAL(C)
852# define SWIG_LUA_CONSTTAB_CHAR(B, C) LSTRKEY(B), LNUMVAL(C)
855#ifndef SWIG_LUA_CONSTTAB_POINTER
856#warning eLua does not support pointers as constants. By default, nil will be used as value
857#define SWIG_LUA_CONSTTAB_POINTER(B,C,D) LSTRKEY(B), LNILVAL
860#ifndef SWIG_LUA_CONSTTAB_BINARY
861#warning eLua does not support pointers to member as constants. By default, nil will be used as value
862#define SWIG_LUA_CONSTTAB_BINARY(B, S, C, D) LSTRKEY(B), LNILVAL
865# define SWIG_LUA_CONSTTAB_INT(B, C) SWIG_LUA_INT, (char *)B, (long)C, 0, 0, 0
866# define SWIG_LUA_CONSTTAB_FLOAT(B, C) SWIG_LUA_FLOAT, (char *)B, 0, (double)C, 0, 0
867# define SWIG_LUA_CONSTTAB_STRING(B, C) SWIG_LUA_STRING, (char *)B, 0, 0, (void *)C, 0
868# define SWIG_LUA_CONSTTAB_CHAR(B, C) SWIG_LUA_CHAR, (char *)B, (long)C, 0, 0, 0
869# define SWIG_LUA_CONSTTAB_POINTER(B,C,D)\
870 SWIG_LUA_POINTER, (char *)B, 0, 0, (void *)C, &D
871# define SWIG_LUA_CONSTTAB_BINARY(B, S, C, D)\
872 SWIG_LUA_BINARY, (char *)B, S, 0, (void *)C, &D
875#ifndef SWIG_LUA_ELUA_EMULATE
876#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
877# define LRO_STRVAL(v) {{.p = (char *) v}, LUA_TSTRING}
878# define LSTRVAL LRO_STRVAL
882#ifndef SWIG_LUA_ELUA_EMULATE
883#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
886#define MIN_OPT_LEVEL 2
905#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501
906# define lua_rawlen lua_strlen
907#elif LUA_VERSION_NUM == 501
908# define lua_rawlen lua_objlen
915#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501
919 const char *result = lua_tostring(
L, idx);
920 if (
len) *
len = lua_strlen(
L, idx);
929#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502
930# define lua_pushglobaltable(L) lua_pushvalue(L, LUA_GLOBALSINDEX)
934#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502
935# define lua_absindex(L,i) ((i)>0 || (i) <= LUA_REGISTRYINDEX ? (i) : lua_gettop(L) + (i) + 1)
939#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502
940#define lua_rawsetp(L,index,ptr)\
941 lua_pushlightuserdata(L,(void*)(ptr));\
945#define lua_rawgetp(L,index,ptr)\
946 lua_pushlightuserdata(L,(void*)(ptr));\
962 lua_pushstring (
L,
str);
975 lua_pushvfstring(
L, fmt, argp);
985#define SWIG_LUA_INT 1
986#define SWIG_LUA_FLOAT 2
987#define SWIG_LUA_STRING 3
988#define SWIG_LUA_POINTER 4
989#define SWIG_LUA_BINARY 5
990#define SWIG_LUA_CHAR 6
999#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
1069#define SWIG_NewPointerObj(L, ptr, type, owner) SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner)
1070#define SWIG_ConvertPtr(L,idx, ptr, type, flags) SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags)
1071#define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname) SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname)
1073#define SWIG_ConvertMember(L, idx, ptr, sz, ty) SWIG_Lua_ConvertPacked(L, idx, ptr, sz, ty)
1074#define SWIG_NewMemberObj(L, ptr, sz, type) SWIG_Lua_NewPackedObj(L, ptr, sz, type)
1077#define SWIG_GetModule(clientdata) SWIG_Lua_GetModule((lua_State*)(clientdata))
1078#define SWIG_SetModule(clientdata, pointer) SWIG_Lua_SetModule((lua_State*) (clientdata), pointer)
1079#define SWIG_MODULE_CLIENTDATA_TYPE lua_State*
1082#define SWIG_contract_assert(expr, msg) \
1083 do { if (!(expr)) { SWIG_Lua_pusherrstring(L, (char *) msg); goto fail; } } while (0)
1087#define SWIG_fail {goto fail;}
1088#define SWIG_fail_arg(func_name,argnum,type) \
1089 {SWIG_Lua_pushferrstring(L,"Error in %s (arg %d), expected '%s' got '%s'",\
1090 func_name,argnum,type,SWIG_Lua_typename(L,argnum));\
1092#define SWIG_fail_ptr(func_name,argnum,type) \
1093 SWIG_fail_arg(func_name,argnum,(type && type->str)?type->str:"void*")
1094#define SWIG_check_num_args(func_name,a,b) \
1095 if (lua_gettop(L)<a || lua_gettop(L)>b) \
1096 {SWIG_Lua_pushferrstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L));\
1100#define SWIG_Lua_get_table(L,n) \
1101 (lua_pushstring(L, n), lua_rawget(L,-2))
1103#define SWIG_Lua_add_function(L,n,f) \
1104 (lua_pushstring(L, n), \
1105 lua_pushcfunction(L, f), \
1108#define SWIG_Lua_add_boolean(L,n,b) \
1109 (lua_pushstring(L, n), \
1110 lua_pushboolean(L, b), \
1114#define SWIG_isptrtype(L,I) (lua_isuserdata(L,I) || lua_isnil(L,I))
1127 lua_rawget(
L,LUA_REGISTRYINDEX);
1128 if (lua_islightuserdata(
L,-1))
1138 lua_pushlightuserdata(
L,(
void*)module);
1139 lua_rawset(
L,LUA_REGISTRYINDEX);
1152#ifndef SWIGLUA_IGNORE_SET_IMMUTABLE
1154 luaL_error(
L,
"This variable is immutable");
1159#ifdef SWIG_LUA_ELUA_EMULATE
1163static int swig_lua_elua_emulate_unique_key;
1166SWIGINTERN void SWIG_Lua_elua_emulate_register(lua_State *
L,
const swig_elua_entry *
table)
1168 int i, table_parsed, parsed_tables_array, target_table;
1169 assert(lua_istable(
L,-1));
1170 target_table = lua_gettop(
L);
1172 lua_rawgetp(
L, LUA_REGISTRYINDEX, &swig_lua_elua_emulate_unique_key);
1173 if(lua_isnil(
L,-1)) {
1176 lua_pushvalue(
L,-1);
1177 lua_rawsetp(
L,LUA_REGISTRYINDEX,(
void*)(&swig_lua_elua_emulate_unique_key));
1179 parsed_tables_array = lua_gettop(
L);
1180 lua_pushvalue(
L,target_table);
1184 for(i = 0;
table[i].key.type != LUA_TNIL ||
table[i].value.type != LUA_TNIL;i++)
1186 const swig_elua_entry *entry =
table + i;
1187 int is_metatable = 0;
1188 switch(entry->key.type) {
1190 lua_pushstring(
L,entry->key.key.strkey);
1191 if(strcmp(entry->key.key.strkey, SWIG_LUA_ELUA_EMUL_METATABLE_KEY) == 0)
1195 lua_pushnumber(
L,entry->key.key.numkey);
1203 switch(entry->value.type) {
1205 lua_pushstring(
L,entry->value.value.string);
1208 lua_pushnumber(
L,entry->value.value.number);
1211 lua_pushcfunction(
L,entry->value.value.function);
1214 lua_rawgetp(
L,parsed_tables_array, entry->value.value.table);
1215 table_parsed = !lua_isnil(
L,-1);
1219 SWIG_Lua_elua_emulate_register(
L,entry->value.value.table);
1222 assert(lua_istable(
L,-1));
1223 lua_pushvalue(
L,-1);
1224 lua_setmetatable(
L,target_table);
1229 if(entry->value.value.userdata.member)
1231 entry->value.value.userdata.lvalue,
1232 *(entry->value.value.userdata.ptype));
1235 *(entry->value.value.userdata.ptype),0);
1243 assert(lua_gettop(
L) == pairs_start + 2);
1244 lua_rawset(
L,target_table);
1247 assert(lua_gettop(
L) == target_table);
1250SWIGINTERN void SWIG_Lua_elua_emulate_register_clear(lua_State *
L)
1253 lua_rawsetp(
L, LUA_REGISTRYINDEX, &swig_lua_elua_emulate_unique_key);
1258SWIGINTERN int SWIG_Lua_emulate_elua_getmetatable(lua_State *
L)
1262 lua_getfield(
L,-1,
"lua_getmetatable");
1264 assert(!lua_isnil(
L,-1));
1266 assert(lua_gettop(
L) == 3);
1268 if(!lua_isnil(
L,-1))
1271 assert(lua_gettop(
L) == 2);
1272 if(lua_istable(
L,-2)) {
1274 lua_getfield(
L,-1, SWIG_LUA_ELUA_EMUL_METATABLE_KEY);
1276 assert(lua_gettop(
L) == 2);
1284SWIGINTERN void SWIG_Lua_emulate_elua_swap_getmetatable(lua_State *
L)
1288 lua_pushstring(
L,
"lua_getmetatable");
1289 lua_getfield(
L,-2,
"getmetatable");
1290 assert(!lua_isnil(
L,-1));
1292 lua_pushstring(
L,
"getmetatable");
1293 lua_pushcfunction(
L, SWIG_Lua_emulate_elua_getmetatable);
1311 assert(lua_istable(
L,-2));
1312 lua_getmetatable(
L,-2);
1313 assert(lua_istable(
L,-1));
1315 assert(lua_istable(
L,-1));
1320 if (lua_iscfunction(
L,-1))
1329 assert(lua_istable(
L,-1));
1333 if (lua_isfunction(
L,-1))
1350 assert(lua_istable(
L,1));
1351 lua_getmetatable(
L,1);
1352 assert(lua_istable(
L,-1));
1355 if (lua_istable(
L,-1))
1360 if (lua_iscfunction(
L,-1))
1374#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
1384 assert(lua_istable(
L,-1));
1391 lua_getmetatable(
L,-1);
1409 assert(lua_istable(
L,-1));
1413 if( classes != 0 ) {
1414 while(*classes != 0) {
1431 assert(lua_istable(
L,-1));
1432 lua_checkstack(
L,5);
1437 lua_pushstring(
L,
".get");
1441 lua_pushstring(
L,
".set");
1445 lua_pushstring(
L,
".fn");
1453 lua_setmetatable(
L,-2);
1461 if( sub_namespace != 0) {
1462 while(*sub_namespace != 0) {
1470 lua_pushstring(
L,ns->
name);
1471 lua_pushvalue(
L,-2);
1474 assert(lua_gettop(
L) == begin+1);
1491 int last_arg = lua_gettop(
L);
1492 int original_metatable = last_arg + 1;
1497 lua_getmetatable(
L,first_arg);
1500#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
1502 assert(lua_istable(
L,-1));
1504 bases_table = lua_gettop(
L);
1508 assert(swig_type!=0);
1511 const char **base_names= ((
swig_lua_class*)(swig_type->clientdata))->base_names;
1513 for(;base_names[bases_count];
1524 int subcall_last_arg;
1525 int subcall_first_arg = lua_gettop(
L) + 1;
1528 for(j=first_arg;j<=last_arg;j++)
1530 subcall_last_arg = lua_gettop(
L);
1533 for(i=0;i<bases_count;i++) {
1535#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
1536 lua_rawgeti(
L,bases_table,i+1);
1538 if(lua_isnil(
L,-1)) {
1552 assert(base_swig_type != 0);
1558 assert(lua_isuserdata(
L, subcall_first_arg));
1559 assert(lua_istable(
L,-1));
1560 lua_setmetatable(
L,subcall_first_arg);
1561 assert(lua_gettop(
L) == subcall_last_arg);
1562 result = func(
L, base_swig_type,subcall_first_arg, ret);
1568 lua_pushvalue(
L,original_metatable);
1569 lua_setmetatable(
L,first_arg);
1571 to_remove = subcall_last_arg - last_arg;
1572 for(j=0;j<to_remove;j++)
1573 lua_remove(
L,last_arg+1);
1576 lua_pop(
L, lua_gettop(
L) - last_arg);
1578 if(ret) assert(lua_gettop(
L) == last_arg + *ret);
1592 int bases_search_result;
1593 int substack_start = lua_gettop(
L)-2;
1594 assert(first_arg == substack_start+1);
1595 lua_checkstack(
L,5);
1596 assert(lua_isuserdata(
L,-2));
1597 lua_getmetatable(
L,-2);
1598 assert(lua_istable(
L,-1));
1602 if (lua_iscfunction(
L,-1))
1604 lua_pushvalue(
L,substack_start+1);
1605 lua_pushvalue(
L,substack_start+2);
1616 return bases_search_result;
1630 int bases_search_result;
1631 int substack_start = lua_gettop(
L)-2;
1632 assert(first_arg == substack_start+1);
1633 lua_checkstack(
L,5);
1634 assert(lua_isuserdata(
L,-2));
1635 lua_getmetatable(
L,-2);
1636 assert(lua_istable(
L,-1));
1638 assert(lua_istable(
L,-1));
1640 lua_pushvalue(
L,substack_start+2);
1643 if (lua_iscfunction(
L,-1))
1645 lua_pushvalue(
L,substack_start+1);
1655 assert(lua_istable(
L,-1));
1656 lua_pushvalue(
L,substack_start+2);
1659 if (lua_isfunction(
L,-1))
1671 return bases_search_result;
1686 assert(lua_isuserdata(
L,1));
1711 int bases_search_result;
1712 int substack_start = lua_gettop(
L) - 3;
1713 lua_checkstack(
L,5);
1714 assert(lua_isuserdata(
L,substack_start+1));
1715 lua_getmetatable(
L,substack_start+1);
1716 assert(lua_istable(
L,-1));
1721 if (lua_istable(
L,-1))
1724 lua_pushvalue(
L,substack_start+2);
1727 if (lua_iscfunction(
L,-1))
1729 lua_pushvalue(
L,substack_start+1);
1730 lua_pushvalue(
L,substack_start+3);
1732 lua_remove(
L,substack_start+4);
1742 if (lua_iscfunction(
L,-1))
1744 lua_pushvalue(
L,substack_start+1);
1745 lua_pushvalue(
L,substack_start+2);
1746 lua_pushvalue(
L,substack_start+3);
1758 assert(lua_gettop(
L) == substack_start + 3);
1759 return bases_search_result;
1776 assert(lua_isuserdata(
L,1));
1781 SWIG_Lua_pushferrstring(
L,
"Assignment not possible. No setter/member with this name. For custom assignments implement __setitem method.");
1796 assert(lua_isuserdata(
L,-1));
1816 assert(lua_isuserdata(
L,1));
1819 lua_pushfstring(
L,
"<userdata of type '%s' at %p>", userData->
type->
str, userData->
ptr);
1829 assert(lua_isuserdata(
L,-1));
1843 if (!lua_isuserdata(
L,1) || !lua_isuserdata(
L,2))
1848 result=(usr1->
ptr==usr2->
ptr);
1849 lua_pushboolean(
L,result);
1877 lua_pushstring(
L,
"SWIG");
1882 lua_pushstring(
L,
".library");
1886 lua_pushstring(
L,
"inheritable_metamethods");
1894 lua_rawset(
L,LUA_REGISTRYINDEX);
1901 lua_pushstring(
L,
"SWIG");
1902 lua_rawget(
L,LUA_REGISTRYINDEX);
1903 if (!lua_istable(
L,-1))
1908 lua_pushstring(
L,
"SWIG");
1909 lua_rawget(
L,LUA_REGISTRYINDEX);
1916 lua_pushstring(
L,
".library");
1918 assert( !lua_isnil(
L,-1) );
1919 lua_pushstring(
L,
"inheritable_metamethods");
1931 lua_pushstring(
L,cname);
1949 if (clss->
bases[i]==0)
1958#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
1960SWIGINTERN void SWIG_Lua_merge_tables_by_index(lua_State *
L,
int target,
int source)
1964 while (lua_next(
L,source) != 0) {
1967 lua_pushvalue(
L,-2);
1968 lua_pushvalue(
L,-2);
1969 lua_rawset(
L, target);
1976SWIGINTERN void SWIG_Lua_merge_tables(lua_State *
L,
const char* name,
int original,
int base)
1979 lua_pushstring(
L,name);
1980 lua_rawget(
L,original);
1981 int original_table = lua_gettop(
L);
1982 lua_pushstring(
L,name);
1984 int base_table = lua_gettop(
L);
1985 SWIG_Lua_merge_tables_by_index(
L, original_table, base_table);
1994 assert(lua_istable(
L,-1));
1995 int original = lua_gettop(
L);
1997 int base = lua_gettop(
L);
1998 SWIG_Lua_merge_tables(
L,
".fn", original, base );
1999 SWIG_Lua_merge_tables(
L,
".set", original, base );
2000 SWIG_Lua_merge_tables(
L,
".get", original, base );
2011 if (clss->
bases[i]==0)
2017 SWIG_Lua_class_squash_base(
L, clss->
bases[i]);
2023#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
2027 assert(lua_istable(
L,-1));
2029 assert(lua_istable(
L,-1));
2035 assert(lua_istable(
L,-1));
2046 assert(lua_istable(
L,-1));
2048 for(i=0;clss->
bases[i];i++)
2062 size_t bases_count = 0;
2065 assert(lua_istable(
L,-1));
2066 for(i=0;clss->
bases[i];i++)
2070 assert(lua_istable(
L,-1));
2071 lua_rawseti(
L,-2,i+1);
2082 assert(lua_istable(
L,-1));
2083 for(i=0;clss->
methods[i].name;i++){
2097#if !defined(SWIG_LUA_SQUASH_BASES)
2139 lua_pushvalue(
L, metamethod_name_idx);
2153 for(i=0;clss->
bases[i];i++)
2168 int metamethod_name_idx;
2172 lua_checkstack(
L,5);
2173 numargs = lua_gettop(
L);
2176 lua_pushvalue(
L, lua_upvalueindex(1));
2177 metamethod_name_idx = lua_gettop(
L);
2179 lua_pushvalue(
L, lua_upvalueindex(2));
2186 SWIG_Lua_pushferrstring(
L,
"The metamethod proxy is set, but it failed to find actual metamethod. Memory corruption is most likely explanation.");
2193 lua_call(
L, numargs, LUA_MULTRET);
2194 return lua_gettop(
L);
2209 assert(lua_isstring(
L,-1));
2211 key_index = lua_gettop(
L);
2214 lua_pushvalue(
L,key_index);
2215 lua_gettable(
L,metatable_index);
2216 if( !lua_isnil(
L,-1) ) {
2223 for(i=0;clss->
bases[i];i++)
2227 lua_pushvalue(
L, key_index);
2229 if( !lua_isnil(
L,-1) ) {
2230 lua_pushvalue(
L, key_index);
2233 lua_pushvalue(
L, key_index);
2234 lua_pushlightuserdata(
L, clss);
2237 lua_rawset(
L, metatable_index);
2252 int metatable_index;
2253 int metamethods_info_index;
2254 int tostring_undefined;
2255 int eq_undefined = 0;
2258 metatable_index = lua_gettop(
L);
2260 assert(lua_istable(
L,-1));
2261 metamethods_info_index = lua_gettop(
L);
2263 while(lua_next(
L, metamethods_info_index) != 0 ) {
2265 const int is_inheritable = lua_toboolean(
L,-2);
2268 if(is_inheritable) {
2276 lua_pushstring(
L,
"__tostring");
2277 lua_pushvalue(
L,-1);
2278 lua_rawget(
L,metatable_index);
2279 tostring_undefined = lua_isnil(
L,-1);
2281 if( tostring_undefined ) {
2283 lua_rawset(
L, metatable_index);
2289 lua_pushstring(
L,
"__eq");
2290 lua_pushvalue(
L,-1);
2291 lua_rawget(
L,metatable_index);
2292 eq_undefined = lua_isnil(
L,-1);
2294 if( eq_undefined ) {
2296 lua_rawset(
L, metatable_index);
2310 lua_checkstack(
L,5);
2311 assert(lua_istable(
L,-1));
2316 assert(lua_istable(
L,-1));
2324 lua_getmetatable(
L,-1);
2325 assert(lua_istable(
L,-1));
2330 assert(lua_istable(
L,-1));
2335 assert( lua_gettop(
L) == begin );
2347 lua_pushstring(
L,clss->
fqname);
2349 if(!lua_isnil(
L,-1)) {
2351 assert(lua_gettop(
L)==begin);
2356 for(i=0;clss->
bases[i];i++)
2362 lua_pushstring(
L,clss->
fqname);
2364#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
2371 for(i=0;clss->
bases[i];i++)
2376 SWIG_Lua_merge_tables_by_index(
L,new_metatable_index, base_metatable);
2383 lua_pushstring(
L,
".type");
2384 lua_pushstring(
L,clss->
fqname);
2387 lua_pushstring(
L,
".bases");
2391 lua_pushstring(
L,
".get");
2395 lua_pushstring(
L,
".set");
2399 lua_pushstring(
L,
".fn");
2411 assert(lua_gettop(
L) == begin);
2413#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
2415 SWIG_Lua_class_squash_bases(
L,clss);
2420 assert( lua_gettop(
L) == begin );
2426 assert(lua_istable(
L,-1));
2440 begin = lua_gettop(
L);
2443 assert(lua_istable(
L,-1));
2444 lua_getmetatable(
L,-1);
2445 assert(lua_istable(
L,-1));
2446 lua_pushstring(
L,
".instance");
2449 assert(lua_istable(
L,-1));
2450 lua_pushstring(
L,
".static");
2451 lua_pushvalue(
L, -4);
2452 assert(lua_istable(
L,-1));
2456 assert(lua_gettop(
L) == begin);
2460#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
2467 lua_pushstring(
L,clss->
fqname);
2469 if(!lua_isnil(
L,-1)) {
2471 assert(lua_gettop(
L)==begin);
2476 for(i=0;clss->
bases[i];i++)
2482 lua_pushstring(
L,clss->
fqname);
2484 lua_pushrotable(
L, (
void*)(clss->
metatable));
2487 assert(lua_gettop(
L) == begin);
2498 if (
type->clientdata)
2501 if (lua_istable(
L,-1))
2503 lua_setmetatable(
L,-2);
2524#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
2537 if (lua_isnil(
L,index))
2542 if (lua_islightuserdata(
L,index))
2544 *ptr=lua_touserdata(
L,index);
2583 int argnum,
const char *func_name){
2586 luaL_error (
L,
"Error in %s, expected a %s at argument number %d\n",
2587 func_name,(
type &&
type->str)?
type->str:
"void*",argnum);
2600 memcpy(raw->
data,ptr,size);
2612 memcpy(ptr,raw->
data,size);
2622 if (lua_isuserdata(
L,tp))
2627 return "userdata (unknown type)";
2629 return lua_typename(
L,lua_type(
L,tp));
2643#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC))
2648 for (i = 0; constants[i].type; i++) {
2649 switch(constants[i].
type) {
2651 lua_pushstring(
L,constants[i].name);
2652 lua_pushinteger(
L,(lua_Integer)constants[i].lvalue);
2656 lua_pushstring(
L,constants[i].name);
2657 lua_pushnumber(
L,(lua_Number)constants[i].dvalue);
2661 lua_pushstring(
L,constants[i].name);
2663 char c = (char)constants[i].lvalue;
2664 lua_pushlstring(
L,&c,1);
2669 lua_pushstring(
L,constants[i].name);
2670 lua_pushstring(
L,(
char *) constants[i].pvalue);
2674 lua_pushstring(
L,constants[i].name);
2679 lua_pushstring(
L,constants[i].name);
2694#ifndef SWIG_DOSTRING_FAIL
2695#define SWIG_DOSTRING_FAIL(S) fprintf(stderr,"%s\n",S)
2705 if (
str==0 ||
str[0]==0)
return 0;
2707#if (defined(LUA_VERSION_NUM) && (LUA_VERSION_NUM>=501))
2728#define SWIGTYPE_p_Agedge_t swig_types[0]
2729#define SWIGTYPE_p_Agnode_t swig_types[1]
2730#define SWIGTYPE_p_Agraph_t swig_types[2]
2731#define SWIGTYPE_p_Agsym_t swig_types[3]
2732#define SWIGTYPE_p_FILE swig_types[4]
2735#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2736#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2740#define SWIG_name "gv"
2741#define SWIG_init luaopen_gv
2742#define SWIG_init_user luaopen_gv_user
2744#define SWIG_LUACODE luaopen_gv_luacode
2749template<
typename T>
class SwigValueWrapper {
2750 struct SwigSmartPointer {
2752 SwigSmartPointer(
T *p) : ptr(p) { }
2753 ~SwigSmartPointer() {
delete ptr; }
2754 SwigSmartPointer& operator=(SwigSmartPointer& rhs) {
T* oldptr = ptr; ptr = 0;
delete oldptr; ptr = rhs.ptr; rhs.ptr = 0;
return *
this; }
2755 void reset(
T *p) {
T* oldptr = ptr; ptr = 0;
delete oldptr; ptr = p; }
2757 SwigValueWrapper& operator=(
const SwigValueWrapper<T>& rhs);
2758 SwigValueWrapper(
const SwigValueWrapper<T>& rhs);
2760 SwigValueWrapper() : pointer(0) { }
2761 SwigValueWrapper& operator=(
const T& t) { SwigSmartPointer tmp(
new T(t)); pointer = tmp;
return *
this; }
2762#if __cplusplus >=201103L
2763 SwigValueWrapper& operator=(
T&& t) { SwigSmartPointer tmp(
new T(std::move(t))); pointer = tmp;
return *
this; }
2764 operator T&&()
const {
return std::move(*pointer.ptr); }
2766 operator T&()
const {
return *pointer.ptr; }
2768 T *operator&()
const {
return pointer.ptr; }
2769 static void reset(SwigValueWrapper& t,
T *p) { t.pointer.reset(p); }
2781template <
typename T>
T SwigValueInit() {
2785#if __cplusplus >=201103L
2786# define SWIG_STD_MOVE(OBJ) std::move(OBJ)
2788# define SWIG_STD_MOVE(OBJ) OBJ
2985 int ret = lua_isstring(
L, idx);
2987 ret = lua_isnil(
L, idx);
2997 char *arg1 = (
char *) 0 ;
3002 arg1 = (
char *)lua_tostring(
L, 1);
3017 char *arg1 = (
char *) 0 ;
3022 arg1 = (
char *)lua_tostring(
L, 1);
3037 char *arg1 = (
char *) 0 ;
3042 arg1 = (
char *)lua_tostring(
L, 1);
3057 char *arg1 = (
char *) 0 ;
3062 arg1 = (
char *)lua_tostring(
L, 1);
3077 char *arg1 = (
char *) 0 ;
3082 arg1 = (
char *)lua_tostring(
L, 1);
3097 char *arg1 = (
char *) 0 ;
3102 arg1 = (
char *)lua_tostring(
L, 1);
3117 FILE *arg1 = (FILE *) 0 ;
3144 argc = lua_gettop(
L);
3170 " Possible C/C++ prototypes are:\n"
3171 " read(char const *)\n"
3173 lua_error(
L);
return 0;
3181 char *arg2 = (
char *) 0 ;
3192 arg2 = (
char *)lua_tostring(
L, 2);
3210 argc = lua_gettop(
L);
3241 " Possible C/C++ prototypes are:\n"
3243 " graph(Agraph_t *,char *)\n");
3244 lua_error(
L);
return 0;
3252 char *arg2 = (
char *) 0 ;
3263 arg2 = (
char *)lua_tostring(
L, 2);
3310 char *arg2 = (
char *) 0 ;
3321 arg2 = (
char *)lua_tostring(
L, 2);
3336 char *arg1 = (
char *) 0 ;
3343 arg1 = (
char *)lua_tostring(
L, 1);
3364 char *arg2 = (
char *) 0 ;
3365 char *arg3 = (
char *) 0 ;
3377 arg2 = (
char *)lua_tostring(
L, 2);
3378 arg3 = (
char *)lua_tostring(
L, 3);
3396 argc = lua_gettop(
L);
3485 " Possible C/C++ prototypes are:\n"
3486 " edge(Agnode_t *,Agnode_t *)\n"
3487 " edge(Agnode_t *,char *)\n"
3488 " edge(char *,Agnode_t *)\n"
3489 " edge(Agraph_t *,char *,char *)\n");
3490 lua_error(
L);
return 0;
3498 char *arg2 = (
char *) 0 ;
3499 char *arg3 = (
char *) 0 ;
3511 arg2 = (
char *)lua_tostring(
L, 2);
3512 arg3 = (
char *)lua_tostring(
L, 3);
3513 result = (
char *)
setv(arg1,arg2,arg3);
3514 lua_pushstring(
L,(
const char *)result); SWIG_arg++;
3528 char *arg2 = (
char *) 0 ;
3529 char *arg3 = (
char *) 0 ;
3541 arg2 = (
char *)lua_tostring(
L, 2);
3542 arg3 = (
char *)lua_tostring(
L, 3);
3543 result = (
char *)
setv(arg1,arg2,arg3);
3544 lua_pushstring(
L,(
const char *)result); SWIG_arg++;
3558 char *arg2 = (
char *) 0 ;
3559 char *arg3 = (
char *) 0 ;
3571 arg2 = (
char *)lua_tostring(
L, 2);
3572 arg3 = (
char *)lua_tostring(
L, 3);
3573 result = (
char *)
setv(arg1,arg2,arg3);
3574 lua_pushstring(
L,(
const char *)result); SWIG_arg++;
3589 char *arg3 = (
char *) 0 ;
3606 arg3 = (
char *)lua_tostring(
L, 3);
3607 result = (
char *)
setv(arg1,arg2,arg3);
3608 lua_pushstring(
L,(
const char *)result); SWIG_arg++;
3623 char *arg3 = (
char *) 0 ;
3640 arg3 = (
char *)lua_tostring(
L, 3);
3641 result = (
char *)
setv(arg1,arg2,arg3);
3642 lua_pushstring(
L,(
const char *)result); SWIG_arg++;
3657 char *arg3 = (
char *) 0 ;
3674 arg3 = (
char *)lua_tostring(
L, 3);
3675 result = (
char *)
setv(arg1,arg2,arg3);
3676 lua_pushstring(
L,(
const char *)result); SWIG_arg++;
3692 argc = lua_gettop(
L);
3854 " Possible C/C++ prototypes are:\n"
3855 " setv(Agraph_t *,char *,char *)\n"
3856 " setv(Agnode_t *,char *,char *)\n"
3857 " setv(Agedge_t *,char *,char *)\n"
3858 " setv(Agraph_t *,Agsym_t *,char *)\n"
3859 " setv(Agnode_t *,Agsym_t *,char *)\n"
3860 " setv(Agedge_t *,Agsym_t *,char *)\n");
3861 lua_error(
L);
return 0;
3869 char *arg2 = (
char *) 0 ;
3880 arg2 = (
char *)lua_tostring(
L, 2);
3881 result = (
char *)
getv(arg1,arg2);
3882 lua_pushstring(
L,(
const char *)result); SWIG_arg++;
3896 char *arg2 = (
char *) 0 ;
3907 arg2 = (
char *)lua_tostring(
L, 2);
3908 result = (
char *)
getv(arg1,arg2);
3909 lua_pushstring(
L,(
const char *)result); SWIG_arg++;
3923 char *arg2 = (
char *) 0 ;
3934 arg2 = (
char *)lua_tostring(
L, 2);
3935 result = (
char *)
getv(arg1,arg2);
3936 lua_pushstring(
L,(
const char *)result); SWIG_arg++;
3966 result = (
char *)
getv(arg1,arg2);
3967 lua_pushstring(
L,(
const char *)result); SWIG_arg++;
3997 result = (
char *)
getv(arg1,arg2);
3998 lua_pushstring(
L,(
const char *)result); SWIG_arg++;
4028 result = (
char *)
getv(arg1,arg2);
4029 lua_pushstring(
L,(
const char *)result); SWIG_arg++;
4045 argc = lua_gettop(
L);
4177 " Possible C/C++ prototypes are:\n"
4178 " getv(Agraph_t *,char *)\n"
4179 " getv(Agnode_t *,char *)\n"
4180 " getv(Agedge_t *,char *)\n"
4181 " getv(Agraph_t *,Agsym_t *)\n"
4182 " getv(Agnode_t *,Agsym_t *)\n"
4183 " getv(Agedge_t *,Agsym_t *)\n");
4184 lua_error(
L);
return 0;
4201 result = (
char *)
nameof(arg1);
4202 lua_pushstring(
L,(
const char *)result); SWIG_arg++;
4225 result = (
char *)
nameof(arg1);
4226 lua_pushstring(
L,(
const char *)result); SWIG_arg++;
4249 result = (
char *)
nameof(arg1);
4250 lua_pushstring(
L,(
const char *)result); SWIG_arg++;
4266 argc = lua_gettop(
L);
4311 " Possible C/C++ prototypes are:\n"
4312 " nameof(Agraph_t *)\n"
4313 " nameof(Agnode_t *)\n"
4314 " nameof(Agsym_t *)\n");
4315 lua_error(
L);
return 0;
4323 char *arg2 = (
char *) 0 ;
4334 arg2 = (
char *)lua_tostring(
L, 2);
4350 char *arg2 = (
char *) 0 ;
4361 arg2 = (
char *)lua_tostring(
L, 2);
4408 char *arg2 = (
char *) 0 ;
4419 arg2 = (
char *)lua_tostring(
L, 2);
4435 char *arg2 = (
char *) 0 ;
4446 arg2 = (
char *)lua_tostring(
L, 2);
4462 char *arg2 = (
char *) 0 ;
4473 arg2 = (
char *)lua_tostring(
L, 2);
4491 argc = lua_gettop(
L);
4551 " Possible C/C++ prototypes are:\n"
4552 " findattr(Agraph_t *,char *)\n"
4553 " findattr(Agnode_t *,char *)\n"
4554 " findattr(Agedge_t *,char *)\n");
4555 lua_error(
L);
return 0;
4685 argc = lua_gettop(
L);
4730 " Possible C/C++ prototypes are:\n"
4731 " graphof(Agraph_t *)\n"
4732 " graphof(Agedge_t *)\n"
4733 " graphof(Agnode_t *)\n");
4734 lua_error(
L);
return 0;
4823 result = (bool)
ok(arg1);
4824 lua_pushboolean(
L,(
int)(result!=0)); SWIG_arg++;
4847 result = (bool)
ok(arg1);
4848 lua_pushboolean(
L,(
int)(result!=0)); SWIG_arg++;
4871 result = (bool)
ok(arg1);
4872 lua_pushboolean(
L,(
int)(result!=0)); SWIG_arg++;
4895 result = (bool)
ok(arg1);
4896 lua_pushboolean(
L,(
int)(result!=0)); SWIG_arg++;
4912 argc = lua_gettop(
L);
4971 " Possible C/C++ prototypes are:\n"
4975 " ok(Agsym_t *)\n");
4976 lua_error(
L);
return 0;
5230 argc = lua_gettop(
L);
5261 " Possible C/C++ prototypes are:\n"
5262 " firstedge(Agraph_t *)\n"
5263 " firstedge(Agnode_t *)\n");
5264 lua_error(
L);
return 0;
5305 argc = lua_gettop(
L);
5356 " Possible C/C++ prototypes are:\n"
5357 " nextedge(Agraph_t *,Agedge_t *)\n"
5358 " nextedge(Agnode_t *,Agedge_t *)\n");
5359 lua_error(
L);
return 0;
5393 argc = lua_gettop(
L);
5424 " Possible C/C++ prototypes are:\n"
5425 " firstout(Agraph_t *)\n"
5426 " firstout(Agnode_t *)\n");
5427 lua_error(
L);
return 0;
5468 argc = lua_gettop(
L);
5519 " Possible C/C++ prototypes are:\n"
5520 " nextout(Agraph_t *,Agedge_t *)\n"
5521 " nextout(Agnode_t *,Agedge_t *)\n");
5522 lua_error(
L);
return 0;
5666 argc = lua_gettop(
L);
5697 " Possible C/C++ prototypes are:\n"
5698 " firstin(Agraph_t *)\n"
5699 " firstin(Agnode_t *)\n");
5700 lua_error(
L);
return 0;
5741 argc = lua_gettop(
L);
5792 " Possible C/C++ prototypes are:\n"
5793 " nextin(Agnode_t *,Agedge_t *)\n"
5794 " nextin(Agraph_t *,Agedge_t *)\n");
5795 lua_error(
L);
return 0;
5939 argc = lua_gettop(
L);
5970 " Possible C/C++ prototypes are:\n"
5971 " firstnode(Agraph_t *)\n"
5972 " firstnode(Agedge_t *)\n");
5973 lua_error(
L);
return 0;
6014 argc = lua_gettop(
L);
6065 " Possible C/C++ prototypes are:\n"
6066 " nextnode(Agraph_t *,Agnode_t *)\n"
6067 " nextnode(Agedge_t *,Agnode_t *)\n");
6068 lua_error(
L);
return 0;
6212 argc = lua_gettop(
L);
6257 " Possible C/C++ prototypes are:\n"
6258 " firstattr(Agraph_t *)\n"
6259 " firstattr(Agedge_t *)\n"
6260 " firstattr(Agnode_t *)\n");
6261 lua_error(
L);
return 0;
6302 argc = lua_gettop(
L);
6377 " Possible C/C++ prototypes are:\n"
6378 " nextattr(Agraph_t *,Agsym_t *)\n"
6379 " nextattr(Agedge_t *,Agsym_t *)\n"
6380 " nextattr(Agnode_t *,Agsym_t *)\n");
6381 lua_error(
L);
return 0;
6398 result = (bool)
rm(arg1);
6399 lua_pushboolean(
L,(
int)(result!=0)); SWIG_arg++;
6422 result = (bool)
rm(arg1);
6423 lua_pushboolean(
L,(
int)(result!=0)); SWIG_arg++;
6446 result = (bool)
rm(arg1);
6447 lua_pushboolean(
L,(
int)(result!=0)); SWIG_arg++;
6463 argc = lua_gettop(
L);
6508 " Possible C/C++ prototypes are:\n"
6511 " rm(Agedge_t *)\n");
6512 lua_error(
L);
return 0;
6520 char *arg2 = (
char *) 0 ;
6531 arg2 = (
char *)lua_tostring(
L, 2);
6532 result = (bool)
layout(arg1,(
char const *)arg2);
6533 lua_pushboolean(
L,(
int)(result!=0)); SWIG_arg++;
6556 result = (bool)
render(arg1);
6557 lua_pushboolean(
L,(
int)(result!=0)); SWIG_arg++;
6571 char *arg2 = (
char *) 0 ;
6582 arg2 = (
char *)lua_tostring(
L, 2);
6583 result = (bool)
render(arg1,(
char const *)arg2);
6584 lua_pushboolean(
L,(
int)(result!=0)); SWIG_arg++;
6598 char *arg2 = (
char *) 0 ;
6599 FILE *arg3 = (FILE *) 0 ;
6611 arg2 = (
char *)lua_tostring(
L, 2);
6617 result = (bool)
render(arg1,(
char const *)arg2,arg3);
6618 lua_pushboolean(
L,(
int)(result!=0)); SWIG_arg++;
6632 char *arg2 = (
char *) 0 ;
6633 char *arg3 = (
char *) 0 ;
6645 arg2 = (
char *)lua_tostring(
L, 2);
6646 arg3 = (
char *)lua_tostring(
L, 3);
6647 result = (bool)
render(arg1,(
char const *)arg2,(
char const *)arg3);
6648 lua_pushboolean(
L,(
int)(result!=0)); SWIG_arg++;
6664 argc = lua_gettop(
L);
6753 " Possible C/C++ prototypes are:\n"
6754 " render(Agraph_t *)\n"
6755 " render(Agraph_t *,char const *)\n"
6756 " render(Agraph_t *,char const *,FILE *)\n"
6757 " render(Agraph_t *,char const *,char const *)\n");
6758 lua_error(
L);
return 0;
6766 char *arg2 = (
char *) 0 ;
6767 char *arg3 = (
char *) 0 ;
6778 arg2 = (
char *)lua_tostring(
L, 2);
6779 arg3 = (
char *)lua_tostring(
L, 3);
6795 char *arg2 = (
char *) 0 ;
6796 char *arg3 = (
char *) 0 ;
6808 arg2 = (
char *)lua_tostring(
L, 2);
6809 arg3 = (
char *)lua_tostring(
L, 3);
6810 result = (bool)
renderchannel(arg1,(
char const *)arg2,(
char const *)arg3);
6811 lua_pushboolean(
L,(
int)(result!=0)); SWIG_arg++;
6825 char *arg2 = (
char *) 0 ;
6836 arg2 = (
char *)lua_tostring(
L, 2);
6837 result = (
char *)
renderdata(arg1,(
char const *)arg2);
6838 lua_pushstring(
L,(
const char *)result); SWIG_arg++;
6852 char *arg2 = (
char *) 0 ;
6863 arg2 = (
char *)lua_tostring(
L, 2);
6864 result = (bool)
write(arg1,(
char const *)arg2);
6865 lua_pushboolean(
L,(
int)(result!=0)); SWIG_arg++;
6879 FILE *arg2 = (FILE *) 0 ;
6895 result = (bool)
write(arg1,arg2);
6896 lua_pushboolean(
L,(
int)(result!=0)); SWIG_arg++;
6912 argc = lua_gettop(
L);
6958 " Possible C/C++ prototypes are:\n"
6959 " write(Agraph_t *,char const *)\n"
6960 " write(Agraph_t *,FILE *)\n");
6961 lua_error(
L);
return 0;
6978 result = (bool)
tred(arg1);
6979 lua_pushboolean(
L,(
int)(result!=0)); SWIG_arg++;
7147#define SWIGRUNTIME_DEBUG
7150#ifndef SWIG_INIT_CLIENT_DATA_TYPE
7151#define SWIG_INIT_CLIENT_DATA_TYPE void *
7186 }
while (iter!= module_head);
7197 if (
init == 0)
return;
7200#ifdef SWIGRUNTIME_DEBUG
7201 printf(
"SWIG_InitializeModule: size %lu\n", (
unsigned long)
swig_module.
size);
7208#ifdef SWIGRUNTIME_DEBUG
7218#ifdef SWIGRUNTIME_DEBUG
7219 printf(
"SWIG_InitializeModule: found type %s\n",
type->name);
7223#ifdef SWIGRUNTIME_DEBUG
7224 printf(
"SWIG_InitializeModule: found and overwrite type %s \n",
type->name);
7233 while (cast->
type) {
7237#ifdef SWIGRUNTIME_DEBUG
7238 printf(
"SWIG_InitializeModule: look cast %s\n", cast->
type->
name);
7242#ifdef SWIGRUNTIME_DEBUG
7243 if (ret) printf(
"SWIG_InitializeModule: found cast %s\n", ret->
name);
7248#ifdef SWIGRUNTIME_DEBUG
7249 printf(
"SWIG_InitializeModule: skip old type %s\n", ret->
name);
7256#ifdef SWIGRUNTIME_DEBUG
7257 if (ocast) printf(
"SWIG_InitializeModule: skip old cast %s\n", ret->
name);
7259 if (!ocast) ret = 0;
7264#ifdef SWIGRUNTIME_DEBUG
7265 printf(
"SWIG_InitializeModule: adding cast %s\n", cast->
type->
name);
7268 type->cast->prev = cast;
7280#ifdef SWIGRUNTIME_DEBUG
7281 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
7286 while (cast->
type) {
7287 printf(
"SWIG_InitializeModule: cast type %s\n", cast->
type->
name);
7291 printf(
"---- Total casts: %d\n",j);
7293 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
7306 static int init_run = 0;
7308 if (init_run)
return;
7319 equiv = equiv->
next;
7344#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
7350#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
7352 int globalRegister = 0;
7360#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) || defined(SWIG_LUA_ELUA_EMULATE)
7366#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
7373#ifdef SWIG_LUA_MODULE_GLOBAL
7378#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
7382#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
7390#if defined(SWIG_LUA_ELUA_EMULATE)
7393 SWIG_Lua_elua_emulate_register_clear(
L);
7394 if(globalRegister) {
7396 lua_pushvalue(
L,-2);
7403#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
int compare(Agobj_t *l, Agobj_t *r)
static void init(int argc, char *argv[], double *angle, double *accuracy, int *check_edges_with_same_endpoint, int *seed, const char **color_scheme, int *lightness)
static double len(glCompPoint p)
SWIGRUNTIME int SWIG_Lua_class_equal(lua_State *L)
SWIGRUNTIME void SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata)
static swig_type_info _swigt__p_Agsym_t
static swig_cast_info _swigc__p_Agraph_t[]
SWIGRUNTIME void * SWIG_Lua_MustGetPtr(lua_State *L, int index, swig_type_info *type, int flags, int argnum, const char *func_name)
static int _wrap_firstedge__SWIG_1(lua_State *L)
#define SWIG_DOSTRING_FAIL(S)
static swig_cast_info * swig_cast_initial[]
static int _wrap_nextedge(lua_State *L)
static int _wrap_findattr__SWIG_2(lua_State *L)
static int _wrap_getv__SWIG_0(lua_State *L)
static int _wrap_nextout(lua_State *L)
Agraph_t * firstsubg(Agraph_t *g)
static int _wrap_firstattr__SWIG_1(lua_State *L)
static int _wrap_strictgraph(lua_State *L)
SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State *L, int index, void **ptr, swig_type_info *type, int flags)
Agraph_t * read(const char *filename)
static int _wrap_renderchannel(lua_State *L)
const LUA_REG_TYPE swig_lua_const_info
static int _wrap_read__SWIG_1(lua_State *L)
Agraph_t * nextsubg(Agraph_t *g, Agraph_t *sg)
Agraph_t * readstring(char *string)
SWIGRUNTIME void SWIG_Lua_SetModule(lua_State *L, swig_module_info *module)
static int _wrap_rm__SWIG_1(lua_State *L)
SWIGINTERN int SWIG_Lua_do_resolve_metamethod(lua_State *L, const swig_lua_class *clss, int metamethod_name_idx, int skip_check)
char * getv(Agraph_t *g, char *attr)
static int _wrap_graphof__SWIG_1(lua_State *L)
static int _wrap_firstattr__SWIG_0(lua_State *L)
SWIGRUNTIME void SWIG_Lua_pusherrstring(lua_State *L, const char *str)
Agraph_t * findsubg(Agraph_t *g, char *name)
static int _wrap_firsttail(lua_State *L)
SWIGINTERN int SWIG_Lua_class_do_get(lua_State *L, swig_type_info *type, int SWIGUNUSED first_arg, int *ret)
static int _wrap_firstin__SWIG_0(lua_State *L)
SWIGRUNTIME int SWIG_Lua_resolve_metamethod(lua_State *L)
static int _wrap_nameof(lua_State *L)
void renderresult(Agraph_t *g, const char *format, char *outdata)
SWIGINTERN void SWIG_Lua_add_namespace_classes(lua_State *L, swig_lua_namespace *ns)
#define SWIG_CheckState(r)
#define SWIG_fail_ptr(func_name, argnum, type)
#define SWIG_NewMemberObj(L, ptr, sz, type)
SWIGINTERN void SWIG_Lua_add_class_user_metamethods(lua_State *L, swig_lua_class *clss)
static swig_cast_info _swigc__p_FILE[]
SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb)
SWIGINTERN void SWIG_Lua_class_register_static(lua_State *L, swig_lua_class *clss)
SWIGRUNTIME const char * SWIG_Lua_typename(lua_State *L, int tp)
static int _wrap_findedge(lua_State *L)
static int _wrap_renderresult(lua_State *L)
#define SWIGTYPE_p_Agnode_t
static int _wrap_ok__SWIG_0(lua_State *L)
struct swig_cast_info swig_cast_info
static int _wrap_strictdigraph(lua_State *L)
SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2)
Agraph_t * strictgraph(char *name)
static int _wrap_setv__SWIG_4(lua_State *L)
SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State *L, int index, void *ptr, size_t size, swig_type_info *type)
char * setv(Agraph_t *g, char *attr, char *val)
Agedge_t * nextout(Agraph_t *g, Agedge_t *e)
SWIGINTERN int SWIG_Lua_iterate_bases(lua_State *L, swig_type_info *SWIGUNUSED swig_type, int first_arg, swig_lua_base_iterator_func func, int *const ret)
static int _wrap_nextedge__SWIG_1(lua_State *L)
static int _wrap_firstsupg(lua_State *L)
static int _wrap_renderdata(lua_State *L)
static int _wrap_read__SWIG_0(lua_State *L)
SWIGINTERN void SWIG_Lua_elua_class_register_instance(lua_State *L, swig_lua_class *clss)
static int _wrap_render__SWIG_1(lua_State *L)
static int _wrap_tailof(lua_State *L)
#define SWIG_ConvertPtr(L, idx, ptr, type, flags)
static int _wrap_getv(lua_State *L)
SWIGINTERN int SWIG_Lua_dostring(lua_State *L, const char *str)
static int _wrap_nextin(lua_State *L)
static int _wrap_nextnode(lua_State *L)
Agraph_t * rootof(Agraph_t *g)
static swig_cast_info _swigc__p_Agnode_t[]
static const char *() lua_tolstring(lua_State *L, int idx, size_t *len)
static int _wrap_graph__SWIG_1(lua_State *L)
#define SWIG_fail_arg(func_name, argnum, type)
Agnode_t * headof(Agedge_t *e)
#define SWIGTYPE_p_Agraph_t
#define SWIG_Lua_get_table(L, n)
Agnode_t * firsttail(Agnode_t *n)
#define SWIG_RUNTIME_VERSION
#define SWIGTYPE_p_Agsym_t
Agraph_t * strictdigraph(char *name)
SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata)
static int _wrap_firstedge(lua_State *L)
SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
bool renderchannel(Agraph_t *g, const char *format, const char *channelname)
SWIGINTERN int SWIG_Lua_class_do_get_item(lua_State *L, swig_type_info *type, int SWIGUNUSED first_arg, int *ret)
#define SWIG_Lua_add_function(L, n, f)
Agraph_t * nextsupg(Agraph_t *g, Agraph_t *sg)
SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz)
static int _wrap_write(lua_State *L)
static int _wrap_findsubg(lua_State *L)
static int _wrap_node(lua_State *L)
static int _wrap_graph__SWIG_0(lua_State *L)
SWIGINTERN int SWIG_Lua_add_class_user_metamethod(lua_State *L, swig_lua_class *clss, const int metatable_index)
static int _wrap_nextnode__SWIG_1(lua_State *L)
static int _wrap_firstout__SWIG_0(lua_State *L)
static int _wrap_findattr__SWIG_0(lua_State *L)
SWIGINTERN void SWIG_Lua_populate_inheritable_metamethods(lua_State *L)
Agedge_t * firstedge(Agraph_t *g)
Agraph_t * graphof(Agraph_t *g)
SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name)
static swig_module_info swig_module
static int _wrap_firstattr__SWIG_2(lua_State *L)
static int _wrap_getv__SWIG_1(lua_State *L)
static int _wrap_firstin(lua_State *L)
static int _wrap_firsthead(lua_State *L)
char * nameof(Agraph_t *g)
static int _wrap_nextin__SWIG_1(lua_State *L)
#define SWIG_SetModule(clientdata, pointer)
const LUA_REG_TYPE swig_lua_method
Agnode_t * firstnode(Agraph_t *g)
#define SWIG_INIT_CLIENT_DATA_TYPE
static int _wrap_edge__SWIG_1(lua_State *L)
Agedge_t * firstout(Agraph_t *g)
#define SWIG_POINTER_RELEASE
static swig_lua_class * swig_SwigModule_classes[]
SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
SWIGRUNTIME swig_module_info * SWIG_Lua_GetModule(lua_State *L)
static int _wrap_getv__SWIG_3(lua_State *L)
#define lua_rawsetp(L, index, ptr)
SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata)
#define SWIG_POINTER_CLEAR
static int _wrap_setv(lua_State *L)
SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb)
SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz)
static int _wrap_write__SWIG_1(lua_State *L)
SWIGINTERN void SWIG_Lua_get_inheritable_metamethods(lua_State *L)
static int _wrap_ok__SWIG_3(lua_State *L)
static int _wrap_nameof__SWIG_2(lua_State *L)
static int _wrap_graphof__SWIG_2(lua_State *L)
static int _wrap_nextattr__SWIG_0(lua_State *L)
SWIGINTERN void SWIG_Lua_add_variable(lua_State *L, const char *name, lua_CFunction getFn, lua_CFunction setFn)
static swig_lua_namespace * swig_SwigModule_namespaces[]
#define SWIG_check_num_args(func_name, a, b)
static int _wrap_findattr__SWIG_1(lua_State *L)
SWIGINTERN int SWIG_Lua_namespace_get(lua_State *L)
SWIGINTERN int SWIG_Lua_class_get(lua_State *L)
SWIGRUNTIME int SWIG_Lua_type(lua_State *L)
SWIGINTERN void SWIG_Lua_namespace_register(lua_State *L, swig_lua_namespace *ns, int reg)
static int _wrap_render__SWIG_2(lua_State *L)
static int _wrap_nextsubg(lua_State *L)
SWIGINTERN void SWIG_Lua_get_class_registry(lua_State *L)
SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State *L, swig_lua_class *clss)
#define SWIG_NewPointerObj(L, ptr, type, owner)
static int _wrap_tred(lua_State *L)
SWIGINTERN void SWIG_Lua_AddMetatable(lua_State *L, swig_type_info *type)
bool layout(Agraph_t *g, const char *engine)
static int _wrap_getv__SWIG_5(lua_State *L)
static int _wrap_nextout__SWIG_0(lua_State *L)
static swig_type_info _swigt__p_Agraph_t
SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
static swig_lua_const_info swig_SwigModule_constants[]
SWIGINTERN void SWIG_Lua_class_register(lua_State *L, swig_lua_class *clss)
static int _wrap_setv__SWIG_1(lua_State *L)
SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State *L, void *ptr, swig_type_info *type, int own)
SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name)
SWIGINTERN int SWIG_Lua_set_immutable(lua_State *L)
Agsym_t * nextattr(Agraph_t *g, Agsym_t *a)
#define SWIG_POINTER_NO_NULL
static int _wrap_firstout__SWIG_1(lua_State *L)
static int _wrap_protonode(lua_State *L)
Agnode_t * tailof(Agedge_t *e)
bool write(Agraph_t *g, const char *filename)
static int _wrap_render__SWIG_3(lua_State *L)
char * renderdata(Agraph_t *g, const char *format)
#define lua_absindex(L, i)
static int _wrap_setv__SWIG_5(lua_State *L)
static int _wrap_firstattr(lua_State *L)
SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State *L, swig_lua_namespace *ns)
static int _wrap_headof(lua_State *L)
static int _wrap_firstedge__SWIG_0(lua_State *L)
static int _wrap_edge__SWIG_0(lua_State *L)
static int _wrap_nextattr(lua_State *L)
#define SWIG_NullReferenceError
static int _wrap_firstout(lua_State *L)
SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty)
static int _wrap_nexthead(lua_State *L)
#define SWIG_POINTER_DISOWN
SWIGINTERN int SWIG_Lua_namespace_set(lua_State *L)
struct swig_type_info swig_type_info
SWIGINTERN int SWIG_Lua_class_disown(lua_State *L)
SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz)
Agnode_t * protonode(Agraph_t *g)
static int _wrap_nameof__SWIG_1(lua_State *L)
SWIGINTERN void SWIG_Lua_class_register_instance(lua_State *L, swig_lua_class *clss)
static swig_cast_info _swigc__p_Agedge_t[]
SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz)
Agnode_t * findnode(Agraph_t *g, char *name)
static int _wrap_layout(lua_State *L)
static int _wrap_firstin__SWIG_1(lua_State *L)
#define SWIGTYPE_p_Agedge_t
static int _wrap_rm__SWIG_2(lua_State *L)
Agnode_t * nexttail(Agnode_t *n, Agnode_t *t)
static int _wrap_firstnode__SWIG_0(lua_State *L)
SWIGINTERN int SWIG_Lua_class_do_set(lua_State *L, swig_type_info *type, int first_arg, int *ret)
Agraph_t * firstsupg(Agraph_t *g)
static int _wrap_nextattr__SWIG_2(lua_State *L)
static int _wrap_edge(lua_State *L)
SWIGINTERN int SWIG_Lua_class_set(lua_State *L)
SWIGINTERN int SWIG_lua_isnilstring(lua_State *L, int idx)
static int _wrap_firstnode(lua_State *L)
#define SWIG_GetModule(clientdata)
SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State *L, void *ptr, size_t size, swig_type_info *type)
static int _wrap_nextin__SWIG_0(lua_State *L)
Agsym_t * findattr(Agraph_t *g, char *name)
SWIGINTERN int SWIG_Lua_class_destruct(lua_State *L)
static swig_lua_method swig_SwigModule_methods[]
SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty)
static int _wrap_getv__SWIG_4(lua_State *L)
SWIGRUNTIME void SWIG_PropagateClientData(void)
static int _wrap_ok(lua_State *L)
static int _wrap_graphof(lua_State *L)
static int _wrap_getv__SWIG_2(lua_State *L)
Agraph_t * digraph(char *name)
#define lua_pushglobaltable(L)
static int _wrap_render__SWIG_0(lua_State *L)
static int _wrap_firstsubg(lua_State *L)
static int _wrap_rootof(lua_State *L)
SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type)
static int _wrap_setv__SWIG_3(lua_State *L)
Agedge_t * firstin(Agraph_t *g)
SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty)
#define SWIG_isptrtype(L, I)
#define SWIG_ERROR_RELEASE_NOT_OWNED
Agnode_t * nextnode(Agraph_t *g, Agnode_t *n)
#define SWIG_TYPE_TABLE_NAME
SWIGINTERN void SWIG_Lua_init_base_class(lua_State *L, swig_lua_class *clss)
static swig_type_info _swigt__p_FILE
Agedge_t * nextin(Agnode_t *n, Agedge_t *e)
Agraph_t * graph(char *name)
static int _wrap_firstnode__SWIG_1(lua_State *L)
static int _wrap_render(lua_State *L)
static int _wrap_findattr(lua_State *L)
static int _wrap_protoedge(lua_State *L)
int(* swig_lua_base_iterator_func)(lua_State *, swig_type_info *, int, int *ret)
struct swig_module_info swig_module_info
static int _wrap_rm(lua_State *L)
SWIGINTERN void SWIG_Lua_create_class_registry(lua_State *L)
static swig_lua_namespace swig_SwigModule
static int _wrap_findnode(lua_State *L)
Agsym_t * firstattr(Agraph_t *g)
static int _wrap_nexttail(lua_State *L)
static int _wrap_write__SWIG_0(lua_State *L)
static int _wrap_edge__SWIG_2(lua_State *L)
static int _wrap_graph(lua_State *L)
SWIGRUNTIME void SWIG_Lua_pushferrstring(lua_State *L, const char *fmt,...)
static int _wrap_readstring(lua_State *L)
static int _wrap_nextedge__SWIG_0(lua_State *L)
static swig_type_info * swig_type_initial[]
static int _wrap_ok__SWIG_2(lua_State *L)
static int _wrap_ok__SWIG_1(lua_State *L)
static int _wrap_graphof__SWIG_0(lua_State *L)
static int _wrap_edge__SWIG_3(lua_State *L)
static swig_lua_attribute swig_SwigModule_attributes[]
static swig_cast_info _swigc__p_Agsym_t[]
static int _wrap_read(lua_State *L)
Agedge_t * nextedge(Agraph_t *g, Agedge_t *e)
static int _wrap_nextnode__SWIG_0(lua_State *L)
Agedge_t * findedge(Agnode_t *t, Agnode_t *h)
static int _wrap_setv__SWIG_0(lua_State *L)
static int _wrap_nextsupg(lua_State *L)
SWIGINTERN int SWIG_Lua_class_tostring(lua_State *L)
static int _wrap_nameof__SWIG_0(lua_State *L)
Agnode_t * firsthead(Agnode_t *n)
static swig_type_info _swigt__p_Agnode_t
static int _wrap_rm__SWIG_0(lua_State *L)
static swig_type_info _swigt__p_Agedge_t
SWIGINTERN void SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[])
static swig_type_info * swig_types[6]
SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State *L, const char *cname)
static int _wrap_setv__SWIG_2(lua_State *L)
Agnode_t * nexthead(Agnode_t *n, Agnode_t *h)
SWIGINTERN void SWIG_Lua_add_class_instance_details(lua_State *L, swig_lua_class *clss)
static int _wrap_digraph(lua_State *L)
#define SWIG_Lua_add_boolean(L, n, b)
Agedge_t * protoedge(Agraph_t *g)
static int _wrap_nextattr__SWIG_1(lua_State *L)
#define lua_rawgetp(L, index, ptr)
static int _wrap_nextout__SWIG_1(lua_State *L)
#define SWIGRUNTIMEINLINE
SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory)
Graphviz context library.
GVIO_API const char * format
static gvloadimage_engine_t engine
textitem scanner parser str
static Agedge_t * top(edge_stack_t *sp)
static int table[NTYPES][NTYPES]
void *(* swig_converter_func)(void *, int *)
struct swig_type_info *(* swig_dycast_func)(void **)
struct swig_cast_info * prev
struct swig_cast_info * next
swig_converter_func converter
void(* destructor)(void *)
swig_lua_attribute * attributes
swig_lua_namespace * cls_static
struct swig_lua_class ** bases
swig_lua_method * metatable
lua_CFunction constructor
swig_lua_method * methods
swig_lua_method * ns_methods
swig_lua_attribute * ns_attributes
struct swig_lua_class ** ns_classes
swig_lua_const_info * ns_constants
struct swig_lua_namespace ** ns_namespaces
swig_cast_info ** cast_initial
swig_type_info ** type_initial
struct swig_module_info * next
struct swig_cast_info * cast