724
723
#include <assert.h> /* for a few sanity tests */
726
725
/* -----------------------------------------------------------------------------
727
* ----------------------------------------------------------------------------- */
729
#define SWIG_LUA_FLAVOR_LUA 1
730
#define SWIG_LUA_FLAVOR_ELUA 2
731
#define SWIG_LUA_FLAVOR_ELUAC 3
733
#if !defined(SWIG_LUA_TARGET)
734
# error SWIG_LUA_TARGET not defined
737
#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
738
# define SWIG_LUA_CONSTTAB_INT(B, C) LSTRKEY(B), LNUMVAL(C)
739
# define SWIG_LUA_CONSTTAB_FLOAT(B, C) LSTRKEY(B), LNUMVAL(C)
740
# define SWIG_LUA_CONSTTAB_STRING(B, C) LSTRKEY(B), LSTRVAL(C)
741
# define SWIG_LUA_CONSTTAB_CHAR(B, C) LSTRKEY(B), LNUMVAL(C)
742
#else /* SWIG_LUA_FLAVOR_LUA */
743
# define SWIG_LUA_CONSTTAB_INT(B, C) SWIG_LUA_INT, (char *)B, (long)C, 0, 0, 0
744
# define SWIG_LUA_CONSTTAB_FLOAT(B, C) SWIG_LUA_FLOAT, (char *)B, 0, (double)C, 0, 0
745
# define SWIG_LUA_CONSTTAB_STRING(B, C) SWIG_LUA_STRING, (char *)B, 0, 0, (void *)C, 0
746
# define SWIG_LUA_CONSTTAB_CHAR(B, C) SWIG_LUA_CHAR, (char *)B, (long)C, 0, 0, 0
749
#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
750
# define LRO_STRVAL(v) {{.p = (char *) v}, LUA_TSTRING}
751
# define LSTRVAL LRO_STRVAL
754
/* -----------------------------------------------------------------------------
755
* compatibility defines
756
* ----------------------------------------------------------------------------- */
758
/* History of Lua C API length functions: In Lua 5.0 (and before?)
759
there was "lua_strlen". In Lua 5.1, this was renamed "lua_objlen",
760
but a compatibility define of "lua_strlen" was added. In Lua 5.2,
761
this function was again renamed, to "lua_rawlen" (to emphasize that
762
it doesn't call the "__len" metamethod), and the compatibility
763
define of lua_strlen was removed. All SWIG uses have been updated
764
to "lua_rawlen", and we add our own defines of that here for older
766
#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501
767
# define lua_rawlen lua_strlen
768
#elif LUA_VERSION_NUM == 501
769
# define lua_rawlen lua_objlen
773
/* lua_pushglobaltable is the recommended "future-proof" way to get
774
the global table for Lua 5.2 and later. Here we define
775
lua_pushglobaltable ourselves for Lua versions before 5.2. */
776
#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502
777
# define lua_pushglobaltable(L) lua_pushvalue(L, LUA_GLOBALSINDEX)
781
/* -----------------------------------------------------------------------------
727
782
* global swig types
728
783
* ----------------------------------------------------------------------------- */
729
784
/* Constant table */
889
944
lua_tostring(L,2));
891
946
/* get the metatable */
892
assert(lua_istable(L,1)); /* just in case */
947
#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
948
assert(lua_isrotable(L,1)); /* just in case */
950
assert(lua_istable(L,1)); /* default Lua action */
893
952
lua_getmetatable(L,1); /* get the metatable */
894
assert(lua_istable(L,-1)); /* just in case */
953
#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
954
assert(lua_isrotable(L,-1)); /* just in case */
956
assert(lua_istable(L,-1));
895
958
SWIG_Lua_get_table(L,".get"); /* get the .get table */
896
959
lua_remove(L,3); /* remove metatable */
960
#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
961
if (lua_isrotable(L,-1))
897
963
if (lua_istable(L,-1))
899
966
/* look for the key in the .get table */
900
967
lua_pushvalue(L,2); /* key */
921
988
(3) any for the new value
923
990
/* get the metatable */
924
assert(lua_istable(L,1)); /* just in case */
991
#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
992
assert(lua_isrotable(L,1)); /* just in case */
994
assert(lua_istable(L,1)); /* default Lua action */
925
996
lua_getmetatable(L,1); /* get the metatable */
926
assert(lua_istable(L,-1)); /* just in case */
997
#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
998
assert(lua_isrotable(L,-1)); /* just in case */
1000
assert(lua_istable(L,-1));
927
1002
SWIG_Lua_get_table(L,".set"); /* get the .set table */
928
1003
lua_remove(L,4); /* remove metatable */
1004
#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
1005
if (lua_isrotable(L,-1))
929
1007
if (lua_istable(L,-1))
931
1010
/* look for the key in the .set table */
932
1011
lua_pushvalue(L,2); /* key */
962
1047
lua_newtable(L); /* the .set table */
963
1048
lua_rawset(L,-3); /* add .set into metatable */
964
1049
lua_setmetatable(L,-2); /* sets meta table in module */
1050
#ifdef SWIG_LUA_MODULE_GLOBAL
1051
/* If requested, install the module directly into the global namespace. */
965
1052
lua_rawset(L,-3); /* add module into parent */
966
1053
SWIG_Lua_get_table(L,name); /* get the table back out */
1055
/* Do not install the module table as global name. The stack top has
1056
the module table with the name below. We pop the top and replace
1057
the name with it. */
969
1062
/* ending the register */
1217
/* the class.__tostring method called by the interpreter and print */
1218
SWIGINTERN int SWIG_Lua_class_tostring(lua_State* L)
1220
/* there should be 1 param passed in
1221
(1) userdata (not the metatable) */
1222
assert(lua_isuserdata(L,1)); /* just in case */
1223
unsigned long userData = (unsigned long)lua_touserdata(L,1); /* get the userdata address for later */
1224
lua_getmetatable(L,1); /* get the meta table */
1225
assert(lua_istable(L,-1)); /* just in case */
1227
lua_getfield(L, -1, ".type");
1228
const char* className = lua_tostring(L, -1);
1231
sprintf(output, "<%s userdata: %lX>", className, userData);
1233
lua_pushstring(L, (const char*)output);
1237
/* to manually disown some userdata */
1238
SWIGINTERN int SWIG_Lua_class_disown(lua_State* L)
1240
/* there should be 1 params passed in
1241
(1) userdata (not the meta table) */
1242
swig_lua_userdata* usr;
1243
assert(lua_isuserdata(L,-1)); /* just in case */
1244
usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */
1246
usr->own = 0; /* clear our ownership */
1123
1250
/* gets the swig class registry (or creates it) */
1124
1251
SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L)
1245
1372
/* add a table called ".fn" */
1246
1373
lua_pushstring(L,".fn");
1247
1374
lua_newtable(L);
1375
/* add manual disown method */
1376
SWIG_Lua_add_function(L,"__disown",SWIG_Lua_class_disown);
1248
1377
lua_rawset(L,-3);
1249
1378
/* add accessor fns for using the .get,.set&.fn */
1250
1379
SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get);
1251
1380
SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set);
1252
1381
SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct);
1382
/* add tostring method for better output */
1383
SWIG_Lua_add_function(L,"__tostring",SWIG_Lua_class_tostring);
1254
1385
lua_rawset(L,-3); /* metatable into registry */
1255
1386
lua_pop(L,1); /* tidy stack (remove registry) */
1517
1652
#define SWIG_LUACODE luaopen_redland_luacode
1520
1654
#ifdef __cplusplus /* generic alloc/dealloc fns*/
1521
1655
#define SWIG_ALLOC_ARRAY(TYPE,LEN) new TYPE[LEN]
1522
#define SWIG_FREE_ARRAY(PTR) delete[] PTR;
1656
#define SWIG_FREE_ARRAY(PTR) delete[] PTR
1524
1658
#define SWIG_ALLOC_ARRAY(TYPE,LEN) (TYPE *)malloc(LEN*sizeof(TYPE))
1525
#define SWIG_FREE_ARRAY(PTR) free(PTR);
1659
#define SWIG_FREE_ARRAY(PTR) free(PTR)
1527
1661
/* counting the size of arrays:*/
1528
1662
SWIGINTERN int SWIG_itable_size(lua_State* L, int index)
1739
1883
SWIG_check_num_args("librdf_new_digest",2,2)
1740
1884
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_digest",1,"librdf_world *");
1741
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_new_digest",2,"char *");
1885
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_digest",2,"char *");
1743
1887
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
1744
1888
SWIG_fail_ptr("librdf_new_digest",1,SWIGTYPE_p_librdf_world_s);
1812
1956
SWIG_check_num_args("librdf_digest_update",3,3)
1813
1957
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_digest_update",1,"librdf_digest *");
1814
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_digest_update",2,"char const *");
1958
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_digest_update",2,"char const *");
1815
1959
if(!lua_isnumber(L,3)) SWIG_fail_arg("librdf_digest_update",3,"size_t");
1817
1961
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_digest_s,0))){
1841
1985
SWIG_check_num_args("librdf_digest_update_string",2,2)
1842
1986
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_digest_update_string",1,"librdf_digest *");
1843
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_digest_update_string",2,"char const *");
1987
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_digest_update_string",2,"char const *");
1845
1989
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_digest_s,0))){
1846
1990
SWIG_fail_ptr("librdf_digest_update_string",1,SWIGTYPE_p_librdf_digest_s);
2054
static int _wrap_librdf_new_hash(lua_State* L) {
2056
librdf_world *arg1 = (librdf_world *) 0 ;
2057
char *arg2 = (char *) 0 ;
2058
librdf_hash *result = 0 ;
2060
SWIG_check_num_args("librdf_new_hash",2,2)
2061
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_hash",1,"librdf_world *");
2062
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_hash",2,"char const *");
2064
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
2065
SWIG_fail_ptr("librdf_new_hash",1,SWIGTYPE_p_librdf_world_s);
2068
arg2 = (char *)lua_tostring(L, 2);
2069
result = (librdf_hash *)librdf_new_hash(arg1,(char const *)arg2);
2070
SWIG_NewPointerObj(L,result,SWIGTYPE_p_librdf_hash_s,1); SWIG_arg++;
1910
2081
static int _wrap_librdf_new_hash_from_string(lua_State* L) {
1911
2082
int SWIG_arg = 0;
1912
2083
librdf_world *arg1 = (librdf_world *) 0 ;
1917
2088
SWIG_check_num_args("librdf_new_hash_from_string",3,3)
1918
2089
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_hash_from_string",1,"librdf_world *");
1919
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_new_hash_from_string",2,"char const *");
1920
if(!lua_isstring(L,3)) SWIG_fail_arg("librdf_new_hash_from_string",3,"char const *");
2090
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_hash_from_string",2,"char const *");
2091
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_hash_from_string",3,"char const *");
1922
2093
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
1923
2094
SWIG_fail_ptr("librdf_new_hash_from_string",1,SWIGTYPE_p_librdf_world_s);
1947
2118
SWIG_check_num_args("librdf_new_hash_from_array_of_strings",3,3)
1948
2119
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_hash_from_array_of_strings",1,"librdf_world *");
1949
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_new_hash_from_array_of_strings",2,"char const *");
2120
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_hash_from_array_of_strings",2,"char const *");
1950
2121
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_new_hash_from_array_of_strings",3,"char const **");
1952
2123
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
2346
2517
SWIG_check_num_args("librdf_new_uri",2,2)
2347
2518
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_uri",1,"librdf_world *");
2348
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_new_uri",2,"char *");
2519
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_uri",2,"char *");
2350
2521
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
2351
2522
SWIG_fail_ptr("librdf_new_uri",1,SWIGTYPE_p_librdf_world_s);
2397
2568
SWIG_check_num_args("librdf_new_uri_from_filename",2,2)
2398
2569
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_uri_from_filename",1,"librdf_world *");
2399
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_new_uri_from_filename",2,"char const *");
2570
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_uri_from_filename",2,"char const *");
2401
2572
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
2402
2573
SWIG_fail_ptr("librdf_new_uri_from_filename",1,SWIGTYPE_p_librdf_world_s);
2558
2729
SWIG_check_num_args("librdf_new_node_from_uri_string",2,2)
2559
2730
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_uri_string",1,"librdf_world *");
2560
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_new_node_from_uri_string",2,"char const *");
2731
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_node_from_uri_string",2,"char const *");
2562
2733
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
2563
2734
SWIG_fail_ptr("librdf_new_node_from_uri_string",1,SWIGTYPE_p_librdf_world_s);
2617
2788
SWIG_check_num_args("librdf_new_node_from_uri_local_name",3,3)
2618
2789
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_uri_local_name",1,"librdf_world *");
2619
2790
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_new_node_from_uri_local_name",2,"librdf_uri *");
2620
if(!lua_isstring(L,3)) SWIG_fail_arg("librdf_new_node_from_uri_local_name",3,"char const *");
2791
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_node_from_uri_local_name",3,"char const *");
2622
2793
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
2623
2794
SWIG_fail_ptr("librdf_new_node_from_uri_local_name",1,SWIGTYPE_p_librdf_world_s);
2652
2823
SWIG_check_num_args("librdf_new_node_from_normalised_uri_string",4,4)
2653
2824
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_normalised_uri_string",1,"librdf_world *");
2654
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_new_node_from_normalised_uri_string",2,"char const *");
2825
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_node_from_normalised_uri_string",2,"char const *");
2655
2826
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_new_node_from_normalised_uri_string",3,"librdf_uri *");
2656
2827
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_new_node_from_normalised_uri_string",4,"librdf_uri *");
2693
2864
SWIG_check_num_args("librdf_new_node_from_literal",2,4)
2694
2865
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_literal",1,"librdf_world *");
2695
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_new_node_from_literal",2,"char const *");
2696
if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("librdf_new_node_from_literal",3,"char const *");
2866
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_node_from_literal",2,"char const *");
2867
if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_node_from_literal",3,"char const *");
2697
2868
if(lua_gettop(L)>=4 && !lua_isnumber(L,4)) SWIG_fail_arg("librdf_new_node_from_literal",4,"int");
2699
2870
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
2730
2901
SWIG_check_num_args("librdf_new_node_from_typed_literal",2,4)
2731
2902
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_typed_literal",1,"librdf_world *");
2732
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_new_node_from_typed_literal",2,"char const *");
2733
if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("librdf_new_node_from_typed_literal",3,"char const *");
2903
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_node_from_typed_literal",2,"char const *");
2904
if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_node_from_typed_literal",3,"char const *");
2734
2905
if(lua_gettop(L)>=4 && !SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_new_node_from_typed_literal",4,"librdf_uri *");
2736
2907
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
2791
2962
SWIG_check_num_args("librdf_new_node_from_blank_identifier",1,2)
2792
2963
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_node_from_blank_identifier",1,"librdf_world *");
2793
if(lua_gettop(L)>=2 && !lua_isstring(L,2)) SWIG_fail_arg("librdf_new_node_from_blank_identifier",2,"char const *");
2964
if(lua_gettop(L)>=2 && !SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_node_from_blank_identifier",2,"char const *");
2795
2966
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
2796
2967
SWIG_fail_ptr("librdf_new_node_from_blank_identifier",1,SWIGTYPE_p_librdf_world_s);
3577
3748
SWIG_check_num_args("librdf_new_model",3,3)
3578
3749
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_model",1,"librdf_world *");
3579
3750
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_new_model",2,"librdf_storage *");
3580
if(!lua_isstring(L,3)) SWIG_fail_arg("librdf_new_model",3,"char *");
3751
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_model",3,"char *");
3582
3753
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
3583
3754
SWIG_fail_ptr("librdf_new_model",1,SWIGTYPE_p_librdf_world_s);
3769
3940
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_add_string_literal_statement",1,"librdf_model *");
3770
3941
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_add_string_literal_statement",2,"librdf_node *");
3771
3942
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_add_string_literal_statement",3,"librdf_node *");
3772
if(!lua_isstring(L,4)) SWIG_fail_arg("librdf_model_add_string_literal_statement",4,"char const *");
3773
if(lua_gettop(L)>=5 && !lua_isstring(L,5)) SWIG_fail_arg("librdf_model_add_string_literal_statement",5,"char const *");
3943
if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_model_add_string_literal_statement",4,"char const *");
3944
if(lua_gettop(L)>=5 && !SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("librdf_model_add_string_literal_statement",5,"char const *");
3774
3945
if(lua_gettop(L)>=6 && !lua_isnumber(L,6)) SWIG_fail_arg("librdf_model_add_string_literal_statement",6,"int");
3776
3947
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){
3820
3991
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",1,"librdf_model *");
3821
3992
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",2,"librdf_node *");
3822
3993
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",3,"librdf_node *");
3823
if(!lua_isstring(L,4)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",4,"char *");
3824
if(!lua_isstring(L,5)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",5,"char *");
3994
if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",4,"char *");
3995
if(!SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",5,"char *");
3825
3996
if(lua_gettop(L)>=6 && !SWIG_isptrtype(L,6)) SWIG_fail_arg("librdf_model_add_typed_literal_statement",6,"librdf_uri *");
3827
3998
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){
4775
4946
SWIG_check_num_args("librdf_model_load",2,5)
4776
4947
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_load",1,"librdf_model *");
4777
4948
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_load",2,"librdf_uri *");
4778
if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("librdf_model_load",3,"char const *");
4779
if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("librdf_model_load",4,"char const *");
4949
if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_model_load",3,"char const *");
4950
if(lua_gettop(L)>=4 && !SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_model_load",4,"char const *");
4780
4951
if(lua_gettop(L)>=5 && !SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_model_load",5,"librdf_uri *");
4782
4953
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){
4854
5025
SWIG_check_num_args("librdf_model_to_string",2,5)
4855
5026
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_model_to_string",1,"librdf_model *");
4856
5027
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_model_to_string",2,"librdf_uri *");
4857
if(lua_gettop(L)>=3 && !lua_isstring(L,3)) SWIG_fail_arg("librdf_model_to_string",3,"char const *");
4858
if(lua_gettop(L)>=4 && !lua_isstring(L,4)) SWIG_fail_arg("librdf_model_to_string",4,"char const *");
5028
if(lua_gettop(L)>=3 && !SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_model_to_string",3,"char const *");
5029
if(lua_gettop(L)>=4 && !SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_model_to_string",4,"char const *");
4859
5030
if(lua_gettop(L)>=5 && !SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_model_to_string",5,"librdf_uri *");
4861
5032
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_model_s,0))){
4974
5145
SWIG_check_num_args("librdf_new_storage",4,4)
4975
5146
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_storage",1,"librdf_world *");
4976
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_new_storage",2,"char *");
4977
if(!lua_isstring(L,3)) SWIG_fail_arg("librdf_new_storage",3,"char *");
4978
if(!lua_isstring(L,4)) SWIG_fail_arg("librdf_new_storage",4,"char *");
5147
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_storage",2,"char *");
5148
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_storage",3,"char *");
5149
if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_new_storage",4,"char *");
4980
5151
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
4981
5152
SWIG_fail_ptr("librdf_new_storage",1,SWIGTYPE_p_librdf_world_s);
5052
5223
SWIG_check_num_args("librdf_parser_check_name",2,2)
5053
5224
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_check_name",1,"librdf_world *");
5054
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_parser_check_name",2,"char const *");
5225
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_check_name",2,"char const *");
5056
5227
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
5057
5228
SWIG_fail_ptr("librdf_parser_check_name",1,SWIGTYPE_p_librdf_world_s);
5081
5252
SWIG_check_num_args("librdf_new_parser",4,4)
5082
5253
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_parser",1,"librdf_world *");
5083
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_new_parser",2,"char const *");
5084
if(!lua_isstring(L,3)) SWIG_fail_arg("librdf_new_parser",3,"char const *");
5254
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_parser",2,"char const *");
5255
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_parser",3,"char const *");
5085
5256
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_new_parser",4,"librdf_uri *");
5087
5258
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
5223
5394
SWIG_check_num_args("librdf_parser_parse_string_as_stream",3,3)
5224
5395
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_parse_string_as_stream",1,"librdf_parser *");
5225
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_parser_parse_string_as_stream",2,"char const *");
5396
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_parse_string_as_stream",2,"char const *");
5226
5397
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_parser_parse_string_as_stream",3,"librdf_uri *");
5228
5399
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_parser_s,0))){
5258
5429
SWIG_check_num_args("librdf_parser_parse_string_into_model",4,4)
5259
5430
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_parse_string_into_model",1,"librdf_parser *");
5260
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_parser_parse_string_into_model",2,"char const *");
5431
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_parse_string_into_model",2,"char const *");
5261
5432
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_parser_parse_string_into_model",3,"librdf_uri *");
5262
5433
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_parser_parse_string_into_model",4,"librdf_model *");
5299
5470
SWIG_check_num_args("librdf_parser_parse_counted_string_as_stream",4,4)
5300
5471
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_parse_counted_string_as_stream",1,"librdf_parser *");
5301
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_parser_parse_counted_string_as_stream",2,"char const *");
5472
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_parse_counted_string_as_stream",2,"char const *");
5302
5473
if(!lua_isnumber(L,3)) SWIG_fail_arg("librdf_parser_parse_counted_string_as_stream",3,"size_t");
5303
5474
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_parser_parse_counted_string_as_stream",4,"librdf_uri *");
5338
5509
SWIG_check_num_args("librdf_parser_parse_counted_string_into_model",5,5)
5339
5510
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_parse_counted_string_into_model",1,"librdf_parser *");
5340
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_parser_parse_counted_string_into_model",2,"char const *");
5511
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_parse_counted_string_into_model",2,"char const *");
5341
5512
if(!lua_isnumber(L,3)) SWIG_fail_arg("librdf_parser_parse_counted_string_into_model",3,"size_t");
5342
5513
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_parser_parse_counted_string_into_model",4,"librdf_uri *");
5343
5514
if(!SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_parser_parse_counted_string_into_model",5,"librdf_model *");
5448
5619
char *result = 0 ;
5450
5621
SWIG_check_num_args("librdf_parser_guess_name",3,3)
5451
if(!lua_isstring(L,1)) SWIG_fail_arg("librdf_parser_guess_name",1,"char const *");
5452
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_parser_guess_name",2,"char const *");
5453
if(!lua_isstring(L,3)) SWIG_fail_arg("librdf_parser_guess_name",3,"char const *");
5622
if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("librdf_parser_guess_name",1,"char const *");
5623
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_guess_name",2,"char const *");
5624
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_parser_guess_name",3,"char const *");
5454
5625
arg1 = (char *)lua_tostring(L, 1);
5455
5626
arg2 = (char *)lua_tostring(L, 2);
5456
5627
arg3 = (char *)lua_tostring(L, 3);
5457
5628
result = (char *)librdf_parser_guess_name((char const *)arg1,(char const *)arg2,(char const *)arg3);
5458
lua_pushstring(L,(const char*)result); SWIG_arg++;
5629
lua_pushstring(L,(const char *)result); SWIG_arg++;
5459
5630
return SWIG_arg;
5461
5632
if(0) SWIG_fail;
5477
5648
SWIG_check_num_args("librdf_parser_guess_name2",4,4)
5478
5649
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_parser_guess_name2",1,"librdf_world *");
5479
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_parser_guess_name2",2,"char const *");
5480
if(!lua_isstring(L,3)) SWIG_fail_arg("librdf_parser_guess_name2",3,"char const *");
5481
if(!lua_isstring(L,4)) SWIG_fail_arg("librdf_parser_guess_name2",4,"char const *");
5650
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_parser_guess_name2",2,"char const *");
5651
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_parser_guess_name2",3,"char const *");
5652
if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_parser_guess_name2",4,"char const *");
5483
5654
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
5484
5655
SWIG_fail_ptr("librdf_parser_guess_name2",1,SWIGTYPE_p_librdf_world_s);
5589
5760
SWIG_check_num_args("librdf_new_query",5,5)
5590
5761
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_query",1,"librdf_world *");
5591
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_new_query",2,"char const *");
5762
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_query",2,"char const *");
5592
5763
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_new_query",3,"librdf_uri *");
5593
if(!lua_isstring(L,4)) SWIG_fail_arg("librdf_new_query",4,"char const *");
5764
if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("librdf_new_query",4,"char const *");
5594
5765
if(!SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_new_query",5,"librdf_uri *");
5596
5767
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
5960
6131
SWIG_check_num_args("librdf_query_results_get_binding_value_by_name",2,2)
5961
6132
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_get_binding_value_by_name",1,"librdf_query_results *");
5962
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_query_results_get_binding_value_by_name",2,"char const *");
6133
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_query_results_get_binding_value_by_name",2,"char const *");
5964
6135
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_query_results,0))){
5965
6136
SWIG_fail_ptr("librdf_query_results_get_binding_value_by_name",1,SWIGTYPE_p_librdf_query_results);
6013
6184
SWIG_check_num_args("librdf_query_results_to_file",4,4)
6014
6185
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_to_file",1,"librdf_query_results *");
6015
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_query_results_to_file",2,"char const *");
6186
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_query_results_to_file",2,"char const *");
6016
6187
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_query_results_to_file",3,"librdf_uri *");
6017
6188
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_query_results_to_file",4,"librdf_uri *");
6055
6226
SWIG_check_num_args("librdf_query_results_to_file2",5,5)
6056
6227
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_to_file2",1,"librdf_query_results *");
6057
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_query_results_to_file2",2,"char const *");
6058
if(!lua_isstring(L,3)) SWIG_fail_arg("librdf_query_results_to_file2",3,"char const *");
6228
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_query_results_to_file2",2,"char const *");
6229
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_query_results_to_file2",3,"char const *");
6059
6230
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_query_results_to_file2",4,"librdf_uri *");
6060
6231
if(!SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_query_results_to_file2",5,"librdf_uri *");
6138
6309
SWIG_check_num_args("librdf_query_results_to_string2",5,5)
6139
6310
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_query_results_to_string2",1,"librdf_query_results *");
6140
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_query_results_to_string2",2,"char const *");
6141
if(!lua_isstring(L,3)) SWIG_fail_arg("librdf_query_results_to_string2",3,"char const *");
6311
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_query_results_to_string2",2,"char const *");
6312
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_query_results_to_string2",3,"char const *");
6142
6313
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_query_results_to_string2",4,"librdf_uri *");
6143
6314
if(!SWIG_isptrtype(L,5)) SWIG_fail_arg("librdf_query_results_to_string2",5,"librdf_uri *");
6323
6494
SWIG_check_num_args("librdf_serializer_check_name",2,2)
6324
6495
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_check_name",1,"librdf_world *");
6325
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_serializer_check_name",2,"char const *");
6496
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_serializer_check_name",2,"char const *");
6327
6498
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
6328
6499
SWIG_fail_ptr("librdf_serializer_check_name",1,SWIGTYPE_p_librdf_world_s);
6352
6523
SWIG_check_num_args("librdf_new_serializer",4,4)
6353
6524
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_new_serializer",1,"librdf_world *");
6354
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_new_serializer",2,"char const *");
6355
if(!lua_isstring(L,3)) SWIG_fail_arg("librdf_new_serializer",3,"char const *");
6525
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_new_serializer",2,"char const *");
6526
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_new_serializer",3,"char const *");
6356
6527
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_new_serializer",4,"librdf_uri *");
6358
6529
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_world_s,0))){
6412
6583
SWIG_check_num_args("librdf_serializer_serialize_stream_to_file",4,4)
6413
6584
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_file",1,"librdf_serializer *");
6414
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_file",2,"char const *");
6585
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_file",2,"char const *");
6415
6586
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_file",3,"librdf_uri *");
6416
6587
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_serializer_serialize_stream_to_file",4,"librdf_stream *");
6453
6624
SWIG_check_num_args("librdf_serializer_serialize_model_to_file",4,4)
6454
6625
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_serialize_model_to_file",1,"librdf_serializer *");
6455
if(!lua_isstring(L,2)) SWIG_fail_arg("librdf_serializer_serialize_model_to_file",2,"char const *");
6626
if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("librdf_serializer_serialize_model_to_file",2,"char const *");
6456
6627
if(!SWIG_isptrtype(L,3)) SWIG_fail_arg("librdf_serializer_serialize_model_to_file",3,"librdf_uri *");
6457
6628
if(!SWIG_isptrtype(L,4)) SWIG_fail_arg("librdf_serializer_serialize_model_to_file",4,"librdf_model *");
6640
6811
SWIG_check_num_args("librdf_serializer_set_namespace",3,3)
6641
6812
if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("librdf_serializer_set_namespace",1,"librdf_serializer *");
6642
6813
if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("librdf_serializer_set_namespace",2,"librdf_uri *");
6643
if(!lua_isstring(L,3)) SWIG_fail_arg("librdf_serializer_set_namespace",3,"char const *");
6814
if(!SWIG_lua_isnilstring(L,3)) SWIG_fail_arg("librdf_serializer_set_namespace",3,"char const *");
6645
6816
if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_librdf_serializer_s,0))){
6646
6817
SWIG_fail_ptr("librdf_serializer_set_namespace",1,SWIGTYPE_p_librdf_serializer_s);
7370
7541
{ "librdf_digest_update_string", _wrap_librdf_digest_update_string},
7371
7542
{ "librdf_digest_final", _wrap_librdf_digest_final},
7372
7543
{ "librdf_digest_to_string", _wrap_librdf_digest_to_string},
7544
{ "librdf_new_hash", _wrap_librdf_new_hash},
7373
7545
{ "librdf_new_hash_from_string", _wrap_librdf_new_hash_from_string},
7374
7546
{ "librdf_new_hash_from_array_of_strings", _wrap_librdf_new_hash_from_array_of_strings},
7375
7547
{ "librdf_hash_to_string", _wrap_librdf_hash_to_string},
7905
8077
/* this is the initialization function
7906
8078
added at the very end of the code
7907
the function is always called SWIG_init, but an eariler #define will rename it
8079
the function is always called SWIG_init, but an earlier #define will rename it
7909
SWIGEXPORT int SWIG_init(lua_State* L)
8081
#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
8082
LUALIB_API int SWIG_init(lua_State* L)
8084
SWIGEXPORT int SWIG_init(lua_State* L) /* default Lua action */
8087
#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) /* valid for both Lua and eLua */
7912
8089
/* start with global table */
7913
lua_pushvalue(L,LUA_GLOBALSINDEX);
8090
lua_pushglobaltable (L);
7914
8091
/* SWIG's internal initalisation */
7915
8092
SWIG_InitializeModule((void*)L);
7916
8093
SWIG_PropagateClientData();
8096
#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC))
7917
8097
/* add a global fn */
7918
8098
SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type);
7919
8099
SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal);
7927
8107
for (i = 0; swig_variables[i].name; i++){
7928
8108
SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set);
7930
/* set up base class pointers (the hierachy) */
8112
#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
8113
/* set up base class pointers (the hierarchy) */
7931
8114
for (i = 0; swig_types[i]; i++){
7932
8115
if (swig_types[i]->clientdata){
7933
8116
SWIG_Lua_init_base_class(L,(swig_lua_class*)(swig_types[i]->clientdata));
7939
8122
SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata));
8127
#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC))
7942
8128
/* constants */
7943
8129
SWIG_Lua_InstallConstants(L,swig_constants);
8132
#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
7944
8133
/* invoke user-specific initialization */
7945
8134
SWIG_init_user(L);
7946
8135
/* end module */
7947
lua_pop(L,1); /* tidy stack (remove module table)*/
7948
lua_pop(L,1); /* tidy stack (remove global table)*/
8136
/* Note: We do not clean up the stack here (Lua will do this for us). At this
8137
point, we have the globals table and out module table on the stack. Returning
8138
one value makes the module table the result of the require command. */
7952
8145
#ifdef __cplusplus