10#define SWIG_VERSION 0x040500
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__))
50# elif defined(__ICC) || defined (__clang__)
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 defined(__cplusplus) && __cplusplus >= 201103L
140# define SWIG_NOEXCEPT noexcept
142# define SWIG_NOEXCEPT throw()
145#define SWIG_QUOTE_STRING(x) #x
146#define SWIG_STRINGIFY(x) SWIG_QUOTE_STRING(x)
161#if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \
162 (defined __cplusplus && __cplusplus >= 201103L) || \
163 defined SWIG_HAVE_SNPRINTF) && \
164 !defined SWIG_NO_SNPRINTF
165# define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A)
166# define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B)
172# define SWIG_snprintf(O,S,F,A) sprintf(O,F,A)
173# define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B)
185#define SWIG_RUNTIME_VERSION "5"
188#ifdef SWIG_TYPE_TABLE
189# define SWIG_TYPE_TABLE_NAME SWIG_STRINGIFY(SWIG_TYPE_TABLE)
191# define SWIG_TYPE_TABLE_NAME
204# define SWIGRUNTIME SWIGINTERN
207#ifndef SWIGRUNTIMEINLINE
208# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
212#ifndef SWIG_BUFFER_SIZE
213# define SWIG_BUFFER_SIZE 1024
217#define SWIG_POINTER_DISOWN 0x1
218#define SWIG_CAST_NEW_MEMORY 0x2
219#define SWIG_POINTER_NO_NULL 0x4
220#define SWIG_POINTER_CLEAR 0x8
221#define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
224#define SWIG_POINTER_OWN 0x1
308#define SWIG_ERROR (-1)
312#define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
314#define SWIG_IsOK(r) (r >= 0)
315#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
318#define SWIG_CASTRANKLIMIT (1 << 8)
320#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
322#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
324#define SWIG_BINARYSTRMASK (SWIG_TMPOBJMASK << 1)
326#define SWIG_BADOBJ (SWIG_ERROR)
327#define SWIG_OLDOBJ (SWIG_OK)
328#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
329#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
330#define SWIG_BINARYSTR (SWIG_OK | SWIG_BINARYSTRMASK)
332#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
333#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
334#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
335#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
336#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
337#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
338#define SWIG_AddBinaryStrMask(r) (SWIG_IsOK(r) ? (r | SWIG_BINARYSTRMASK) : r)
339#define SWIG_DelBinaryStrMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_BINARYSTRMASK) : r)
340#define SWIG_IsBinaryStr(r) (SWIG_IsOK(r) && (r & SWIG_BINARYSTRMASK))
343#if defined(SWIG_CASTRANK_MODE)
344# ifndef SWIG_TypeRank
345# define SWIG_TypeRank unsigned long
347# ifndef SWIG_MAXCASTRANK
348# define SWIG_MAXCASTRANK (2)
350# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
351# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
356 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
359# define SWIG_AddCast(r) (r)
360# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
370typedef void *(*swig_converter_func)(
void *,
int *);
412 const char *f2,
const char *l2) {
413 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
414 while ((*f1 ==
' ') && (f1 != l1)) ++f1;
415 while ((*f2 ==
' ') && (f2 != l2)) ++f2;
416 if (*f1 != *f2)
return (*f1 > *f2) ? 1 : -1;
418 return (
int)((l1 - f1) - (l2 - f2));
428 const char* te = tb + strlen(tb);
430 while (equiv != 0 && *ne) {
431 for (nb = ne; *ne; ++ne) {
432 if (*ne ==
'|')
break;
453 const unsigned char *data = (
const unsigned char *)str;
454 unsigned int hash = len, i = 0, k;
457 while (rem >= (
int)
sizeof(
unsigned int)) {
458 memcpy(&k, data,
sizeof(
unsigned int));
462 data +=
sizeof(
unsigned int);
463 rem -= (int)
sizeof(
unsigned int);
467 case 3: k = (
unsigned int)(data[2]) << 16;
468 k |= (
unsigned int)(data[1]) << 8;
469 k |= (
unsigned int)(data[0]);
474 case 2: k = (
unsigned int)(data[1]) << 8;
475 k |= (
unsigned int)(data[0]);
480 case 1: k = (
unsigned int)(data[0]);
494 static const unsigned int scan_threshold = 4;
497 unsigned int hash_value = 0;
502 if (strcmp(
head->type->name, c) == 0) {
513 if (
head->value < scan_threshold) {
514 for (iter = first; iter <= last; iter++) {
515 if (strcmp(iter->
type->
name, c) == 0) {
522 hash_value =
SWIG_Hash(c, (
unsigned int)strlen(c));
529 iter = first + ((last - first) >> 1);
530 if (iter->
value < hash_value) {
532 }
else if (iter->
value == hash_value) {
539 for (last = iter + 1; last->
next && last->
value == hash_value; last++) {
544 for (first = iter - 1; first !=
head && first->
value == hash_value; first--) {
552 }
while (first <= last);
569 if (
head->type == from) {
580 iter = first + ((last - first) >> 1);
581 if (iter->
type < from) {
583 }
else if (iter->
type == from) {
587 }
while (first <= last);
609 if (!ty || !ty->
dcast)
return ty;
610 while (ty && (ty->
dcast)) {
611 ty = (*ty->
dcast)(ptr);
635 if (!type)
return NULL;
636 if (type->str != NULL) {
637 const char *last_name = type->str;
639 for (s = type->str; *s; s++)
640 if (*s ==
'|') last_name = s+1;
658 for (cast =
head; (
unsigned int)(cast -
head) <=
head->value; cast++) {
692 size_t r = iter->
size - 1;
695 size_t i = (l + r) >> 1;
696 const char *iname = iter->
types[i]->
name;
698 int compare = strcmp(
name, iname);
700 return iter->
types[i];
701 }
else if (compare < 0) {
707 }
else if (compare > 0) {
716 }
while (iter != end);
743 for (; i < iter->
size; ++i) {
745 return iter->
types[i];
748 }
while (iter != end);
760 static const char hex[17] =
"0123456789abcdef";
761 const unsigned char *u = (
unsigned char *) ptr;
762 const unsigned char *eu = u + sz;
763 for (; u != eu; ++u) {
764 unsigned char uu = *u;
765 *(c++) = hex[(uu & 0xf0) >> 4];
766 *(c++) = hex[uu & 0xf];
776 unsigned char *u = (
unsigned char *) ptr;
777 const unsigned char *eu = u + sz;
778 for (; u != eu; ++u) {
781 if ((d >=
'0') && (d <=
'9'))
782 uu = (
unsigned char)((d -
'0') << 4);
783 else if ((d >=
'a') && (d <=
'f'))
784 uu = (
unsigned char)((d - (
'a'-10)) << 4);
788 if ((d >=
'0') && (d <=
'9'))
789 uu |= (
unsigned char)(d -
'0');
790 else if ((d >=
'a') && (d <=
'f'))
791 uu |= (
unsigned char)(d - (
'a'-10));
805 if ((2*
sizeof(
void *) + 2) > bsz)
return 0;
808 if (strlen(
name) + 1 > (bsz - (
size_t)(r - buff)))
return 0;
816 if (strcmp(c,
"NULL") == 0) {
829 size_t lname = (
name ? strlen(
name) : 0);
830 if ((2*sz + 2 + lname) > bsz)
return 0;
834 strncpy(r,
name,lname+1);
844 if (strcmp(c,
"NULL") == 0) {
859#define SWIG_UnknownError -1
860#define SWIG_IOError -2
861#define SWIG_RuntimeError -3
862#define SWIG_IndexError -4
863#define SWIG_TypeError -5
864#define SWIG_DivisionByZero -6
865#define SWIG_OverflowError -7
866#define SWIG_SyntaxError -8
867#define SWIG_ValueError -9
868#define SWIG_SystemError -10
869#define SWIG_AttributeError -11
870#define SWIG_MemoryError -12
871#define SWIG_NullReferenceError -13
895#define SWIG_LUA_FLAVOR_LUA 1
896#define SWIG_LUA_FLAVOR_ELUA 2
897#define SWIG_LUA_FLAVOR_ELUAC 3
899#if !defined(SWIG_LUA_TARGET)
900# error SWIG_LUA_TARGET not defined
903#if defined(SWIG_LUA_ELUA_EMULATE)
905struct swig_elua_entry;
907typedef struct swig_elua_key {
915typedef struct swig_elua_val {
919 const struct swig_elua_entry *table;
931typedef struct swig_elua_entry {
936#define LSTRKEY(x) {LUA_TSTRING, {.strkey = x} }
937#define LNUMKEY(x) {LUA_TNUMBER, {.numkey = x} }
938#define LNILKEY {LUA_TNIL, {.strkey = 0} }
940#define LNUMVAL(x) {LUA_TNUMBER, {.number = x} }
941#define LFUNCVAL(x) {LUA_TFUNCTION, {.function = x} }
942#define LROVAL(x) {LUA_TTABLE, {.table = x} }
943#define LNILVAL {LUA_TNIL, {.string = 0} }
944#define LSTRVAL(x) {LUA_TSTRING, {.string = x} }
946#define LUA_REG_TYPE swig_elua_entry
948#define SWIG_LUA_ELUA_EMUL_METATABLE_KEY "__metatable"
950#define lua_pushrotable(L,p)\
953 SWIG_Lua_elua_emulate_register(L,(swig_elua_entry*)(p));
955#define SWIG_LUA_CONSTTAB_POINTER(B,C,D)\
956 LSTRKEY(B), {LUA_TUSERDATA, { .userdata={0,0,(void*)(C),&D} } }
958#define SWIG_LUA_CONSTTAB_BINARY(B,S,C,D)\
959 LSTRKEY(B), {LUA_TUSERDATA, { .userdata={1,S,(void*)(C),&D} } }
962#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
963# define SWIG_LUA_CONSTTAB_INT(B, C) LSTRKEY(B), LNUMVAL(C)
964# define SWIG_LUA_CONSTTAB_FLOAT(B, C) LSTRKEY(B), LNUMVAL(C)
965# define SWIG_LUA_CONSTTAB_STRING(B, C) LSTRKEY(B), LSTRVAL(C)
966# define SWIG_LUA_CONSTTAB_CHAR(B, C) LSTRKEY(B), LNUMVAL(C)
969#ifndef SWIG_LUA_CONSTTAB_POINTER
970#warning eLua does not support pointers as constants. By default, nil will be used as value
971#define SWIG_LUA_CONSTTAB_POINTER(B,C,D) LSTRKEY(B), LNILVAL
974#ifndef SWIG_LUA_CONSTTAB_BINARY
975#warning eLua does not support pointers to member as constants. By default, nil will be used as value
976#define SWIG_LUA_CONSTTAB_BINARY(B, S, C, D) LSTRKEY(B), LNILVAL
979# define SWIG_LUA_CONSTTAB_INT(B, C) SWIG_LUA_INT, (char *)B, (long)C, 0, 0, 0
980# define SWIG_LUA_CONSTTAB_FLOAT(B, C) SWIG_LUA_FLOAT, (char *)B, 0, (double)C, 0, 0
981# define SWIG_LUA_CONSTTAB_STRING(B, C) SWIG_LUA_STRING, (char *)B, 0, 0, (void *)C, 0
982# define SWIG_LUA_CONSTTAB_CHAR(B, C) SWIG_LUA_CHAR, (char *)B, (long)C, 0, 0, 0
983# define SWIG_LUA_CONSTTAB_POINTER(B,C,D)\
984 SWIG_LUA_POINTER, (char *)B, 0, 0, (void *)C, &D
985# define SWIG_LUA_CONSTTAB_BINARY(B, S, C, D)\
986 SWIG_LUA_BINARY, (char *)B, S, 0, (void *)C, &D
989#ifndef SWIG_LUA_ELUA_EMULATE
990#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
991# define LRO_STRVAL(v) {{.p = (char *) v}, LUA_TSTRING}
992# define LSTRVAL LRO_STRVAL
996#ifndef SWIG_LUA_ELUA_EMULATE
997#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
1000#define MIN_OPT_LEVEL 2
1004#include "lrotable.h"
1017#if LUA_VERSION_NUM == 501
1018# define lua_rawlen lua_objlen
1023#if LUA_VERSION_NUM < 502
1024# define lua_pushglobaltable(L) lua_pushvalue(L, LUA_GLOBALSINDEX)
1028#if LUA_VERSION_NUM < 502
1029#define lua_rawsetp(L,index,ptr)\
1030 lua_pushlightuserdata(L,(void*)(ptr));\
1032 lua_rawset(L,index);
1034#define lua_rawgetp(L,index,ptr)\
1035 lua_pushlightuserdata(L,(void*)(ptr));\
1036 lua_rawget(L,index);
1050 lua_pushstring (L, str);
1061 va_start(argp, fmt);
1063 lua_pushvfstring(L, fmt, argp);
1073#define SWIG_LUA_INT 1
1074#define SWIG_LUA_FLOAT 2
1075#define SWIG_LUA_STRING 3
1076#define SWIG_LUA_POINTER 4
1077#define SWIG_LUA_BINARY 5
1078#define SWIG_LUA_CHAR 6
1087#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
1157#define SWIG_NewPointerObj(L, ptr, type, owner) SWIG_Lua_NewPointerObj(L, (void *)ptr, type, owner)
1158#define SWIG_ConvertPtr(L,idx, ptr, type, flags) SWIG_Lua_ConvertPtr(L,idx,ptr,type,flags)
1159#define SWIG_ConvertPtrAndOwn(L,idx, ptr, type, flags, own) SWIG_Lua_ConvertPtrAndOwn(L,idx,ptr,type,flags,own)
1160#define SWIG_MustGetPtr(L,idx, type,flags, argnum,fnname) SWIG_Lua_MustGetPtr(L,idx, type,flags, argnum,fnname)
1162#define SWIG_ConvertMember(L, idx, ptr, sz, ty) SWIG_Lua_ConvertPacked(L, idx, ptr, sz, ty)
1163#define SWIG_NewMemberObj(L, ptr, sz, type) SWIG_Lua_NewPackedObj(L, ptr, sz, type)
1166#define SWIG_GetModule(clientdata) SWIG_Lua_GetModule((lua_State*)(clientdata))
1167#define SWIG_SetModule(clientdata, pointer) SWIG_Lua_SetModule((lua_State*) (clientdata), pointer)
1168#define SWIG_MODULE_CLIENTDATA_TYPE lua_State*
1171#define SWIG_contract_assert(expr, msg) \
1172 do { if (!(expr)) { SWIG_Lua_pusherrstring(L, (char *) msg); goto fail; } } while (0)
1176#define SWIG_fail {goto fail;}
1177#define SWIG_fail_arg(func_name,argnum,type) \
1178 {SWIG_Lua_pushferrstring(L,"Error in %s (arg %d), expected '%s' got '%s'",\
1179 func_name,argnum,type,SWIG_Lua_typename(L,argnum));\
1181#define SWIG_fail_ptr(func_name,argnum,type) \
1182 SWIG_fail_arg(func_name,argnum,(type && type->str)?type->str:"void*")
1183#define SWIG_check_num_args(func_name,a,b) \
1184 if (lua_gettop(L)<a || lua_gettop(L)>b) \
1185 {SWIG_Lua_pushferrstring(L,"Error in %s expected %d..%d args, got %d",func_name,a,b,lua_gettop(L));\
1189#define SWIG_Lua_get_table(L,n) \
1190 (lua_pushstring(L, n), lua_rawget(L,-2))
1192#define SWIG_Lua_add_function(L,n,f) \
1193 (lua_pushstring(L, n), \
1194 lua_pushcfunction(L, f), \
1197#define SWIG_Lua_add_boolean(L,n,b) \
1198 (lua_pushstring(L, n), \
1199 lua_pushboolean(L, b), \
1203#define SWIG_isptrtype(L,I) (lua_isuserdata(L,I) || lua_isnil(L,I))
1216 lua_rawget(L,LUA_REGISTRYINDEX);
1217 if (lua_islightuserdata(L,-1))
1227 lua_pushlightuserdata(L,(
void*)module);
1228 lua_rawset(L,LUA_REGISTRYINDEX);
1241#ifndef SWIGLUA_IGNORE_SET_IMMUTABLE
1243 luaL_error(L,
"This variable is immutable");
1248#ifdef SWIG_LUA_ELUA_EMULATE
1252static int swig_lua_elua_emulate_unique_key;
1255SWIGINTERN void SWIG_Lua_elua_emulate_register(lua_State *L,
const swig_elua_entry *table)
1257 int i, table_parsed, parsed_tables_array, target_table;
1258 assert(lua_istable(L,-1));
1259 target_table = lua_gettop(L);
1261 lua_rawgetp(L, LUA_REGISTRYINDEX, &swig_lua_elua_emulate_unique_key);
1262 if(lua_isnil(L,-1)) {
1265 lua_pushvalue(L,-1);
1266 lua_rawsetp(L,LUA_REGISTRYINDEX,(
void*)(&swig_lua_elua_emulate_unique_key));
1268 parsed_tables_array = lua_gettop(L);
1269 lua_pushvalue(L,target_table);
1272 const int SWIGUNUSED pairs_start = lua_gettop(L);
1273 for(i = 0;table[i].key.type != LUA_TNIL || table[i].value.type != LUA_TNIL;i++)
1275 const swig_elua_entry *entry = table + i;
1276 int is_metatable = 0;
1277 switch(entry->key.type) {
1279 lua_pushstring(L,entry->key.key.strkey);
1280 if(strcmp(entry->key.key.strkey, SWIG_LUA_ELUA_EMUL_METATABLE_KEY) == 0)
1284 lua_pushnumber(L,entry->key.key.numkey);
1292 switch(entry->value.type) {
1294 lua_pushstring(L,entry->value.value.string);
1297 lua_pushnumber(L,entry->value.value.number);
1300 lua_pushcfunction(L,entry->value.value.function);
1303 lua_rawgetp(L,parsed_tables_array, entry->value.value.table);
1304 table_parsed = !lua_isnil(L,-1);
1308 SWIG_Lua_elua_emulate_register(L,entry->value.value.table);
1311 assert(lua_istable(L,-1));
1312 lua_pushvalue(L,-1);
1313 lua_setmetatable(L,target_table);
1318 if(entry->value.value.userdata.member)
1320 entry->value.value.userdata.lvalue,
1321 *(entry->value.value.userdata.ptype));
1324 *(entry->value.value.userdata.ptype),0);
1332 assert(lua_gettop(L) == pairs_start + 2);
1333 lua_rawset(L,target_table);
1336 assert(lua_gettop(L) == target_table);
1339SWIGINTERN void SWIG_Lua_elua_emulate_register_clear(lua_State *L)
1342 lua_rawsetp(L, LUA_REGISTRYINDEX, &swig_lua_elua_emulate_unique_key);
1347SWIGINTERN int SWIG_Lua_emulate_elua_getmetatable(lua_State *L)
1351 lua_getfield(L,-1,
"lua_getmetatable");
1353 assert(!lua_isnil(L,-1));
1355 assert(lua_gettop(L) == 3);
1357 if(!lua_isnil(L,-1))
1360 assert(lua_gettop(L) == 2);
1361 if(lua_istable(L,-2)) {
1363 lua_getfield(L,-1, SWIG_LUA_ELUA_EMUL_METATABLE_KEY);
1365 assert(lua_gettop(L) == 2);
1373SWIGINTERN void SWIG_Lua_emulate_elua_swap_getmetatable(lua_State *L)
1377 lua_pushstring(L,
"lua_getmetatable");
1378 lua_getfield(L,-2,
"getmetatable");
1379 assert(!lua_isnil(L,-1));
1381 lua_pushstring(L,
"getmetatable");
1382 lua_pushcfunction(L, SWIG_Lua_emulate_elua_getmetatable);
1400 assert(lua_istable(L,-2));
1401 lua_getmetatable(L,-2);
1402 assert(lua_istable(L,-1));
1404 assert(lua_istable(L,-1));
1409 if (lua_iscfunction(L,-1))
1418 assert(lua_istable(L,-1));
1422 if (lua_isfunction(L,-1))
1439 assert(lua_istable(L,1));
1440 lua_getmetatable(L,1);
1441 assert(lua_istable(L,-1));
1444 if (lua_istable(L,-1))
1449 if (lua_iscfunction(L,-1))
1463#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
1473 assert(lua_istable(L,-1));
1480 lua_getmetatable(L,-1);
1498 assert(lua_istable(L,-1));
1502 if( classes != 0 ) {
1503 while(*classes != 0) {
1520 assert(lua_istable(L,-1));
1521 lua_checkstack(L,5);
1526 lua_pushstring(L,
".get");
1530 lua_pushstring(L,
".set");
1534 lua_pushstring(L,
".fn");
1542 lua_setmetatable(L,-2);
1550 if( sub_namespace != 0) {
1551 while(*sub_namespace != 0) {
1559 lua_pushstring(L,ns->
name);
1560 lua_pushvalue(L,-2);
1563 assert(lua_gettop(L) == begin+1);
1580 int last_arg = lua_gettop(L);
1581 int original_metatable = last_arg + 1;
1586 lua_getmetatable(L,first_arg);
1589#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
1591 assert(lua_istable(L,-1));
1592 bases_count = lua_rawlen(L,-1);
1593 bases_table = lua_gettop(L);
1597 assert(swig_type!=0);
1602 for(;base_names[bases_count];
1613 int subcall_last_arg;
1614 int subcall_first_arg = lua_gettop(L) + 1;
1617 for(j=first_arg;j<=last_arg;j++)
1619 subcall_last_arg = lua_gettop(L);
1622 for(i=0;i<bases_count;i++) {
1624#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
1625 lua_rawgeti(L,bases_table,i+1);
1627 if(lua_isnil(L,-1)) {
1641 assert(base_swig_type != 0);
1647 assert(lua_isuserdata(L, subcall_first_arg));
1648 assert(lua_istable(L,-1));
1649 lua_setmetatable(L,subcall_first_arg);
1650 assert(lua_gettop(L) == subcall_last_arg);
1651 result = func(L, base_swig_type,subcall_first_arg, ret);
1657 lua_pushvalue(L,original_metatable);
1658 lua_setmetatable(L,first_arg);
1660 to_remove = subcall_last_arg - last_arg;
1661 for(j=0;j<to_remove;j++)
1662 lua_remove(L,last_arg+1);
1665 lua_pop(L, lua_gettop(L) - last_arg);
1667 if(ret) assert(lua_gettop(L) == last_arg + *ret);
1681 int bases_search_result;
1682 int substack_start = lua_gettop(L)-2;
1683 assert(first_arg == substack_start+1);
1685 lua_checkstack(L,5);
1686 assert(lua_isuserdata(L,-2));
1687 lua_getmetatable(L,-2);
1688 assert(lua_istable(L,-1));
1692 if (lua_iscfunction(L,-1))
1694 lua_pushvalue(L,substack_start+1);
1695 lua_pushvalue(L,substack_start+2);
1706 return bases_search_result;
1720 int bases_search_result;
1721 int substack_start = lua_gettop(L)-2;
1722 assert(first_arg == substack_start+1);
1724 lua_checkstack(L,5);
1725 assert(lua_isuserdata(L,-2));
1726 lua_getmetatable(L,-2);
1727 assert(lua_istable(L,-1));
1729 assert(lua_istable(L,-1));
1731 lua_pushvalue(L,substack_start+2);
1734 if (lua_iscfunction(L,-1))
1736 lua_pushvalue(L,substack_start+1);
1746 assert(lua_istable(L,-1));
1747 lua_pushvalue(L,substack_start+2);
1750 if (lua_isfunction(L,-1))
1762 return bases_search_result;
1777 assert(lua_isuserdata(L,1));
1802 int bases_search_result;
1803 int substack_start = lua_gettop(L) - 3;
1804 lua_checkstack(L,5);
1805 assert(lua_isuserdata(L,substack_start+1));
1806 lua_getmetatable(L,substack_start+1);
1807 assert(lua_istable(L,-1));
1812 if (lua_istable(L,-1))
1815 lua_pushvalue(L,substack_start+2);
1818 if (lua_iscfunction(L,-1))
1820 lua_pushvalue(L,substack_start+1);
1821 lua_pushvalue(L,substack_start+3);
1823 lua_remove(L,substack_start+4);
1833 if (lua_iscfunction(L,-1))
1835 lua_pushvalue(L,substack_start+1);
1836 lua_pushvalue(L,substack_start+2);
1837 lua_pushvalue(L,substack_start+3);
1849 assert(lua_gettop(L) == substack_start + 3);
1850 return bases_search_result;
1867 assert(lua_isuserdata(L,1));
1872 SWIG_Lua_pushferrstring(L,
"Assignment not possible. No setter/member with this name. For custom assignments implement __setitem method.");
1887 assert(lua_isuserdata(L,-1));
1907 assert(lua_isuserdata(L,1));
1910 lua_pushfstring(L,
"<userdata of type '%s' at %p>", userData->
type->
str, userData->
ptr);
1920 assert(lua_isuserdata(L,-1));
1934 if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2))
1939 result=(usr1->
ptr==usr2->
ptr);
1940 lua_pushboolean(L,result);
1968 lua_pushstring(L,
"SWIG");
1973 lua_pushstring(L,
".library");
1977 lua_pushstring(L,
"inheritable_metamethods");
1985 lua_rawset(L,LUA_REGISTRYINDEX);
1992 lua_pushstring(L,
"SWIG");
1993 lua_rawget(L,LUA_REGISTRYINDEX);
1994 if (!lua_istable(L,-1))
1999 lua_pushstring(L,
"SWIG");
2000 lua_rawget(L,LUA_REGISTRYINDEX);
2007 lua_pushstring(L,
".library");
2009 assert( !lua_isnil(L,-1) );
2010 lua_pushstring(L,
"inheritable_metamethods");
2022 lua_pushstring(L,cname);
2040 if (clss->
bases[i]==0)
2049#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
2053 assert(lua_istable(L,-1));
2055 assert(lua_istable(L,-1));
2061 assert(lua_istable(L,-1));
2072 assert(lua_istable(L,-1));
2074 for(i=0;clss->
bases[i];i++)
2088 size_t bases_count = 0;
2091 assert(lua_istable(L,-1));
2092 for(i=0;clss->
bases[i];i++)
2096 assert(lua_istable(L,-1));
2097 lua_rawseti(L,-2,i+1);
2100 assert(lua_rawlen(L,-1) == bases_count);
2108 assert(lua_istable(L,-1));
2109 for(i=0;clss->
methods[i].name;i++){
2163 lua_pushvalue(L, metamethod_name_idx);
2177 for(i=0;clss->
bases[i];i++)
2192 int metamethod_name_idx;
2196 lua_checkstack(L,5);
2197 numargs = lua_gettop(L);
2200 lua_pushvalue(L, lua_upvalueindex(1));
2201 metamethod_name_idx = lua_gettop(L);
2203 lua_pushvalue(L, lua_upvalueindex(2));
2210 SWIG_Lua_pushferrstring(L,
"The metamethod proxy is set, but it failed to find actual metamethod. Memory corruption is most likely explanation.");
2217 lua_call(L, numargs, LUA_MULTRET);
2218 return lua_gettop(L);
2233 assert(lua_isstring(L,-1));
2235 key_index = lua_gettop(L);
2238 lua_pushvalue(L,key_index);
2239 lua_gettable(L,metatable_index);
2240 if( !lua_isnil(L,-1) ) {
2247 for(i=0;clss->
bases[i];i++)
2251 lua_pushvalue(L, key_index);
2253 if( !lua_isnil(L,-1) ) {
2254 lua_pushvalue(L, key_index);
2257 lua_pushvalue(L, key_index);
2258 lua_pushlightuserdata(L, clss);
2261 lua_rawset(L, metatable_index);
2276 int metatable_index;
2277 int metamethods_info_index;
2278 int tostring_undefined;
2279 int eq_undefined = 0;
2282 metatable_index = lua_gettop(L);
2284 assert(lua_istable(L,-1));
2285 metamethods_info_index = lua_gettop(L);
2287 while(lua_next(L, metamethods_info_index) != 0 ) {
2289 const int is_inheritable = lua_toboolean(L,-2);
2292 if(is_inheritable) {
2300 lua_pushstring(L,
"__tostring");
2301 lua_pushvalue(L,-1);
2302 lua_rawget(L,metatable_index);
2303 tostring_undefined = lua_isnil(L,-1);
2305 if( tostring_undefined ) {
2307 lua_rawset(L, metatable_index);
2313 lua_pushstring(L,
"__eq");
2314 lua_pushvalue(L,-1);
2315 lua_rawget(L,metatable_index);
2316 eq_undefined = lua_isnil(L,-1);
2318 if( eq_undefined ) {
2320 lua_rawset(L, metatable_index);
2334 lua_checkstack(L,5);
2335 assert(lua_istable(L,-1));
2340 assert(lua_istable(L,-1));
2348 lua_getmetatable(L,-1);
2349 assert(lua_istable(L,-1));
2354 assert(lua_istable(L,-1));
2359 assert( lua_gettop(L) == begin );
2371 lua_pushstring(L,clss->
fqname);
2373 if(!lua_isnil(L,-1)) {
2375 assert(lua_gettop(L)==begin);
2380 for(i=0;clss->
bases[i];i++)
2386 lua_pushstring(L,clss->
fqname);
2389 lua_pushstring(L,
".type");
2390 lua_pushstring(L,clss->
fqname);
2393 lua_pushstring(L,
".bases");
2397 lua_pushstring(L,
".get");
2401 lua_pushstring(L,
".set");
2405 lua_pushstring(L,
".fn");
2417 assert(lua_gettop(L) == begin);
2422 assert( lua_gettop(L) == begin );
2428 assert(lua_istable(L,-1));
2442 begin = lua_gettop(L);
2445 assert(lua_istable(L,-1));
2446 lua_getmetatable(L,-1);
2447 assert(lua_istable(L,-1));
2448 lua_pushstring(L,
".instance");
2451 assert(lua_istable(L,-1));
2452 lua_pushstring(L,
".static");
2453 lua_pushvalue(L, -4);
2454 assert(lua_istable(L,-1));
2458 assert(lua_gettop(L) == begin);
2462#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
2469 lua_pushstring(L,clss->
fqname);
2471 if(!lua_isnil(L,-1)) {
2473 assert(lua_gettop(L)==begin);
2478 for(i=0;clss->
bases[i];i++)
2480 SWIG_Lua_elua_class_register_instance(L,clss->
bases[i]);
2484 lua_pushstring(L,clss->
fqname);
2486 lua_pushrotable(L, (
void*)(clss->
metatable));
2489 assert(lua_gettop(L) == begin);
2500 if (type->clientdata)
2503 if (lua_istable(L,-1))
2505 lua_setmetatable(L,-2);
2526#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
2539 if (lua_isnil(L,index))
2545 if (lua_islightuserdata(L,index))
2548 *ptr=lua_touserdata(L,index);
2599 if (lua_isnil(L,index))
2604 if (lua_islightuserdata(L,index))
2606 if (ptr) *ptr=lua_touserdata(L,index);
2622 if (ptr) *ptr=usr->
ptr;
2651 int argnum,
const char *func_name){
2654 luaL_error (L,
"Error in %s, expected a %s at argument number %d\n",
2655 func_name,(type && type->str)?type->str:
"void*",argnum);
2668 memcpy(raw->
data,ptr,size);
2678 if (type==0 || type==raw->
type)
2680 memcpy(ptr,raw->
data,size);
2690 if (lua_isuserdata(L,tp))
2695 return "userdata (unknown type)";
2697 return lua_typename(L,lua_type(L,tp));
2711#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC))
2716 for (i = 0; constants[i].
type; i++) {
2717 switch(constants[i].type) {
2719 lua_pushstring(L,constants[i].
name);
2720 lua_pushinteger(L,(lua_Integer)constants[i].lvalue);
2724 lua_pushstring(L,constants[i].
name);
2725 lua_pushnumber(L,(lua_Number)constants[i].dvalue);
2729 lua_pushstring(L,constants[i].
name);
2731 char c = (char)constants[i].lvalue;
2732 lua_pushlstring(L,&c,1);
2737 lua_pushstring(L,constants[i].
name);
2738 lua_pushstring(L,(
char *) constants[i].pvalue);
2742 lua_pushstring(L,constants[i].
name);
2747 lua_pushstring(L,constants[i].
name);
2748 SWIG_NewMemberObj(L,constants[i].pvalue,constants[i].lvalue,*(constants[i]).ptype);
2762#ifndef SWIG_DOSTRING_FAIL
2763#define SWIG_DOSTRING_FAIL(S) fprintf(stderr,"%s\n",S)
2769 if (str==0 || str[0]==0)
return 0;
2771 ok=luaL_dostring(L,str);
2788#define SWIGTYPE_p_PLGraphicsIn swig_types[0]
2789#define SWIGTYPE_p_char swig_types[1]
2790#define SWIGTYPE_p_double swig_types[2]
2791#define SWIGTYPE_p_f_double_double__int swig_types[3]
2792#define SWIGTYPE_p_f_double_double_p_double_p_double_p_void__void swig_types[4]
2793#define SWIGTYPE_p_f_int_double_p_char_int_p_void__void swig_types[5]
2794#define SWIGTYPE_p_f_int_p_double_p_double__void swig_types[6]
2795#define SWIGTYPE_p_f_int_p_q_const__double_p_q_const__double__void swig_types[7]
2796#define SWIGTYPE_p_int swig_types[8]
2797#define SWIGTYPE_p_p_char swig_types[9]
2798#define SWIGTYPE_p_p_double swig_types[10]
2799#define SWIGTYPE_p_unsigned_int swig_types[11]
2802#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2803#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2807#define SWIG_name "plplotluac"
2808#define SWIG_init luaopen_plplotluac
2809#define SWIG_init_user luaopen_plplotluac_user
2811#define SWIG_LUACODE luaopen_plplotluac_luacode
2816#define LUA_ALLOC_ARRAY( TYPE, LEN ) (TYPE *) malloc( LEN * sizeof ( TYPE ) )
2817#define LUA_FREE_ARRAY( PTR ) if ( PTR ) { free( PTR ); PTR = NULL;}
2821#define LUA_DECLARE_TYPEMAP_ARR_FN( NAME, TYPE ) \
2822 SWIGINTERN int LUA_read_ ## NAME ## _num_array( lua_State * L, int index, TYPE * array, int size ){ \
2824 for ( i = 0; i < size; i++ ) { \
2825 lua_rawgeti( L, index, i + 1 ); \
2826 if ( lua_isnumber( L, -1 ) ) { \
2827 array[i] = (TYPE) lua_tonumber( L, -1 ); \
2836 SWIGINTERN TYPE* LUA_get_ ## NAME ## _num_array_var( lua_State * L, int index, int* size ) \
2839 if ( !lua_istable( L, index ) ) { \
2840 lua_pushstring( L, "expected a table" ); \
2843 *size = SWIG_itable_size( L, index ); \
2844 if ( *size < 1 ) { \
2845 array = LUA_ALLOC_ARRAY( TYPE, 1 ); \
2846 array[0] = (TYPE) 0; \
2849 array = LUA_ALLOC_ARRAY( TYPE, *size ); \
2850 if ( !LUA_read_ ## NAME ## _num_array( L, index, array, *size ) ) { \
2851 lua_pushstring( L, "table must contain numbers" ); \
2852 LUA_FREE_ARRAY( array ); \
2867#define SWIG_ALLOC_ARRAY(TYPE,LEN) new TYPE[LEN]
2868#define SWIG_FREE_ARRAY(PTR) delete[] PTR
2870#define SWIG_ALLOC_ARRAY(TYPE,LEN) (TYPE *)malloc(LEN*sizeof(TYPE))
2871#define SWIG_FREE_ARRAY(PTR) free(PTR)
2878 lua_rawgeti(L,index,n+1);
2879 if (lua_isnil(L,-1))
break;
2891 while (lua_next(L, index) != 0) {
2899#define SWIG_DECLARE_TYPEMAP_ARR_FN(NAME,TYPE)\
2900 SWIGINTERN int SWIG_read_##NAME##_num_array(lua_State* L,int index,TYPE *array,int size){\
2902 for (i = 0; i < size; i++) {\
2903 lua_rawgeti(L,index,i+1);\
2904 if (lua_isnumber(L,-1)){\
2905 array[i] = (TYPE)lua_tonumber(L,-1);\
2914 SWIGINTERN TYPE* SWIG_get_##NAME##_num_array_fixed(lua_State* L, int index, int size){\
2916 if (!lua_istable(L,index) || SWIG_itable_size(L,index) != size) {\
2917 SWIG_Lua_pushferrstring(L,"expected a table of size %d",size);\
2920 array=SWIG_ALLOC_ARRAY(TYPE,size);\
2921 if (!SWIG_read_##NAME##_num_array(L,index,array,size)){\
2922 SWIG_Lua_pusherrstring(L,"table must contain numbers");\
2923 SWIG_FREE_ARRAY(array);\
2928 SWIGINTERN TYPE* SWIG_get_##NAME##_num_array_var(lua_State* L, int index, int* size)\
2931 if (!lua_istable(L,index)) {\
2932 SWIG_Lua_pusherrstring(L,"expected a table");\
2935 *size=SWIG_itable_size(L,index);\
2937 SWIG_Lua_pusherrstring(L,"table appears to be empty");\
2940 array=SWIG_ALLOC_ARRAY(TYPE,*size);\
2941 if (!SWIG_read_##NAME##_num_array(L,index,array,*size)){\
2942 SWIG_Lua_pusherrstring(L,"table must contain numbers");\
2943 SWIG_FREE_ARRAY(array);\
2948 SWIGINTERN void SWIG_write_##NAME##_num_array(lua_State* L,TYPE *array,int size){\
2951 for (i = 0; i < size; i++){\
2952 lua_pushnumber(L,(lua_Number)array[i]);\
2953 lua_rawseti(L,-2,i+1); \
2970 for (i = 0; i < size; i++) {
2971 lua_rawgeti(L,index,i+1);
2972 if (!lua_isuserdata(L,-1) ||
SWIG_ConvertPtr(L,-1,&array[i],type,0)==-1){
2996 if (!lua_istable(L,index)) {
3016 for (i = 0; i < size; i++){
3018 lua_rawseti(L,-2,i+1);
3033 if ( !lua_istable( L, index ) )
3035 lua_pushstring( L,
"expected a table" );
3041 lua_pushstring( L,
"table appears to be empty" );
3045 for ( i = 0; i < *nx; i++ )
3048 lua_rawgeti( L, index, 1 );
3049 if ( !lua_istable( L, -1 ) )
3052 lua_pushstring( L,
"expected a table" );
3059 lua_pushstring( L,
"table appears to be empty" );
3065 for ( i = 0; i < *nx; i++ )
3067 lua_rawgeti( L, index, i + 1 );
3068 if ( !lua_istable( L, -1 ) )
3071 lua_pushstring( L,
"expected a table" );
3072 for ( j = 0; j < *ny; j++ )
3080 lua_pushstring( L,
"inconsistent table sizes" );
3081 for ( j = 0; j < i; j++ )
3087 for ( j = 0; j < *ny; j++ )
3089 lua_rawgeti( L, -1, j + 1 );
3090 if ( lua_isnumber( L, -1 ) )
3092 matrix[i][j] = (
PLFLT) lua_tonumber( L, -1 );
3097 lua_pushstring( L,
"table must contain numbers" );
3098 for ( j = 0; j < i + 1; j++ )
3119 PLFLT *xtemp, *ytemp;
3125 fprintf( stderr,
"Lua state is not set!" );
3131 lua_pushnumber(
myL, n );
3132 SWIG_write_double_num_array(
myL, x, n );
3133 SWIG_write_double_num_array(
myL, y, n );
3136 if ( lua_pcall(
myL, 3, 2, 0 ) != 0 )
3137 fprintf( stderr,
"error running function `%s':%s",
3141 if ( !lua_istable(
myL, -2 ) )
3143 fprintf( stderr,
"function `%s' must return a table as 1st result",
mapform_funcstr );
3146 if ( !lua_istable(
myL, -1 ) )
3148 fprintf( stderr,
"function `%s' must return a table as 2nd result",
mapform_funcstr );
3151 xtemp = (
PLFLT *) LUA_get_double_num_array_var(
myL, -2, &len );
3152 if ( !xtemp || len != n )
3154 fprintf( stderr,
"function `%s' must return a table of length%d",
mapform_funcstr, n );
3157 for ( i = 0; i < n; i++ )
3161 ytemp = (
PLFLT *) LUA_get_double_num_array_var(
myL, -1, &len );
3162 if ( !ytemp || len != n )
3164 fprintf( stderr,
"function `%s' must return a table of length%d",
mapform_funcstr, n );
3167 for ( i = 0; i < n; i++ )
3202 fprintf( stderr,
"Lua state is not set!" );
3208 lua_pushnumber(
myL, x );
3209 lua_pushnumber(
myL, y );
3212 if ( lua_pcall(
myL, 2, 2, 0 ) != 0 )
3213 fprintf( stderr,
"error running function `%s':%s",
3217 if ( !lua_isnumber(
myL, -2 ) )
3219 fprintf( stderr,
"function `%s' must return a number as 1st result",
mypltr_funcstr );
3222 if ( !lua_isnumber(
myL, -1 ) )
3224 fprintf( stderr,
"function `%s' must return a number as 2nd result",
mypltr_funcstr );
3227 *tx = lua_tonumber(
myL, -2 );
3228 *ty = lua_tonumber(
myL, -1 );
3246 fprintf( stderr,
"Lua state is not set!" );
3252 lua_pushnumber(
myL, x );
3253 lua_pushnumber(
myL, y );
3256 if ( lua_pcall(
myL, 2, 2, 0 ) != 0 )
3257 fprintf( stderr,
"error running function `%s':%s",
3261 if ( !lua_isnumber(
myL, -2 ) )
3263 fprintf( stderr,
"function `%s' must return a number as 1st result",
myct_funcstr );
3266 if ( !lua_isnumber(
myL, -1 ) )
3268 fprintf( stderr,
"function `%s' must return a number as 2nd result",
myct_funcstr );
3271 *tx = lua_tonumber(
myL, -2 );
3272 *ty = lua_tonumber(
myL, -1 );
3285 fprintf( stderr,
"Lua state is not set!" );
3291 lua_pushnumber(
myL, axis );
3295 if ( lua_pcall(
myL, 2, 1, 0 ) != 0 )
3296 fprintf( stderr,
"error running function `%s':%s",
3300 if ( !lua_isstring(
myL, -1 ) )
3302 fprintf( stderr,
"function `%s' must return a string as result",
mylabel_funcstr );
3305 strncpy( label, lua_tostring(
myL, -1 ), length );
3317 int ret = lua_isstring(L, idx);
3319 ret = lua_isnil(L, idx);
3333 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::type",2,
"int");
3339 arg2 = (int)lua_tonumber(L, 2);
3340 if (arg1) (arg1)->type = arg2;
3362 result = (int) ((arg1)->type);
3363 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3379 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::state",2,
"unsigned int");
3386 arg2 = (
unsigned int)lua_tonumber(L, 2);
3387 if (arg1) (arg1)->state = arg2;
3400 unsigned int result;
3409 result = (
unsigned int) ((arg1)->state);
3410 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3426 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::keysym",2,
"unsigned int");
3433 arg2 = (
unsigned int)lua_tonumber(L, 2);
3434 if (arg1) (arg1)->keysym = arg2;
3447 unsigned int result;
3456 result = (
unsigned int) ((arg1)->keysym);
3457 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3473 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::button",2,
"unsigned int");
3480 arg2 = (
unsigned int)lua_tonumber(L, 2);
3481 if (arg1) (arg1)->button = arg2;
3494 unsigned int result;
3503 result = (
unsigned int) ((arg1)->button);
3504 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3520 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::subwindow",2,
"PLINT");
3526 arg2 = (
PLINT)lua_tonumber(L, 2);
3527 if (arg1) (arg1)->subwindow = arg2;
3549 result = (
PLINT) ((arg1)->subwindow);
3550 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3562 char *arg2 = (
char *)0 ;
3572 arg2 = (
char *)lua_tostring(L, 2);
3575 strncpy((
char*)arg1->
string, (
const char *)arg2, 16-1);
3602 result = (
char *)(
char *) ((arg1)->string);
3603 lua_pushstring(L,(
const char *)result); SWIG_arg++;
3619 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::pX",2,
"int");
3625 arg2 = (int)lua_tonumber(L, 2);
3626 if (arg1) (arg1)->pX = arg2;
3648 result = (int) ((arg1)->pX);
3649 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3665 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::pY",2,
"int");
3671 arg2 = (int)lua_tonumber(L, 2);
3672 if (arg1) (arg1)->pY = arg2;
3694 result = (int) ((arg1)->pY);
3695 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3711 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::dX",2,
"PLFLT");
3717 arg2 = (
PLFLT)lua_tonumber(L, 2);
3718 if (arg1) (arg1)->dX = arg2;
3740 result = (
PLFLT) ((arg1)->dX);
3741 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3757 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::dY",2,
"PLFLT");
3763 arg2 = (
PLFLT)lua_tonumber(L, 2);
3764 if (arg1) (arg1)->dY = arg2;
3786 result = (
PLFLT) ((arg1)->dY);
3787 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3803 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::wX",2,
"PLFLT");
3809 arg2 = (
PLFLT)lua_tonumber(L, 2);
3810 if (arg1) (arg1)->wX = arg2;
3832 result = (
PLFLT) ((arg1)->wX);
3833 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3849 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"PLGraphicsIn::wY",2,
"PLFLT");
3855 arg2 = (
PLFLT)lua_tonumber(L, 2);
3856 if (arg1) (arg1)->wY = arg2;
3878 result = (
PLFLT) ((arg1)->wY);
3879 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
3908 assert(lua_istable(L,1));
3910 assert(!lua_isnil(L,-1));
3912 lua_call(L,lua_gettop(L)-1,1);
3960static swig_lua_class _wrap_class_PLGraphicsIn = {
"PLGraphicsIn",
"PLGraphicsIn", &
SWIGTYPE_p_PLGraphicsIn,
_proxy__wrap_new_PLGraphicsIn,
swig_delete_PLGraphicsIn,
swig_PLGraphicsIn_methods,
swig_PLGraphicsIn_attributes, &
swig_PLGraphicsIn_Sf_SwigStatic,
swig_PLGraphicsIn_meta,
swig_PLGraphicsIn_bases,
swig_PLGraphicsIn_base_names };
3968 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"pl_setcontlabelformat",1,
"PLINT");
3969 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"pl_setcontlabelformat",2,
"PLINT");
3970 arg1 = (
PLINT)lua_tonumber(L, 1);
3971 arg2 = (
PLINT)lua_tonumber(L, 2);
3990 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"pl_setcontlabelparam",1,
"PLFLT");
3991 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"pl_setcontlabelparam",2,
"PLFLT");
3992 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"pl_setcontlabelparam",3,
"PLFLT");
3993 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"pl_setcontlabelparam",4,
"PLINT");
3994 arg1 = (
PLFLT)lua_tonumber(L, 1);
3995 arg2 = (
PLFLT)lua_tonumber(L, 2);
3996 arg3 = (
PLFLT)lua_tonumber(L, 3);
3997 arg4 = (
PLINT)lua_tonumber(L, 4);
4014 arg1 = (
PLINT)lua_tonumber(L, 1);
4045 arg1 = (
PLFLT)lua_tonumber(L, 1);
4046 arg2 = (
PLFLT)lua_tonumber(L, 2);
4047 arg3 = (
PLFLT)lua_tonumber(L, 3);
4048 arg4 = (
PLFLT)lua_tonumber(L, 4);
4049 arg5 = (
PLFLT)lua_tonumber(L, 5);
4050 arg6 = (
PLFLT)lua_tonumber(L, 6);
4051 arg7 = (
PLFLT)lua_tonumber(L, 7);
4052 arg8 = (
PLBOOL)lua_tonumber(L, 8);
4053 plarc(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
4083 arg1 = (
PLFLT)lua_tonumber(L, 1);
4084 arg2 = (
PLFLT)lua_tonumber(L, 2);
4085 arg3 = (
char *)lua_tostring(L, 3);
4086 arg4 = (
PLFLT)lua_tonumber(L, 4);
4087 arg5 = (
PLINT)lua_tonumber(L, 5);
4088 arg6 = (
char *)lua_tostring(L, 6);
4089 arg7 = (
PLFLT)lua_tonumber(L, 7);
4090 arg8 = (
PLINT)lua_tonumber(L, 8);
4091 plaxes(arg1,arg2,(
char const *)arg3,arg4,arg5,(
char const *)arg6,arg7,arg8);
4113 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
4119 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
4122 if ( temp3 !=
Alen )
4124 lua_pushfstring( L,
"Tables must be of same length." );
4128 arg4 = (
PLINT)lua_tonumber(L, 3);
4129 plbin(arg1,(
double const *)arg2,(
double const *)arg3,arg4);
4175 arg7 = (
PLFLT)lua_tonumber(L, 1);
4176 plbtime(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
4178 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
4179 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
4180 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
4181 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
4182 lua_pushnumber(L, (lua_Number) *arg5); SWIG_arg++;
4183 lua_pushnumber(L, (lua_Number) *arg6); SWIG_arg++;
4222 arg1 = (
char *)lua_tostring(L, 1);
4223 arg2 = (
PLFLT)lua_tonumber(L, 2);
4224 arg3 = (
PLINT)lua_tonumber(L, 3);
4225 arg4 = (
char *)lua_tostring(L, 4);
4226 arg5 = (
PLFLT)lua_tonumber(L, 5);
4227 arg6 = (
PLINT)lua_tonumber(L, 6);
4228 plbox((
char const *)arg1,arg2,arg3,(
char const *)arg4,arg5,arg6);
4266 arg1 = (
char *)lua_tostring(L, 1);
4267 arg2 = (
char *)lua_tostring(L, 2);
4268 arg3 = (
PLFLT)lua_tonumber(L, 3);
4269 arg4 = (
PLINT)lua_tonumber(L, 4);
4270 arg5 = (
char *)lua_tostring(L, 5);
4271 arg6 = (
char *)lua_tostring(L, 6);
4272 arg7 = (
PLFLT)lua_tonumber(L, 7);
4273 arg8 = (
PLINT)lua_tonumber(L, 8);
4274 arg9 = (
char *)lua_tostring(L, 9);
4275 arg10 = (
char *)lua_tostring(L, 10);
4276 arg11 = (
PLFLT)lua_tonumber(L, 11);
4277 arg12 = (
PLINT)lua_tonumber(L, 12);
4278 plbox3((
char const *)arg1,(
char const *)arg2,arg3,arg4,(
char const *)arg5,(
char const *)arg6,arg7,arg8,(
char const *)arg9,(
char const *)arg10,arg11,arg12);
4303 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plcalc_world",1,
"PLFLT");
4304 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plcalc_world",2,
"PLFLT");
4305 arg1 = (
PLFLT)lua_tonumber(L, 1);
4306 arg2 = (
PLFLT)lua_tonumber(L, 2);
4309 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
4310 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
4311 lua_pushnumber(L, (lua_Number) *arg5); SWIG_arg++;
4340 arg1 = (
PLINT)lua_tonumber(L, 1);
4357 arg1 = (
PLFLT)lua_tonumber(L, 1);
4383 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plconfigtime",1,
"PLFLT");
4384 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plconfigtime",2,
"PLFLT");
4385 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plconfigtime",3,
"PLFLT");
4386 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plconfigtime",4,
"PLINT");
4387 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plconfigtime",5,
"PLBOOL");
4388 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plconfigtime",6,
"PLINT");
4389 if(!lua_isnumber(L,7))
SWIG_fail_arg(
"plconfigtime",7,
"PLINT");
4390 if(!lua_isnumber(L,8))
SWIG_fail_arg(
"plconfigtime",8,
"PLINT");
4391 if(!lua_isnumber(L,9))
SWIG_fail_arg(
"plconfigtime",9,
"PLINT");
4392 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"plconfigtime",10,
"PLINT");
4393 if(!lua_isnumber(L,11))
SWIG_fail_arg(
"plconfigtime",11,
"PLFLT");
4394 arg1 = (
PLFLT)lua_tonumber(L, 1);
4395 arg2 = (
PLFLT)lua_tonumber(L, 2);
4396 arg3 = (
PLFLT)lua_tonumber(L, 3);
4397 arg4 = (
PLINT)lua_tonumber(L, 4);
4398 arg5 = (
PLBOOL)lua_tonumber(L, 5);
4399 arg6 = (
PLINT)lua_tonumber(L, 6);
4400 arg7 = (
PLINT)lua_tonumber(L, 7);
4401 arg8 = (
PLINT)lua_tonumber(L, 8);
4402 arg9 = (
PLINT)lua_tonumber(L, 9);
4403 arg10 = (
PLINT)lua_tonumber(L, 10);
4404 arg11 = (
PLFLT)lua_tonumber(L, 11);
4405 plconfigtime(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
4433 cgrid111.
xg = cgrid111.
yg = cgrid111.
zg = NULL;
4434 cgrid111.
nx = cgrid111.
ny = cgrid111.
nz = 0;
4435 cgrid211.
xg = cgrid211.
yg = cgrid211.
zg = NULL;
4436 cgrid211.
nx = cgrid211.
ny = 0;
4458 arg4 = (
PLINT)lua_tonumber(L, 2);
4459 arg5 = (
PLINT)lua_tonumber(L, 3);
4460 arg6 = (
PLINT)lua_tonumber(L, 4);
4461 arg7 = (
PLINT)lua_tonumber(L, 5);
4464 arg8 = (
PLFLT *) LUA_get_double_num_array_var( L, 6, &temp );
4469 if(lua_gettop(L)>=7){
4474 if ( lua_isstring( L, 7 ) )
4476 const char* funcstr = lua_tostring( L, 7 );
4477 if ( strcmp(
"pltr0", funcstr ) == 0 )
4481 else if ( strcmp(
"pltr1", funcstr ) == 0 )
4485 else if ( strcmp(
"pltr2", funcstr ) == 0 )
4500 if(lua_gettop(L)>=8){
4505 lua_pushstring( L,
"xg" );
4506 lua_gettable( L, 8 );
4507 if ( !lua_istable( L, -1 ) )
4510 lua_pushstring( L,
"expected a table xg" );
4513 lua_rawgeti( L, -1, 1 );
4514 if ( lua_istable( L, -1 ) )
4516 else if ( lua_isnumber( L, -1 ) )
4522 lua_pushstring( L,
"expected a one or two dimensional array/table in xg" );
4526 if ( gridmode == 1 )
4528 cgrid111.
xg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &nx );
4536 lua_pushfstring( L,
"Table xg must be of length%d.",
Xlen );
4549 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
4552 lua_pushfstring( L,
"Vectors must match matrix." );
4560 lua_pushstring( L,
"yg" );
4561 lua_gettable( L, 8 );
4562 if ( !lua_istable( L, -1 ) )
4565 lua_pushstring( L,
"expected a table yg" );
4568 lua_rawgeti( L, -1, 1 );
4569 if ( gridmode == 2 )
4571 if ( !lua_istable( L, -1 ) )
4575 lua_pushstring( L,
"expected a two dimensional array/table in yg" );
4581 if ( !lua_isnumber( L, -1 ) )
4585 lua_pushstring( L,
"expected a one dimensional array/table in yg" );
4590 if ( gridmode == 1 )
4592 cgrid111.
yg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &ny );
4600 lua_pushfstring( L,
"Table yg must be of length%d.",
Ylen );
4613 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
4616 lua_pushfstring( L,
"Vectors must match matrix." );
4623 if ( gridmode == 1 )
4625 else if ( gridmode == 2 )
4629 plcont((
double const **)arg1,arg2,arg3,arg4,arg5,arg6,arg7,(
double const *)arg8,arg9,arg10,arg11);
4636 for ( i = 0; i < ii1; i++ )
4655 for ( i = 0; i <
Xlen; i++ )
4661 for ( i = 0; i <
Xlen; i++ )
4674 for ( i = 0; i < ii1; i++ )
4693 for ( i = 0; i <
Xlen; i++ )
4699 for ( i = 0; i <
Xlen; i++ )
4728 arg1 = (
PLINT)lua_tonumber(L, 1);
4729 arg2 = (
PLINT)lua_tonumber(L, 2);
4730 arg3 = (
PLINT)lua_tonumber(L, 3);
4731 arg4 = (
PLINT)lua_tonumber(L, 4);
4732 arg5 = (
PLINT)lua_tonumber(L, 5);
4733 arg6 = (
PLFLT)lua_tonumber(L, 6);
4734 plctime(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
4736 lua_pushnumber(L, (lua_Number) *arg7); SWIG_arg++;
4752 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plcpstrm",2,
"PLBOOL");
4753 arg1 = (
PLINT)lua_tonumber(L, 1);
4754 arg2 = (
PLBOOL)lua_tonumber(L, 2);
4809 arg1 = (
PLFLT)lua_tonumber(L, 1);
4810 arg2 = (
PLFLT)lua_tonumber(L, 2);
4811 arg3 = (
PLFLT)lua_tonumber(L, 3);
4812 arg4 = (
PLFLT)lua_tonumber(L, 4);
4813 arg5 = (
PLINT)lua_tonumber(L, 5);
4814 arg6 = (
PLINT)lua_tonumber(L, 6);
4815 plenv(arg1,arg2,arg3,arg4,arg5,arg6);
4841 arg1 = (
PLFLT)lua_tonumber(L, 1);
4842 arg2 = (
PLFLT)lua_tonumber(L, 2);
4843 arg3 = (
PLFLT)lua_tonumber(L, 3);
4844 arg4 = (
PLFLT)lua_tonumber(L, 4);
4845 arg5 = (
PLINT)lua_tonumber(L, 5);
4846 arg6 = (
PLINT)lua_tonumber(L, 6);
4847 plenv0(arg1,arg2,arg3,arg4,arg5,arg6);
4883 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
4889 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
4892 if ( temp3 !=
Alen )
4894 lua_pushfstring( L,
"Tables must be of same length." );
4899 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
4902 if ( temp4 !=
Alen )
4904 lua_pushfstring( L,
"Tables must be of same length." );
4908 plerrx(arg1,(
double const *)arg2,(
double const *)arg3,(
double const *)arg4);
4948 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
4954 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
4957 if ( temp3 !=
Alen )
4959 lua_pushfstring( L,
"Tables must be of same length." );
4964 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
4967 if ( temp4 !=
Alen )
4969 lua_pushfstring( L,
"Tables must be of same length." );
4973 plerry(arg1,(
double const *)arg2,(
double const *)arg3,(
double const *)arg4);
5025 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
5031 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
5034 if ( temp3 !=
Alen )
5036 lua_pushfstring( L,
"Tables must be of same length." );
5040 plfill(arg1,(
double const *)arg2,(
double const *)arg3);
5074 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
5080 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
5083 if ( temp3 !=
Alen )
5085 lua_pushfstring( L,
"Tables must be of same length." );
5090 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
5093 if ( temp4 !=
Alen )
5095 lua_pushfstring( L,
"Tables must be of same length." );
5099 plfill3(arg1,(
double const *)arg2,(
double const *)arg3,(
double const *)arg4);
5136 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plgradient",3,
"PLFLT");
5139 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
5145 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
5148 if ( temp3 !=
Alen )
5150 lua_pushfstring( L,
"Tables must be of same length." );
5154 arg4 = (
PLFLT)lua_tonumber(L, 3);
5155 plgradient(arg1,(
double const *)arg2,(
double const *)arg3,arg4);
5197 arg1 = (
PLINT)lua_tonumber(L, 1);
5214 arg1 = (
PLINT)lua_tonumber(L, 1);
5237 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5238 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5262 arg1 = (
PLINT)lua_tonumber(L, 1);
5265 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5266 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5267 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5294 arg1 = (
PLINT)lua_tonumber(L, 1);
5295 plgcol0a(arg1,arg2,arg3,arg4,arg5);
5297 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5298 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5299 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5300 lua_pushnumber(L, (lua_Number) *arg5); SWIG_arg++;
5324 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5325 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5326 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5353 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5354 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5355 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5356 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5374 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5395 lua_pushstring( L, arg1 );
5424 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5425 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5426 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5427 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5445 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5472 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5473 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5474 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5475 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5499 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5500 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5501 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5519 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5540 lua_pushstring( L, arg1 );
5566 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5567 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5568 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5586 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5617 plgpage(arg1,arg2,arg3,arg4,arg5,arg6);
5619 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5620 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5621 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5622 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5623 lua_pushnumber(L, (lua_Number) *arg5); SWIG_arg++;
5624 lua_pushnumber(L, (lua_Number) *arg6); SWIG_arg++;
5663 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plgriddata",6,
"PLINT");
5664 if(!lua_isnumber(L,7))
SWIG_fail_arg(
"plgriddata",7,
"PLFLT");
5667 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
5673 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp2 );
5676 if ( temp2 !=
Alen )
5678 lua_pushfstring( L,
"Tables must be of same length." );
5684 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp );
5689 lua_pushfstring( L,
"Tables must be of same length." );
5696 arg5 = (
PLFLT *) LUA_get_double_num_array_var( L, 4, &temp );
5704 arg7 = (
PLFLT *) LUA_get_double_num_array_var( L, 5, &temp );
5712 for ( i = 0; i <
Xlen; i++ )
5715 for ( i = 0; i <
Xlen; i++ )
5722 arg10 = (
PLINT)lua_tonumber(L, 6);
5723 arg11 = (
PLFLT)lua_tonumber(L, 7);
5724 plgriddata((
double const *)arg1,(
double const *)arg2,(
double const *)arg3,arg4,(
double const *)arg5,arg6,(
double const *)arg7,arg8,arg9,arg10,arg11);
5732 for ( i = 0; i <
Xlen; i++ )
5734 SWIG_write_double_num_array( L, arg9[i],
Ylen );
5735 lua_rawseti( L, -2, i + 1 );
5759 for ( i = 0; i <
Xlen; i++ )
5786 for ( i = 0; i <
Xlen; i++ )
5812 plgspa(arg1,arg2,arg3,arg4);
5814 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5815 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5816 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5817 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5835 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5856 lua_pushstring( L, arg1 );
5883 plgvpd(arg1,arg2,arg3,arg4);
5885 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5886 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5887 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5888 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5913 plgvpw(arg1,arg2,arg3,arg4);
5915 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5916 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5917 lua_pushnumber(L, (lua_Number) *arg3); SWIG_arg++;
5918 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
5939 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5940 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5961 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5962 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
5983 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
5984 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
6009 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
6014 arg3 = (
PLFLT)lua_tonumber(L, 2);
6015 arg4 = (
PLFLT)lua_tonumber(L, 3);
6016 arg5 = (
PLINT)lua_tonumber(L, 4);
6017 arg6 = (
PLINT)lua_tonumber(L, 5);
6018 plhist(arg1,(
double const *)arg2,arg3,arg4,arg5,arg6);
6053 arg1 = (
PLFLT)lua_tonumber(L, 1);
6054 arg2 = (
PLFLT)lua_tonumber(L, 2);
6055 arg3 = (
PLFLT)lua_tonumber(L, 3);
6056 plhlsrgb(arg1,arg2,arg3,arg4,arg5,arg6);
6058 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
6059 lua_pushnumber(L, (lua_Number) *arg5); SWIG_arg++;
6060 lua_pushnumber(L, (lua_Number) *arg6); SWIG_arg++;
6095 arg1 = (
PLFLT)lua_tonumber(L, 1);
6096 arg2 = (
PLFLT)lua_tonumber(L, 2);
6097 arg3 = (
PLFLT)lua_tonumber(L, 3);
6098 arg4 = (
PLFLT)lua_tonumber(L, 4);
6099 pljoin(arg1,arg2,arg3,arg4);
6119 arg1 = (
char *)lua_tostring(L, 1);
6120 arg2 = (
char *)lua_tostring(L, 2);
6121 arg3 = (
char *)lua_tostring(L, 3);
6122 pllab((
char const *)arg1,(
char const *)arg2,(
char const *)arg3);
6221 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"pllegend",10,
"PLINT");
6222 if(!lua_isnumber(L,12))
SWIG_fail_arg(
"pllegend",12,
"PLFLT");
6223 if(!lua_isnumber(L,13))
SWIG_fail_arg(
"pllegend",13,
"PLFLT");
6224 if(!lua_isnumber(L,14))
SWIG_fail_arg(
"pllegend",14,
"PLFLT");
6225 if(!lua_isnumber(L,15))
SWIG_fail_arg(
"pllegend",15,
"PLFLT");
6226 if(!lua_istable(L,17))
SWIG_fail_arg(
"pllegend",17,
"char const **");
6227 if(lua_gettop(L)>=28 && !lua_istable(L,28))
SWIG_fail_arg(
"pllegend",28,
"char const **");
6228 arg3 = (
PLINT)lua_tonumber(L, 1);
6229 arg4 = (
PLINT)lua_tonumber(L, 2);
6230 arg5 = (
PLFLT)lua_tonumber(L, 3);
6231 arg6 = (
PLFLT)lua_tonumber(L, 4);
6232 arg7 = (
PLFLT)lua_tonumber(L, 5);
6233 arg8 = (
PLINT)lua_tonumber(L, 6);
6234 arg9 = (
PLINT)lua_tonumber(L, 7);
6235 arg10 = (
PLINT)lua_tonumber(L, 8);
6236 arg11 = (
PLINT)lua_tonumber(L, 9);
6237 arg12 = (
PLINT)lua_tonumber(L, 10);
6239 arg14 = (
PLINT *) LUA_get_int_num_array_var( L, 11, &arg13 );
6244 arg15 = (
PLFLT)lua_tonumber(L, 12);
6245 arg16 = (
PLFLT)lua_tonumber(L, 13);
6246 arg17 = (
PLFLT)lua_tonumber(L, 14);
6247 arg18 = (
PLFLT)lua_tonumber(L, 15);
6249 arg19 = (
PLINT *) LUA_get_int_num_array_var( L, 16, &temp19 );
6252 if ( temp19 !=
Alen )
6254 lua_pushfstring( L,
"Tables must be of same length." );
6264 lua_pushfstring( L,
"Tables must be of same length." );
6267 arg20 = malloc(
sizeof (
char* ) *
Alen );
6268 for ( i = 1; i <=
Alen; i++ )
6270 lua_rawgeti( L, 17, i );
6271 if ( lua_isstring( L, -1 ) )
6273 arg20[i - 1] = (
char *) lua_tostring( L, -1 );
6278 lua_pushfstring( L,
"Requires a sequence of strings." );
6285 if(lua_gettop(L)>=18){
6287 if ( lua_isnil( L, 18 ) )
6293 arg21 = (
PLINT *) LUA_get_int_num_array_var( L, 18, &temp21 );
6296 if ( temp21 !=
Alen )
6298 lua_pushfstring( L,
"Tables must be of same length." );
6304 if(lua_gettop(L)>=19){
6306 if ( lua_isnil( L, 19 ) )
6312 arg22 = (
PLINT *) LUA_get_int_num_array_var( L, 19, &temp22 );
6315 if ( temp22 !=
Alen )
6317 lua_pushfstring( L,
"Tables must be of same length." );
6323 if(lua_gettop(L)>=20){
6325 if ( lua_isnil( L, 20 ) )
6331 arg23 = (
PLFLT *) LUA_get_double_num_array_var( L, 20, &temp23 );
6334 if ( temp23 !=
Alen )
6336 lua_pushfstring( L,
"Tables must be of same length." );
6342 if(lua_gettop(L)>=21){
6344 if ( lua_isnil( L, 21 ) )
6350 arg24 = (
PLFLT *) LUA_get_double_num_array_var( L, 21, &temp24 );
6353 if ( temp24 !=
Alen )
6355 lua_pushfstring( L,
"Tables must be of same length." );
6361 if(lua_gettop(L)>=22){
6363 if ( lua_isnil( L, 22 ) )
6369 arg25 = (
PLINT *) LUA_get_int_num_array_var( L, 22, &temp25 );
6372 if ( temp25 !=
Alen )
6374 lua_pushfstring( L,
"Tables must be of same length." );
6380 if(lua_gettop(L)>=23){
6382 if ( lua_isnil( L, 23 ) )
6388 arg26 = (
PLINT *) LUA_get_int_num_array_var( L, 23, &temp26 );
6391 if ( temp26 !=
Alen )
6393 lua_pushfstring( L,
"Tables must be of same length." );
6399 if(lua_gettop(L)>=24){
6401 if ( lua_isnil( L, 24 ) )
6407 arg27 = (
PLFLT *) LUA_get_double_num_array_var( L, 24, &temp27 );
6410 if ( temp27 !=
Alen )
6412 lua_pushfstring( L,
"Tables must be of same length." );
6418 if(lua_gettop(L)>=25){
6420 if ( lua_isnil( L, 25 ) )
6426 arg28 = (
PLINT *) LUA_get_int_num_array_var( L, 25, &temp28 );
6429 if ( temp28 !=
Alen )
6431 lua_pushfstring( L,
"Tables must be of same length." );
6437 if(lua_gettop(L)>=26){
6439 if ( lua_isnil( L, 26 ) )
6445 arg29 = (
PLFLT *) LUA_get_double_num_array_var( L, 26, &temp29 );
6448 if ( temp29 !=
Alen )
6450 lua_pushfstring( L,
"Tables must be of same length." );
6456 if(lua_gettop(L)>=27){
6458 if ( lua_isnil( L, 27 ) )
6464 arg30 = (
PLINT *) LUA_get_int_num_array_var( L, 27, &temp30 );
6467 if ( temp30 !=
Alen )
6469 lua_pushfstring( L,
"Tables must be of same length." );
6475 if(lua_gettop(L)>=28){
6482 lua_pushfstring( L,
"Tables must be of same length." );
6485 arg31 = malloc(
sizeof (
char* ) *
Alen );
6486 for ( i = 1; i <=
Alen; i++ )
6488 lua_rawgeti( L, 28, i );
6489 if ( lua_isstring( L, -1 ) )
6491 arg31[i - 1] = (
char *) lua_tostring( L, -1 );
6496 lua_pushfstring( L,
"Requires a sequence of strings." );
6504 pllegend(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,(
int const *)arg14,arg15,arg16,arg17,arg18,(
int const *)arg19,(
char const **)arg20,(
int const *)arg21,(
int const *)arg22,(
double const *)arg23,(
double const *)arg24,(
int const *)arg25,(
int const *)arg26,(
double const *)arg27,(
int const *)arg28,(
double const *)arg29,(
int const *)arg30,(
char const **)arg31);
6506 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
6507 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
6517 free( arg20 ); arg20 = NULL;
6553 free( arg31 ); arg31 = NULL;
6568 free( arg20 ); arg20 = NULL;
6604 free( arg31 ); arg31 = NULL;
6648 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plcolorbar",1,
"PLINT");
6649 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plcolorbar",2,
"PLINT");
6650 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plcolorbar",3,
"PLFLT");
6651 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plcolorbar",4,
"PLFLT");
6652 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plcolorbar",5,
"PLFLT");
6653 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plcolorbar",6,
"PLFLT");
6654 if(!lua_isnumber(L,7))
SWIG_fail_arg(
"plcolorbar",7,
"PLINT");
6655 if(!lua_isnumber(L,8))
SWIG_fail_arg(
"plcolorbar",8,
"PLINT");
6656 if(!lua_isnumber(L,9))
SWIG_fail_arg(
"plcolorbar",9,
"PLINT");
6657 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"plcolorbar",10,
"PLFLT");
6658 if(!lua_isnumber(L,11))
SWIG_fail_arg(
"plcolorbar",11,
"PLFLT");
6659 if(!lua_isnumber(L,12))
SWIG_fail_arg(
"plcolorbar",12,
"PLINT");
6660 if(!lua_isnumber(L,13))
SWIG_fail_arg(
"plcolorbar",13,
"PLFLT");
6661 if(!lua_istable(L,15))
SWIG_fail_arg(
"plcolorbar",15,
"char const **");
6662 arg3 = (
PLINT)lua_tonumber(L, 1);
6663 arg4 = (
PLINT)lua_tonumber(L, 2);
6664 arg5 = (
PLFLT)lua_tonumber(L, 3);
6665 arg6 = (
PLFLT)lua_tonumber(L, 4);
6666 arg7 = (
PLFLT)lua_tonumber(L, 5);
6667 arg8 = (
PLFLT)lua_tonumber(L, 6);
6668 arg9 = (
PLINT)lua_tonumber(L, 7);
6669 arg10 = (
PLINT)lua_tonumber(L, 8);
6670 arg11 = (
PLINT)lua_tonumber(L, 9);
6671 arg12 = (
PLFLT)lua_tonumber(L, 10);
6672 arg13 = (
PLFLT)lua_tonumber(L, 11);
6673 arg14 = (
PLINT)lua_tonumber(L, 12);
6674 arg15 = (
PLFLT)lua_tonumber(L, 13);
6676 arg17 = (
PLINT *) LUA_get_int_num_array_var( L, 14, &arg16 );
6687 lua_pushfstring( L,
"Tables must be of same length." );
6690 arg18 = malloc(
sizeof (
char* ) *
Alen );
6691 for ( i = 1; i <=
Alen; i++ )
6693 lua_rawgeti( L, 15, i );
6694 if ( lua_isstring( L, -1 ) )
6696 arg18[i - 1] = (
char *) lua_tostring( L, -1 );
6701 lua_pushfstring( L,
"Requires a sequence of strings." );
6713 arg20 = malloc(
sizeof (
char* ) *
Alen );
6714 for ( i = 1; i <=
Alen; i++ )
6716 lua_rawgeti( L, 16, i );
6717 if ( lua_isstring( L, -1 ) )
6719 arg20[i - 1] = (
char *) lua_tostring( L, -1 );
6724 lua_pushfstring( L,
"Requires a sequence of strings." );
6731 arg21 = (
PLFLT *) LUA_get_double_num_array_var( L, 17, &temp21 );
6734 if ( temp21 !=
Alen )
6736 lua_pushfstring( L,
"Tables must be of same length." );
6741 arg22 = (
PLINT *) LUA_get_int_num_array_var( L, 18, &temp22 );
6744 if ( temp22 !=
Alen )
6746 lua_pushfstring( L,
"Tables must be of same length." );
6753 arg23 = (
PLINT *) LUA_get_int_num_array_var( L, 19, &temp23 );
6756 if ( temp23 !=
Alen )
6758 lua_pushfstring( L,
"Tables must be of same length." );
6764 for ( i = 0; i <
Xlen; i++ )
6765 if ( arg23[i] >
Ylen )
6774 if ( ( ii24 !=
Xlen ) || ( jj !=
Ylen ) )
6776 lua_pushfstring( L,
"Vectors must match matrix." );
6780 plcolorbar(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,(
int const *)arg17,(
char const **)arg18,arg19,(
char const **)arg20,(
double const *)arg21,(
int const *)arg22,(
int const *)arg23,(
double const **)arg24);
6782 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
6783 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
6790 free( arg18 ); arg18 = NULL;
6796 free( arg20 ); arg20 = NULL;
6813 for ( i = 0; i < ii24; i++ )
6827 free( arg18 ); arg18 = NULL;
6833 free( arg20 ); arg20 = NULL;
6850 for ( i = 0; i < ii24; i++ )
6867 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"pllightsource",1,
"PLFLT");
6868 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"pllightsource",2,
"PLFLT");
6869 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"pllightsource",3,
"PLFLT");
6870 arg1 = (
PLFLT)lua_tonumber(L, 1);
6871 arg2 = (
PLFLT)lua_tonumber(L, 2);
6872 arg3 = (
PLFLT)lua_tonumber(L, 3);
6893 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
6899 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
6902 if ( temp3 !=
Alen )
6904 lua_pushfstring( L,
"Tables must be of same length." );
6908 plline(arg1,(
double const *)arg2,(
double const *)arg3);
6942 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
6948 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
6951 if ( temp3 !=
Alen )
6953 lua_pushfstring( L,
"Tables must be of same length." );
6958 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
6961 if ( temp4 !=
Alen )
6963 lua_pushfstring( L,
"Tables must be of same length." );
6967 plline3(arg1,(
double const *)arg2,(
double const *)arg3,(
double const *)arg4);
7001 arg1 = (
PLINT)lua_tonumber(L, 1);
7026 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
7033 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
7046 if ( ( arg4 !=
Xlen ) || ( arg5 !=
Ylen ) )
7048 lua_pushfstring( L,
"Vectors must match matrix." );
7052 arg6 = (
PLINT)lua_tonumber(L, 4);
7053 plmesh((
double const *)arg1,(
double const *)arg2,(
double const **)arg3,arg4,arg5,arg6);
7066 for ( i = 0; i < ii3; i++ )
7085 for ( i = 0; i < ii3; i++ )
7111 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
7118 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
7131 if ( ( arg4 !=
Xlen ) || ( arg5 !=
Ylen ) )
7133 lua_pushfstring( L,
"Vectors must match matrix." );
7137 arg6 = (
PLINT)lua_tonumber(L, 4);
7140 arg7 = (
PLFLT *) LUA_get_double_num_array_var( L, 5, &temp );
7145 plmeshc((
double const *)arg1,(
double const *)arg2,(
double const **)arg3,arg4,arg5,arg6,(
double const *)arg7,arg8);
7158 for ( i = 0; i < ii3; i++ )
7180 for ( i = 0; i < ii3; i++ )
7202 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
7225 arg1 = (
char *)lua_tostring(L, 1);
7226 arg2 = (
PLFLT)lua_tonumber(L, 2);
7227 arg3 = (
PLFLT)lua_tonumber(L, 3);
7228 arg4 = (
PLFLT)lua_tonumber(L, 4);
7229 arg5 = (
char *)lua_tostring(L, 5);
7230 plmtex((
char const *)arg1,arg2,arg3,arg4,(
char const *)arg5);
7254 arg1 = (
char *)lua_tostring(L, 1);
7255 arg2 = (
PLFLT)lua_tonumber(L, 2);
7256 arg3 = (
PLFLT)lua_tonumber(L, 3);
7257 arg4 = (
PLFLT)lua_tonumber(L, 4);
7258 arg5 = (
char *)lua_tostring(L, 5);
7259 plmtex3((
char const *)arg1,arg2,arg3,arg4,(
char const *)arg5);
7285 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
7292 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
7305 if ( ( arg4 !=
Xlen ) || ( arg5 !=
Ylen ) )
7307 lua_pushfstring( L,
"Vectors must match matrix." );
7311 arg6 = (
PLINT)lua_tonumber(L, 4);
7312 arg7 = (
PLBOOL)lua_tonumber(L, 5);
7313 plot3d((
double const *)arg1,(
double const *)arg2,(
double const **)arg3,arg4,arg5,arg6,arg7);
7326 for ( i = 0; i < ii3; i++ )
7345 for ( i = 0; i < ii3; i++ )
7371 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
7378 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
7391 if ( ( arg4 !=
Xlen ) || ( arg5 !=
Ylen ) )
7393 lua_pushfstring( L,
"Vectors must match matrix." );
7397 arg6 = (
PLINT)lua_tonumber(L, 4);
7400 arg7 = (
PLFLT *) LUA_get_double_num_array_var( L, 5, &temp );
7405 plot3dc((
double const *)arg1,(
double const *)arg2,(
double const **)arg3,arg4,arg5,arg6,(
double const *)arg7,arg8);
7418 for ( i = 0; i < ii3; i++ )
7440 for ( i = 0; i < ii3; i++ )
7475 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
7482 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
7495 if ( ( arg4 !=
Xlen ) || ( arg5 !=
Ylen ) )
7497 lua_pushfstring( L,
"Vectors must match matrix." );
7501 arg6 = (
PLINT)lua_tonumber(L, 4);
7504 arg7 = (
PLFLT *) LUA_get_double_num_array_var( L, 5, &temp );
7509 arg9 = (
PLINT)lua_tonumber(L, 6);
7511 arg11 = (
PLINT *) LUA_get_int_num_array_var( L, 7, &arg10 );
7517 arg12 = (
PLINT *) LUA_get_int_num_array_var( L, 8, &temp12 );
7520 if ( temp12 !=
Alen )
7522 lua_pushfstring( L,
"Tables must be of same length." );
7526 plot3dcl((
double const *)arg1,(
double const *)arg2,(
double const **)arg3,arg4,arg5,arg6,(
double const *)arg7,arg8,arg9,arg10,(
int const *)arg11,(
int const *)arg12);
7539 for ( i = 0; i < ii3; i++ )
7567 for ( i = 0; i < ii3; i++ )
7602 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
7609 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
7622 if ( ( arg4 !=
Xlen ) || ( arg5 !=
Ylen ) )
7624 lua_pushfstring( L,
"Vectors must match matrix." );
7628 arg6 = (
PLINT)lua_tonumber(L, 4);
7631 arg7 = (
PLFLT *) LUA_get_double_num_array_var( L, 5, &temp );
7636 plsurf3d((
double const *)arg1,(
double const *)arg2,(
double const **)arg3,arg4,arg5,arg6,(
double const *)arg7,arg8);
7649 for ( i = 0; i < ii3; i++ )
7671 for ( i = 0; i < ii3; i++ )
7702 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plsurf3dl",4,
"PLINT");
7703 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plsurf3dl",6,
"PLINT");
7706 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
7713 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
7726 if ( ( arg4 !=
Xlen ) || ( arg5 !=
Ylen ) )
7728 lua_pushfstring( L,
"Vectors must match matrix." );
7732 arg6 = (
PLINT)lua_tonumber(L, 4);
7735 arg7 = (
PLFLT *) LUA_get_double_num_array_var( L, 5, &temp );
7740 arg9 = (
PLINT)lua_tonumber(L, 6);
7742 arg11 = (
PLINT *) LUA_get_int_num_array_var( L, 7, &arg10 );
7748 arg12 = (
PLINT *) LUA_get_int_num_array_var( L, 8, &temp12 );
7751 if ( temp12 !=
Alen )
7753 lua_pushfstring( L,
"Tables must be of same length." );
7757 plsurf3dl((
double const *)arg1,(
double const *)arg2,(
double const **)arg3,arg4,arg5,arg6,(
double const *)arg7,arg8,arg9,arg10,(
int const *)arg11,(
int const *)arg12);
7770 for ( i = 0; i < ii3; i++ )
7798 for ( i = 0; i < ii3; i++ )
7825 if(!lua_istable(L,1))
SWIG_fail_arg(
"plparseopts",1,
"int *");
7826 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plparseopts",2,
"PLINT");
7835 lua_rawgeti( L, 1, i );
7836 if ( lua_isnil( L, -1 ) )
7849 for ( i = 0; i < n; i++ )
7851 lua_rawgeti( L, 1, i );
7852 if ( lua_isstring( L, -1 ) )
7854 arg2[i] = (
char *) lua_tostring( L, -1 );
7859 lua_pushfstring( L,
"List items must be strings" );
7867 arg3 = (
PLINT)lua_tonumber(L, 2);
7869 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
7893 arg2 = (
PLINT *) LUA_get_int_num_array_var( L, 1, &arg1 );
7899 arg3 = (
PLINT *) LUA_get_int_num_array_var( L, 2, &temp3 );
7902 if ( temp3 !=
Alen )
7904 lua_pushfstring( L,
"Tables must be of same length." );
7908 plpat(arg1,(
int const *)arg2,(
int const *)arg3);
7944 arg1 = (
PLINT)lua_tonumber(L, 1);
7945 arg2 = (
PLFLT)lua_tonumber(L, 2);
7946 arg3 = (
PLFLT)lua_tonumber(L, 3);
7947 arg4 = (
PLFLT)lua_tonumber(L, 4);
7948 arg5 = (
PLFLT)lua_tonumber(L, 5);
7949 plpath(arg1,arg2,arg3,arg4,arg5);
7971 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
7977 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
7980 if ( temp3 !=
Alen )
7982 lua_pushfstring( L,
"Tables must be of same length." );
7986 arg4 = (
PLINT)lua_tonumber(L, 3);
7987 plpoin(arg1,(
double const *)arg2,(
double const *)arg3,arg4);
8023 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
8029 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
8032 if ( temp3 !=
Alen )
8034 lua_pushfstring( L,
"Tables must be of same length." );
8039 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
8042 if ( temp4 !=
Alen )
8044 lua_pushfstring( L,
"Tables must be of same length." );
8048 arg5 = (
PLINT)lua_tonumber(L, 4);
8049 plpoin3(arg1,(
double const *)arg2,(
double const *)arg3,(
double const *)arg4,arg5);
8093 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
8099 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
8102 if ( temp3 !=
Alen )
8104 lua_pushfstring( L,
"Tables must be of same length." );
8109 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
8112 if ( temp4 !=
Alen )
8114 lua_pushfstring( L,
"Tables must be of same length." );
8119 arg5 = (
PLINT *) LUA_get_int_num_array_var( L, 4, &temp5 );
8122 if ( temp5 <
Alen - 1 )
8124 lua_pushfstring( L,
"Tables must be at least length of others minus 1." );
8128 arg6 = (
PLBOOL)lua_tonumber(L, 5);
8129 plpoly3(arg1,(
double const *)arg2,(
double const *)arg3,(
double const *)arg4,(
int const *)arg5,arg6);
8171 arg1 = (
PLINT)lua_tonumber(L, 1);
8172 arg2 = (
PLINT)lua_tonumber(L, 2);
8189 arg1 = (
PLINT)lua_tonumber(L, 1);
8216 arg1 = (
PLFLT)lua_tonumber(L, 1);
8217 arg2 = (
PLFLT)lua_tonumber(L, 2);
8218 arg3 = (
PLFLT)lua_tonumber(L, 3);
8219 arg4 = (
PLFLT)lua_tonumber(L, 4);
8220 arg5 = (
PLFLT)lua_tonumber(L, 5);
8221 arg6 = (
char *)lua_tostring(L, 6);
8222 plptex(arg1,arg2,arg3,arg4,arg5,(
char const *)arg6);
8256 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"plptex3",10,
"PLFLT");
8258 arg1 = (
PLFLT)lua_tonumber(L, 1);
8259 arg2 = (
PLFLT)lua_tonumber(L, 2);
8260 arg3 = (
PLFLT)lua_tonumber(L, 3);
8261 arg4 = (
PLFLT)lua_tonumber(L, 4);
8262 arg5 = (
PLFLT)lua_tonumber(L, 5);
8263 arg6 = (
PLFLT)lua_tonumber(L, 6);
8264 arg7 = (
PLFLT)lua_tonumber(L, 7);
8265 arg8 = (
PLFLT)lua_tonumber(L, 8);
8266 arg9 = (
PLFLT)lua_tonumber(L, 9);
8267 arg10 = (
PLFLT)lua_tonumber(L, 10);
8268 arg11 = (
char *)lua_tostring(L, 11);
8269 plptex3(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,(
char const *)arg11);
8285 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
8327 arg1 = (
PLFLT)lua_tonumber(L, 1);
8328 arg2 = (
PLFLT)lua_tonumber(L, 2);
8329 arg3 = (
PLFLT)lua_tonumber(L, 3);
8330 plrgbhls(arg1,arg2,arg3,arg4,arg5,arg6);
8332 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
8333 lua_pushnumber(L, (lua_Number) *arg5); SWIG_arg++;
8334 lua_pushnumber(L, (lua_Number) *arg6); SWIG_arg++;
8351 arg1 = (
PLFLT)lua_tonumber(L, 1);
8352 arg2 = (
PLFLT)lua_tonumber(L, 2);
8375 arg1 = (
PLINT *) LUA_get_int_num_array_var( L, 1, &temp1 );
8381 arg2 = (
PLINT *) LUA_get_int_num_array_var( L, 2, &temp2 );
8384 if ( temp2 !=
Alen )
8386 lua_pushfstring( L,
"Tables must be of same length." );
8391 arg3 = (
PLINT *) LUA_get_int_num_array_var( L, 3, &temp3 );
8394 if ( temp3 !=
Alen )
8396 lua_pushfstring( L,
"Tables must be of same length." );
8401 plscmap0((
int const *)arg1,(
int const *)arg2,(
int const *)arg3,arg4);
8442 arg1 = (
PLINT *) LUA_get_int_num_array_var( L, 1, &temp1 );
8448 arg2 = (
PLINT *) LUA_get_int_num_array_var( L, 2, &temp2 );
8451 if ( temp2 !=
Alen )
8453 lua_pushfstring( L,
"Tables must be of same length." );
8458 arg3 = (
PLINT *) LUA_get_int_num_array_var( L, 3, &temp3 );
8461 if ( temp3 !=
Alen )
8463 lua_pushfstring( L,
"Tables must be of same length." );
8469 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 4, &temp );
8474 lua_pushfstring( L,
"Tables must be of same length." );
8479 plscmap0a((
int const *)arg1,(
int const *)arg2,(
int const *)arg3,(
double const *)arg4,arg5);
8518 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plscmap0n",1,
"PLINT");
8519 arg1 = (
PLINT)lua_tonumber(L, 1);
8542 arg1 = (
PLINT *) LUA_get_int_num_array_var( L, 1, &temp1 );
8548 arg2 = (
PLINT *) LUA_get_int_num_array_var( L, 2, &temp2 );
8551 if ( temp2 !=
Alen )
8553 lua_pushfstring( L,
"Tables must be of same length." );
8558 arg3 = (
PLINT *) LUA_get_int_num_array_var( L, 3, &temp3 );
8561 if ( temp3 !=
Alen )
8563 lua_pushfstring( L,
"Tables must be of same length." );
8568 plscmap1((
int const *)arg1,(
int const *)arg2,(
int const *)arg3,arg4);
8609 arg1 = (
PLINT *) LUA_get_int_num_array_var( L, 1, &temp1 );
8615 arg2 = (
PLINT *) LUA_get_int_num_array_var( L, 2, &temp2 );
8618 if ( temp2 !=
Alen )
8620 lua_pushfstring( L,
"Tables must be of same length." );
8625 arg3 = (
PLINT *) LUA_get_int_num_array_var( L, 3, &temp3 );
8628 if ( temp3 !=
Alen )
8630 lua_pushfstring( L,
"Tables must be of same length." );
8636 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 4, &temp );
8641 lua_pushfstring( L,
"Tables must be of same length." );
8646 plscmap1a((
int const *)arg1,(
int const *)arg2,(
int const *)arg3,(
double const *)arg4,arg5);
8698 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plscmap1l",1,
"PLBOOL");
8699 arg1 = (
PLBOOL)lua_tonumber(L, 1);
8702 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
8708 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
8711 if ( temp4 !=
Alen )
8713 lua_pushfstring( L,
"Tables must be of same length." );
8718 arg5 = (
PLFLT *) LUA_get_double_num_array_var( L, 4, &temp5 );
8721 if ( temp5 !=
Alen )
8723 lua_pushfstring( L,
"Tables must be of same length." );
8728 arg6 = (
PLFLT *) LUA_get_double_num_array_var( L, 5, &temp6 );
8731 if ( temp6 !=
Alen )
8733 lua_pushfstring( L,
"Tables must be of same length." );
8737 if(lua_gettop(L)>=6){
8739 if ( lua_isnil( L, 6 ) )
8745 arg7 = (
PLINT *) LUA_get_int_num_array_var( L, 6, &temp7 );
8748 if ( temp7 <
Alen - 1 )
8750 lua_pushfstring( L,
"Tables must be at least length of others minus 1." );
8756 plscmap1l(arg1,arg2,(
double const *)arg3,(
double const *)arg4,(
double const *)arg5,(
double const *)arg6,(
int const *)arg7);
8816 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plscmap1la",1,
"PLBOOL");
8817 arg1 = (
PLBOOL)lua_tonumber(L, 1);
8820 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
8826 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
8829 if ( temp4 !=
Alen )
8831 lua_pushfstring( L,
"Tables must be of same length." );
8836 arg5 = (
PLFLT *) LUA_get_double_num_array_var( L, 4, &temp5 );
8839 if ( temp5 !=
Alen )
8841 lua_pushfstring( L,
"Tables must be of same length." );
8846 arg6 = (
PLFLT *) LUA_get_double_num_array_var( L, 5, &temp6 );
8849 if ( temp6 !=
Alen )
8851 lua_pushfstring( L,
"Tables must be of same length." );
8856 arg7 = (
PLFLT *) LUA_get_double_num_array_var( L, 6, &temp7 );
8859 if ( temp7 !=
Alen )
8861 lua_pushfstring( L,
"Tables must be of same length." );
8865 if(lua_gettop(L)>=7){
8867 if ( lua_isnil( L, 7 ) )
8873 arg8 = (
PLINT *) LUA_get_int_num_array_var( L, 7, &temp8 );
8876 if ( temp8 <
Alen - 1 )
8878 lua_pushfstring( L,
"Tables must be at least length of others minus 1." );
8884 plscmap1la(arg1,arg2,(
double const *)arg3,(
double const *)arg4,(
double const *)arg5,(
double const *)arg6,(
double const *)arg7,(
int const *)arg8);
8935 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plscmap1n",1,
"PLINT");
8936 arg1 = (
PLINT)lua_tonumber(L, 1);
8953 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plscmap1_range",1,
"PLFLT");
8954 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plscmap1_range",2,
"PLFLT");
8955 arg1 = (
PLFLT)lua_tonumber(L, 1);
8956 arg2 = (
PLFLT)lua_tonumber(L, 2);
8979 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
8980 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
9001 arg1 = (
PLINT)lua_tonumber(L, 1);
9002 arg2 = (
PLINT)lua_tonumber(L, 2);
9003 arg3 = (
PLINT)lua_tonumber(L, 3);
9004 arg4 = (
PLINT)lua_tonumber(L, 4);
9029 arg1 = (
PLINT)lua_tonumber(L, 1);
9030 arg2 = (
PLINT)lua_tonumber(L, 2);
9031 arg3 = (
PLINT)lua_tonumber(L, 3);
9032 arg4 = (
PLINT)lua_tonumber(L, 4);
9033 arg5 = (
PLFLT)lua_tonumber(L, 5);
9034 plscol0a(arg1,arg2,arg3,arg4,arg5);
9054 arg1 = (
PLINT)lua_tonumber(L, 1);
9055 arg2 = (
PLINT)lua_tonumber(L, 2);
9056 arg3 = (
PLINT)lua_tonumber(L, 3);
9075 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plscolbga",1,
"PLINT");
9076 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plscolbga",2,
"PLINT");
9077 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plscolbga",3,
"PLINT");
9078 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plscolbga",4,
"PLFLT");
9079 arg1 = (
PLINT)lua_tonumber(L, 1);
9080 arg2 = (
PLINT)lua_tonumber(L, 2);
9081 arg3 = (
PLINT)lua_tonumber(L, 3);
9082 arg4 = (
PLFLT)lua_tonumber(L, 4);
9099 arg1 = (
PLINT)lua_tonumber(L, 1);
9115 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plscompression",1,
"PLINT");
9116 arg1 = (
PLINT)lua_tonumber(L, 1);
9133 arg1 = (
char *)lua_tostring(L, 1);
9134 plsdev((
char const *)arg1);
9156 arg1 = (
PLFLT)lua_tonumber(L, 1);
9157 arg2 = (
PLFLT)lua_tonumber(L, 2);
9158 arg3 = (
PLFLT)lua_tonumber(L, 3);
9159 arg4 = (
PLFLT)lua_tonumber(L, 4);
9186 arg1 = (
PLINT)lua_tonumber(L, 1);
9187 arg2 = (
PLINT)lua_tonumber(L, 2);
9188 arg3 = (
PLINT)lua_tonumber(L, 3);
9189 arg4 = (
PLINT)lua_tonumber(L, 4);
9190 arg5 = (
PLFLT)lua_tonumber(L, 5);
9191 arg6 = (
PLFLT)lua_tonumber(L, 6);
9192 plsdimap(arg1,arg2,arg3,arg4,arg5,arg6);
9208 arg1 = (
PLFLT)lua_tonumber(L, 1);
9231 arg1 = (
PLFLT)lua_tonumber(L, 1);
9232 arg2 = (
PLFLT)lua_tonumber(L, 2);
9233 arg3 = (
PLFLT)lua_tonumber(L, 3);
9234 arg4 = (
PLFLT)lua_tonumber(L, 4);
9257 arg1 = (
PLFLT)lua_tonumber(L, 1);
9258 arg2 = (
PLFLT)lua_tonumber(L, 2);
9259 arg3 = (
PLFLT)lua_tonumber(L, 3);
9260 arg4 = (
PLFLT)lua_tonumber(L, 4);
9276 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plseed",1,
"unsigned int");
9278 arg1 = (
unsigned int)lua_tonumber(L, 1);
9295 arg1 = (lua_tostring(L, 1))[0];
9315 arg1 = (
char *)lua_tostring(L, 1);
9316 arg2 = (
char *)lua_tostring(L, 2);
9317 result = (
PLINT)
plsetopt((
char const *)arg1,(
char const *)arg2);
9318 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
9337 arg1 = (
PLINT)lua_tonumber(L, 1);
9338 arg2 = (
PLINT)lua_tonumber(L, 2);
9339 arg3 = (
PLINT)lua_tonumber(L, 3);
9355 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plsfci",1,
"PLUNICODE");
9374 arg1 = (
char *)lua_tostring(L, 1);
9395 arg1 = (
PLINT)lua_tonumber(L, 1);
9396 arg2 = (
PLINT)lua_tonumber(L, 2);
9397 arg3 = (
PLINT)lua_tonumber(L, 3);
9432 cgrid117.
xg = cgrid117.
yg = cgrid117.
zg = NULL;
9433 cgrid117.
nx = cgrid117.
ny = cgrid117.
nz = 0;
9434 cgrid217.
xg = cgrid217.
yg = cgrid217.
zg = NULL;
9435 cgrid217.
nx = cgrid217.
ny = 0;
9457 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"plshades",10,
"PLBOOL");
9467 arg5 = (
PLFLT)lua_tonumber(L, 2);
9468 arg6 = (
PLFLT)lua_tonumber(L, 3);
9469 arg7 = (
PLFLT)lua_tonumber(L, 4);
9470 arg8 = (
PLFLT)lua_tonumber(L, 5);
9473 arg9 = (
PLFLT *) LUA_get_double_num_array_var( L, 6, &temp );
9476 arg10 =
Alen = temp;
9478 arg11 = (
PLFLT)lua_tonumber(L, 7);
9479 arg12 = (
PLINT)lua_tonumber(L, 8);
9480 arg13 = (
PLFLT)lua_tonumber(L, 9);
9481 arg15 = (
PLBOOL)lua_tonumber(L, 10);
9482 if(lua_gettop(L)>=11){
9487 if ( lua_isstring( L, 11 ) )
9489 const char* funcstr = lua_tostring( L, 11 );
9490 if ( strcmp(
"pltr0", funcstr ) == 0 )
9494 else if ( strcmp(
"pltr1", funcstr ) == 0 )
9498 else if ( strcmp(
"pltr2", funcstr ) == 0 )
9513 if(lua_gettop(L)>=12){
9518 lua_pushstring( L,
"xg" );
9519 lua_gettable( L, 12 );
9520 if ( !lua_istable( L, -1 ) )
9523 lua_pushstring( L,
"expected a table xg" );
9526 lua_rawgeti( L, -1, 1 );
9527 if ( lua_istable( L, -1 ) )
9529 else if ( lua_isnumber( L, -1 ) )
9535 lua_pushstring( L,
"expected a one or two dimensional array/table in xg" );
9539 if ( gridmode == 1 )
9541 cgrid117.
xg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &nx );
9549 lua_pushfstring( L,
"Table xg must be of length%d.",
Xlen );
9562 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
9565 lua_pushfstring( L,
"Vectors must match matrix." );
9573 lua_pushstring( L,
"yg" );
9574 lua_gettable( L, 12 );
9575 if ( !lua_istable( L, -1 ) )
9578 lua_pushstring( L,
"expected a table yg" );
9581 lua_rawgeti( L, -1, 1 );
9582 if ( gridmode == 2 )
9584 if ( !lua_istable( L, -1 ) )
9588 lua_pushstring( L,
"expected a two dimensional array/table in yg" );
9594 if ( !lua_isnumber( L, -1 ) )
9598 lua_pushstring( L,
"expected a one dimensional array/table in yg" );
9603 if ( gridmode == 1 )
9605 cgrid117.
yg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &ny );
9613 lua_pushfstring( L,
"Table yg must be of length%d.",
Ylen );
9626 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
9629 lua_pushfstring( L,
"Vectors must match matrix." );
9636 if ( gridmode == 1 )
9638 else if ( gridmode == 2 )
9642 plshades((
double const **)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,(
double const *)arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17);
9649 for ( i = 0; i < ii1; i++ )
9668 for ( i = 0; i <
Xlen; i++ )
9674 for ( i = 0; i <
Xlen; i++ )
9687 for ( i = 0; i < ii1; i++ )
9706 for ( i = 0; i <
Xlen; i++ )
9712 for ( i = 0; i <
Xlen; i++ )
9750 cgrid121.
xg = cgrid121.
yg = cgrid121.
zg = NULL;
9751 cgrid121.
nx = cgrid121.
ny = cgrid121.
nz = 0;
9752 cgrid221.
xg = cgrid221.
yg = cgrid221.
zg = NULL;
9753 cgrid221.
nx = cgrid221.
ny = 0;
9776 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"plshade",10,
"PLFLT");
9777 if(!lua_isnumber(L,11))
SWIG_fail_arg(
"plshade",11,
"PLINT");
9778 if(!lua_isnumber(L,12))
SWIG_fail_arg(
"plshade",12,
"PLFLT");
9779 if(!lua_isnumber(L,13))
SWIG_fail_arg(
"plshade",13,
"PLINT");
9780 if(!lua_isnumber(L,14))
SWIG_fail_arg(
"plshade",14,
"PLFLT");
9781 if(!lua_isnumber(L,15))
SWIG_fail_arg(
"plshade",15,
"PLBOOL");
9791 arg5 = (
PLFLT)lua_tonumber(L, 2);
9792 arg6 = (
PLFLT)lua_tonumber(L, 3);
9793 arg7 = (
PLFLT)lua_tonumber(L, 4);
9794 arg8 = (
PLFLT)lua_tonumber(L, 5);
9795 arg9 = (
PLFLT)lua_tonumber(L, 6);
9796 arg10 = (
PLFLT)lua_tonumber(L, 7);
9797 arg11 = (
PLINT)lua_tonumber(L, 8);
9798 arg12 = (
PLFLT)lua_tonumber(L, 9);
9799 arg13 = (
PLFLT)lua_tonumber(L, 10);
9800 arg14 = (
PLINT)lua_tonumber(L, 11);
9801 arg15 = (
PLFLT)lua_tonumber(L, 12);
9802 arg16 = (
PLINT)lua_tonumber(L, 13);
9803 arg17 = (
PLFLT)lua_tonumber(L, 14);
9804 arg19 = (
PLBOOL)lua_tonumber(L, 15);
9805 if(lua_gettop(L)>=16){
9810 if ( lua_isstring( L, 16 ) )
9812 const char* funcstr = lua_tostring( L, 16 );
9813 if ( strcmp(
"pltr0", funcstr ) == 0 )
9817 else if ( strcmp(
"pltr1", funcstr ) == 0 )
9821 else if ( strcmp(
"pltr2", funcstr ) == 0 )
9836 if(lua_gettop(L)>=17){
9841 lua_pushstring( L,
"xg" );
9842 lua_gettable( L, 17 );
9843 if ( !lua_istable( L, -1 ) )
9846 lua_pushstring( L,
"expected a table xg" );
9849 lua_rawgeti( L, -1, 1 );
9850 if ( lua_istable( L, -1 ) )
9852 else if ( lua_isnumber( L, -1 ) )
9858 lua_pushstring( L,
"expected a one or two dimensional array/table in xg" );
9862 if ( gridmode == 1 )
9864 cgrid121.
xg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &nx );
9872 lua_pushfstring( L,
"Table xg must be of length%d.",
Xlen );
9885 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
9888 lua_pushfstring( L,
"Vectors must match matrix." );
9896 lua_pushstring( L,
"yg" );
9897 lua_gettable( L, 17 );
9898 if ( !lua_istable( L, -1 ) )
9901 lua_pushstring( L,
"expected a table yg" );
9904 lua_rawgeti( L, -1, 1 );
9905 if ( gridmode == 2 )
9907 if ( !lua_istable( L, -1 ) )
9911 lua_pushstring( L,
"expected a two dimensional array/table in yg" );
9917 if ( !lua_isnumber( L, -1 ) )
9921 lua_pushstring( L,
"expected a one dimensional array/table in yg" );
9926 if ( gridmode == 1 )
9928 cgrid121.
yg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &ny );
9936 lua_pushfstring( L,
"Table yg must be of length%d.",
Ylen );
9949 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
9952 lua_pushfstring( L,
"Vectors must match matrix." );
9959 if ( gridmode == 1 )
9961 else if ( gridmode == 2 )
9965 plshade((
double const **)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18,arg19,arg20,arg21);
9972 for ( i = 0; i < ii1; i++ )
9988 for ( i = 0; i <
Xlen; i++ )
9994 for ( i = 0; i <
Xlen; i++ )
10007 for ( i = 0; i < ii1; i++ )
10023 for ( i = 0; i <
Xlen; i++ )
10029 for ( i = 0; i <
Xlen; i++ )
10052 if ( lua_isnil( L, 1 ) )
10056 else if ( lua_isstring( L, 1 ) )
10089 arg1 = (
PLFLT)lua_tonumber(L, 1);
10090 arg2 = (
PLFLT)lua_tonumber(L, 2);
10109 arg1 = (
PLFLT)lua_tonumber(L, 1);
10110 arg2 = (
PLFLT)lua_tonumber(L, 2);
10127 arg1 = (
PLINT)lua_tonumber(L, 1);
10154 arg1 = (
PLFLT)lua_tonumber(L, 1);
10155 arg2 = (
PLFLT)lua_tonumber(L, 2);
10156 arg3 = (
PLINT)lua_tonumber(L, 3);
10157 arg4 = (
PLINT)lua_tonumber(L, 4);
10158 arg5 = (
PLINT)lua_tonumber(L, 5);
10159 arg6 = (
PLINT)lua_tonumber(L, 6);
10160 plspage(arg1,arg2,arg3,arg4,arg5,arg6);
10176 arg1 = (
char *)lua_tostring(L, 1);
10194 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plspal1",2,
"PLBOOL");
10195 arg1 = (
char *)lua_tostring(L, 1);
10196 arg2 = (
PLBOOL)lua_tonumber(L, 2);
10197 plspal1((
char const *)arg1,arg2);
10212 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plspause",1,
"PLBOOL");
10213 arg1 = (
PLBOOL)lua_tonumber(L, 1);
10230 arg1 = (
PLINT)lua_tonumber(L, 1);
10249 arg1 = (
PLINT)lua_tonumber(L, 1);
10250 arg2 = (
PLINT)lua_tonumber(L, 2);
10269 arg1 = (
PLFLT)lua_tonumber(L, 1);
10270 arg2 = (
PLFLT)lua_tonumber(L, 2);
10289 arg1 = (
PLINT)lua_tonumber(L, 1);
10290 arg2 = (
PLINT)lua_tonumber(L, 2);
10311 arg1 = (
char *)lua_tostring(L, 1);
10312 arg2 = (
PLINT)lua_tonumber(L, 2);
10313 arg3 = (
PLINT)lua_tonumber(L, 3);
10314 plstart((
char const *)arg1,arg2,arg3);
10337 if(lua_gettop(L)>=1){
10342 if ( lua_isstring( L, 1 ) )
10344 const char* funcstr = lua_tostring( L, 1 );
10375 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
10378 arg1 =
Alen = temp;
10381 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
10384 if ( temp3 !=
Alen )
10386 lua_pushfstring( L,
"Tables must be of same length." );
10390 arg4 = (
char *)lua_tostring(L, 3);
10391 plstring(arg1,(
double const *)arg2,(
double const *)arg3,(
char const *)arg4);
10427 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
10430 arg1 =
Alen = temp;
10433 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
10436 if ( temp3 !=
Alen )
10438 lua_pushfstring( L,
"Tables must be of same length." );
10443 arg4 = (
PLFLT *) LUA_get_double_num_array_var( L, 3, &temp4 );
10446 if ( temp4 !=
Alen )
10448 lua_pushfstring( L,
"Tables must be of same length." );
10452 arg5 = (
char *)lua_tostring(L, 4);
10453 plstring3(arg1,(
double const *)arg2,(
double const *)arg3,(
double const *)arg4,(
char const *)arg5);
10489 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plstripa",1,
"PLINT");
10490 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plstripa",2,
"PLINT");
10491 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plstripa",3,
"PLFLT");
10492 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plstripa",4,
"PLFLT");
10493 arg1 = (
PLINT)lua_tonumber(L, 1);
10494 arg2 = (
PLINT)lua_tonumber(L, 2);
10495 arg3 = (
PLFLT)lua_tonumber(L, 3);
10496 arg4 = (
PLFLT)lua_tonumber(L, 4);
10525 char **arg17 = (
char **)0 ;
10540 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plstripc",3,
"PLFLT");
10541 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plstripc",4,
"PLFLT");
10542 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plstripc",5,
"PLFLT");
10543 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plstripc",6,
"PLFLT");
10544 if(!lua_isnumber(L,7))
SWIG_fail_arg(
"plstripc",7,
"PLFLT");
10545 if(!lua_isnumber(L,8))
SWIG_fail_arg(
"plstripc",8,
"PLFLT");
10546 if(!lua_isnumber(L,9))
SWIG_fail_arg(
"plstripc",9,
"PLFLT");
10547 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"plstripc",10,
"PLBOOL");
10548 if(!lua_isnumber(L,11))
SWIG_fail_arg(
"plstripc",11,
"PLBOOL");
10549 if(!lua_isnumber(L,12))
SWIG_fail_arg(
"plstripc",12,
"PLINT");
10550 if(!lua_isnumber(L,13))
SWIG_fail_arg(
"plstripc",13,
"PLINT");
10551 if(lua_gettop(L)>=16 && !lua_istable(L,16))
SWIG_fail_arg(
"plstripc",16,
"char const *[4]");
10555 arg2 = (
char *)lua_tostring(L, 1);
10556 arg3 = (
char *)lua_tostring(L, 2);
10557 arg4 = (
PLFLT)lua_tonumber(L, 3);
10558 arg5 = (
PLFLT)lua_tonumber(L, 4);
10559 arg6 = (
PLFLT)lua_tonumber(L, 5);
10560 arg7 = (
PLFLT)lua_tonumber(L, 6);
10561 arg8 = (
PLFLT)lua_tonumber(L, 7);
10562 arg9 = (
PLFLT)lua_tonumber(L, 8);
10563 arg10 = (
PLFLT)lua_tonumber(L, 9);
10564 arg11 = (
PLBOOL)lua_tonumber(L, 10);
10565 arg12 = (
PLBOOL)lua_tonumber(L, 11);
10566 arg13 = (
PLINT)lua_tonumber(L, 12);
10567 arg14 = (
PLINT)lua_tonumber(L, 13);
10569 arg15 = (
PLINT *) LUA_get_int_num_array_var( L, 14, &temp15 );
10575 arg16 = (
PLINT *) LUA_get_int_num_array_var( L, 15, &temp16 );
10578 if ( temp16 !=
Alen )
10580 lua_pushfstring( L,
"Tables must be of same length." );
10584 if(lua_gettop(L)>=16){
10591 lua_pushfstring( L,
"Requires a sequence of 4 strings." );
10596 lua_pushfstring( L,
"colline and styline args must be length 4." );
10600 arg17 = malloc(
sizeof (
char* ) * 4 );
10601 for ( i = 1; i <= 4; i++ )
10603 lua_rawgeti( L, 16, i );
10604 if ( lua_isstring( L, -1 ) )
10606 arg17[i - 1] = (
char *) lua_tostring( L, -1 );
10611 lua_pushfstring( L,
"Requires a sequence of 4 strings." );
10619 if(lua_gettop(L)>=17){
10620 arg18 = (
char *)lua_tostring(L, 17);
10622 if(lua_gettop(L)>=18){
10623 arg19 = (
char *)lua_tostring(L, 18);
10625 if(lua_gettop(L)>=19){
10626 arg20 = (
char *)lua_tostring(L, 19);
10628 plstripc(arg1,(
char const *)arg2,(
char const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,(
int const *)arg15,(
int const *)arg16,(
char const *(*))arg17,(
char const *)arg18,(
char const *)arg19,(
char const *)arg20);
10630 lua_pushnumber(L, (lua_Number) *arg1); SWIG_arg++;
10640 free( arg17 ); arg17 = NULL;
10655 free( arg17 ); arg17 = NULL;
10668 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plstripd",1,
"PLINT");
10669 arg1 = (
PLINT)lua_tonumber(L, 1);
10689 arg2 = (
PLINT *) LUA_get_int_num_array_var( L, 1, &arg1 );
10695 arg3 = (
PLINT *) LUA_get_int_num_array_var( L, 2, &temp3 );
10698 if ( temp3 !=
Alen )
10700 lua_pushfstring( L,
"Tables must be of same length." );
10704 plstyl(arg1,(
int const *)arg2,(
int const *)arg3);
10734 arg2 = NULL; arg3 = 0;
10740 if(lua_gettop(L)>=3 && !lua_isnumber(L,3))
SWIG_fail_arg(
"plsvect",3,
"PLBOOL");
10743 if ( lua_isnil( L, 1 ) )
10750 arg1 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
10756 if(lua_gettop(L)>=2){
10759 if ( lua_isnil( L, 2 ) )
10765 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp );
10768 if ( temp !=
Alen )
10770 lua_pushfstring( L,
"Tables must be of same length." );
10777 if(lua_gettop(L)>=3){
10778 arg4 = (
PLBOOL)lua_tonumber(L, 3);
10780 plsvect((
double const *)arg1,(
double const *)arg2,arg3,arg4);
10808 arg1 = (
PLFLT)lua_tonumber(L, 1);
10809 arg2 = (
PLFLT)lua_tonumber(L, 2);
10810 arg3 = (
PLFLT)lua_tonumber(L, 3);
10811 arg4 = (
PLFLT)lua_tonumber(L, 4);
10812 plsvpa(arg1,arg2,arg3,arg4);
10830 arg1 = (
PLINT)lua_tonumber(L, 1);
10831 arg2 = (
PLINT)lua_tonumber(L, 2);
10850 arg1 = (
PLINT)lua_tonumber(L, 1);
10851 arg2 = (
PLINT)lua_tonumber(L, 2);
10874 arg2 = (
PLFLT *) LUA_get_double_num_array_var( L, 1, &temp );
10877 arg1 =
Alen = temp;
10880 arg3 = (
PLFLT *) LUA_get_double_num_array_var( L, 2, &temp3 );
10883 if ( temp3 !=
Alen )
10885 lua_pushfstring( L,
"Tables must be of same length." );
10889 arg4 = (
PLINT)lua_tonumber(L, 3);
10890 plsym(arg1,(
double const *)arg2,(
double const *)arg3,arg4);
10920 arg1 = (
PLINT)lua_tonumber(L, 1);
10921 arg2 = (
PLINT)lua_tonumber(L, 2);
10952 arg1 = (
char *)lua_tostring(L, 1);
10969 arg1 = (
PLFLT)lua_tonumber(L, 1);
10995 cgrid17.
xg = cgrid17.
yg = cgrid17.
zg = NULL;
10996 cgrid17.
nx = cgrid17.
ny = cgrid17.
nz = 0;
10997 cgrid27.
xg = cgrid27.
yg = cgrid27.
zg = NULL;
10998 cgrid27.
nx = cgrid27.
ny = 0;
11025 if ( ( arg3 !=
Xlen ) || ( arg4 !=
Ylen ) )
11027 lua_pushfstring( L,
"Vectors must match matrix." );
11031 arg5 = (
PLFLT)lua_tonumber(L, 3);
11032 if(lua_gettop(L)>=4){
11037 if ( lua_isstring( L, 4 ) )
11039 const char* funcstr = lua_tostring( L, 4 );
11040 if ( strcmp(
"pltr0", funcstr ) == 0 )
11044 else if ( strcmp(
"pltr1", funcstr ) == 0 )
11048 else if ( strcmp(
"pltr2", funcstr ) == 0 )
11063 if(lua_gettop(L)>=5){
11068 lua_pushstring( L,
"xg" );
11069 lua_gettable( L, 5 );
11070 if ( !lua_istable( L, -1 ) )
11073 lua_pushstring( L,
"expected a table xg" );
11076 lua_rawgeti( L, -1, 1 );
11077 if ( lua_istable( L, -1 ) )
11079 else if ( lua_isnumber( L, -1 ) )
11085 lua_pushstring( L,
"expected a one or two dimensional array/table in xg" );
11089 if ( gridmode == 1 )
11091 cgrid17.
xg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &nx );
11099 lua_pushfstring( L,
"Table xg must be of length%d.",
Xlen );
11112 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
11115 lua_pushfstring( L,
"Vectors must match matrix." );
11123 lua_pushstring( L,
"yg" );
11124 lua_gettable( L, 5 );
11125 if ( !lua_istable( L, -1 ) )
11128 lua_pushstring( L,
"expected a table yg" );
11131 lua_rawgeti( L, -1, 1 );
11132 if ( gridmode == 2 )
11134 if ( !lua_istable( L, -1 ) )
11138 lua_pushstring( L,
"expected a two dimensional array/table in yg" );
11144 if ( !lua_isnumber( L, -1 ) )
11148 lua_pushstring( L,
"expected a one dimensional array/table in yg" );
11153 if ( gridmode == 1 )
11155 cgrid17.
yg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &ny );
11163 lua_pushfstring( L,
"Table yg must be of length%d.",
Ylen );
11176 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
11179 lua_pushfstring( L,
"Vectors must match matrix." );
11186 if ( gridmode == 1 )
11188 else if ( gridmode == 2 )
11192 plvect((
double const **)arg1,(
double const **)arg2,arg3,arg4,arg5,arg6,arg7);
11199 for ( i = 0; i < ii1; i++ )
11209 for ( i = 0; i < ii2; i++ )
11225 for ( i = 0; i <
Xlen; i++ )
11231 for ( i = 0; i <
Xlen; i++ )
11244 for ( i = 0; i < ii1; i++ )
11254 for ( i = 0; i < ii2; i++ )
11270 for ( i = 0; i <
Xlen; i++ )
11276 for ( i = 0; i <
Xlen; i++ )
11300 arg1 = (
PLFLT)lua_tonumber(L, 1);
11301 arg2 = (
PLFLT)lua_tonumber(L, 2);
11302 arg3 = (
PLFLT)lua_tonumber(L, 3);
11303 arg4 = (
PLFLT)lua_tonumber(L, 4);
11304 arg5 = (
PLFLT)lua_tonumber(L, 5);
11305 plvpas(arg1,arg2,arg3,arg4,arg5);
11327 arg1 = (
PLFLT)lua_tonumber(L, 1);
11328 arg2 = (
PLFLT)lua_tonumber(L, 2);
11329 arg3 = (
PLFLT)lua_tonumber(L, 3);
11330 arg4 = (
PLFLT)lua_tonumber(L, 4);
11331 plvpor(arg1,arg2,arg3,arg4);
11381 arg1 = (
PLFLT)lua_tonumber(L, 1);
11382 arg2 = (
PLFLT)lua_tonumber(L, 2);
11383 arg3 = (
PLFLT)lua_tonumber(L, 3);
11384 arg4 = (
PLFLT)lua_tonumber(L, 4);
11385 arg5 = (
PLFLT)lua_tonumber(L, 5);
11386 arg6 = (
PLFLT)lua_tonumber(L, 6);
11387 arg7 = (
PLFLT)lua_tonumber(L, 7);
11388 arg8 = (
PLFLT)lua_tonumber(L, 8);
11389 arg9 = (
PLFLT)lua_tonumber(L, 9);
11390 arg10 = (
PLFLT)lua_tonumber(L, 10);
11391 arg11 = (
PLFLT)lua_tonumber(L, 11);
11392 plw3d(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
11408 arg1 = (
PLFLT)lua_tonumber(L, 1);
11431 arg1 = (
PLFLT)lua_tonumber(L, 1);
11432 arg2 = (
PLFLT)lua_tonumber(L, 2);
11433 arg3 = (
PLFLT)lua_tonumber(L, 3);
11434 arg4 = (
PLFLT)lua_tonumber(L, 4);
11435 plwind(arg1,arg2,arg3,arg4);
11453 if(!lua_isnumber(L,1))
SWIG_fail_arg(
"plxormod",1,
"PLBOOL");
11454 arg1 = (
PLBOOL)lua_tonumber(L, 1);
11457 lua_pushnumber(L, (lua_Number) *arg2); SWIG_arg++;
11485 if ( lua_isnil( L, 1 ) )
11489 else if ( lua_isstring( L, 1 ) )
11498 arg2 = (
char *)lua_tostring(L, 2);
11499 arg3 = (
PLFLT)lua_tonumber(L, 3);
11500 arg4 = (
PLFLT)lua_tonumber(L, 4);
11501 arg5 = (
PLFLT)lua_tonumber(L, 5);
11502 arg6 = (
PLFLT)lua_tonumber(L, 6);
11503 plmap(arg1,(
char const *)arg2,arg3,arg4,arg5,arg6);
11533 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plmapline",3,
"PLFLT");
11534 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plmapline",4,
"PLFLT");
11535 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plmapline",5,
"PLFLT");
11536 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plmapline",6,
"PLFLT");
11541 if ( lua_isnil( L, 1 ) )
11545 else if ( lua_isstring( L, 1 ) )
11554 arg2 = (
char *)lua_tostring(L, 2);
11555 arg3 = (
PLFLT)lua_tonumber(L, 3);
11556 arg4 = (
PLFLT)lua_tonumber(L, 4);
11557 arg5 = (
PLFLT)lua_tonumber(L, 5);
11558 arg6 = (
PLFLT)lua_tonumber(L, 6);
11560 if ( lua_isnil( L, 7 ) )
11567 arg7 = (
PLINT *) LUA_get_int_num_array_var( L, 7, &temp7 );
11573 plmapline(arg1,(
char const *)arg2,arg3,arg4,arg5,arg6,(
int const *)arg7,arg8);
11611 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plmapstring",4,
"PLFLT");
11612 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plmapstring",5,
"PLFLT");
11613 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plmapstring",6,
"PLFLT");
11614 if(!lua_isnumber(L,7))
SWIG_fail_arg(
"plmapstring",7,
"PLFLT");
11619 if ( lua_isnil( L, 1 ) )
11623 else if ( lua_isstring( L, 1 ) )
11632 arg2 = (
char *)lua_tostring(L, 2);
11633 arg3 = (
char *)lua_tostring(L, 3);
11634 arg4 = (
PLFLT)lua_tonumber(L, 4);
11635 arg5 = (
PLFLT)lua_tonumber(L, 5);
11636 arg6 = (
PLFLT)lua_tonumber(L, 6);
11637 arg7 = (
PLFLT)lua_tonumber(L, 7);
11639 if ( lua_isnil( L, 8 ) )
11646 arg8 = (
PLINT *) LUA_get_int_num_array_var( L, 8, &temp8 );
11652 plmapstring(arg1,(
char const *)arg2,(
char const *)arg3,arg4,arg5,arg6,arg7,(
int const *)arg8,arg9);
11690 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plmaptex",3,
"PLFLT");
11691 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plmaptex",4,
"PLFLT");
11692 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plmaptex",5,
"PLFLT");
11694 if(!lua_isnumber(L,7))
SWIG_fail_arg(
"plmaptex",7,
"PLFLT");
11695 if(!lua_isnumber(L,8))
SWIG_fail_arg(
"plmaptex",8,
"PLFLT");
11696 if(!lua_isnumber(L,9))
SWIG_fail_arg(
"plmaptex",9,
"PLFLT");
11697 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"plmaptex",10,
"PLFLT");
11698 if(!lua_isnumber(L,11))
SWIG_fail_arg(
"plmaptex",11,
"PLINT");
11703 if ( lua_isnil( L, 1 ) )
11707 else if ( lua_isstring( L, 1 ) )
11716 arg2 = (
char *)lua_tostring(L, 2);
11717 arg3 = (
PLFLT)lua_tonumber(L, 3);
11718 arg4 = (
PLFLT)lua_tonumber(L, 4);
11719 arg5 = (
PLFLT)lua_tonumber(L, 5);
11720 arg6 = (
char *)lua_tostring(L, 6);
11721 arg7 = (
PLFLT)lua_tonumber(L, 7);
11722 arg8 = (
PLFLT)lua_tonumber(L, 8);
11723 arg9 = (
PLFLT)lua_tonumber(L, 9);
11724 arg10 = (
PLFLT)lua_tonumber(L, 10);
11725 arg11 = (
PLINT)lua_tonumber(L, 11);
11726 plmaptex(arg1,(
char const *)arg2,arg3,arg4,arg5,(
char const *)arg6,arg7,arg8,arg9,arg10,arg11);
11756 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plmapfill",3,
"PLFLT");
11757 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plmapfill",4,
"PLFLT");
11758 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plmapfill",5,
"PLFLT");
11759 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plmapfill",6,
"PLFLT");
11764 if ( lua_isnil( L, 1 ) )
11768 else if ( lua_isstring( L, 1 ) )
11777 arg2 = (
char *)lua_tostring(L, 2);
11778 arg3 = (
PLFLT)lua_tonumber(L, 3);
11779 arg4 = (
PLFLT)lua_tonumber(L, 4);
11780 arg5 = (
PLFLT)lua_tonumber(L, 5);
11781 arg6 = (
PLFLT)lua_tonumber(L, 6);
11783 if ( lua_isnil( L, 7 ) )
11790 arg7 = (
PLINT *) LUA_get_int_num_array_var( L, 7, &temp7 );
11796 plmapfill(arg1,(
char const *)arg2,arg3,arg4,arg5,arg6,(
int const *)arg7,arg8);
11829 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plmeridians",2,
"PLFLT");
11830 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plmeridians",3,
"PLFLT");
11831 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plmeridians",4,
"PLFLT");
11832 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plmeridians",5,
"PLFLT");
11833 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plmeridians",6,
"PLFLT");
11834 if(!lua_isnumber(L,7))
SWIG_fail_arg(
"plmeridians",7,
"PLFLT");
11839 if ( lua_isnil( L, 1 ) )
11843 else if ( lua_isstring( L, 1 ) )
11852 arg2 = (
PLFLT)lua_tonumber(L, 2);
11853 arg3 = (
PLFLT)lua_tonumber(L, 3);
11854 arg4 = (
PLFLT)lua_tonumber(L, 4);
11855 arg5 = (
PLFLT)lua_tonumber(L, 5);
11856 arg6 = (
PLFLT)lua_tonumber(L, 6);
11857 arg7 = (
PLFLT)lua_tonumber(L, 7);
11900 if(!lua_isnumber(L,10))
SWIG_fail_arg(
"plimage",10,
"PLFLT");
11901 if(!lua_isnumber(L,11))
SWIG_fail_arg(
"plimage",11,
"PLFLT");
11911 arg4 = (
PLFLT)lua_tonumber(L, 2);
11912 arg5 = (
PLFLT)lua_tonumber(L, 3);
11913 arg6 = (
PLFLT)lua_tonumber(L, 4);
11914 arg7 = (
PLFLT)lua_tonumber(L, 5);
11915 arg8 = (
PLFLT)lua_tonumber(L, 6);
11916 arg9 = (
PLFLT)lua_tonumber(L, 7);
11917 arg10 = (
PLFLT)lua_tonumber(L, 8);
11918 arg11 = (
PLFLT)lua_tonumber(L, 9);
11919 arg12 = (
PLFLT)lua_tonumber(L, 10);
11920 arg13 = (
PLFLT)lua_tonumber(L, 11);
11921 plimage((
double const **)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
11928 for ( i = 0; i < ii1; i++ )
11941 for ( i = 0; i < ii1; i++ )
11971 cgrid113.
xg = cgrid113.
yg = cgrid113.
zg = NULL;
11972 cgrid113.
nx = cgrid113.
ny = cgrid113.
nz = 0;
11973 cgrid213.
xg = cgrid213.
yg = cgrid213.
zg = NULL;
11974 cgrid213.
nx = cgrid213.
ny = 0;
11983 if(!lua_isnumber(L,2))
SWIG_fail_arg(
"plimagefr",2,
"PLFLT");
11984 if(!lua_isnumber(L,3))
SWIG_fail_arg(
"plimagefr",3,
"PLFLT");
11985 if(!lua_isnumber(L,4))
SWIG_fail_arg(
"plimagefr",4,
"PLFLT");
11986 if(!lua_isnumber(L,5))
SWIG_fail_arg(
"plimagefr",5,
"PLFLT");
11987 if(!lua_isnumber(L,6))
SWIG_fail_arg(
"plimagefr",6,
"PLFLT");
11988 if(!lua_isnumber(L,7))
SWIG_fail_arg(
"plimagefr",7,
"PLFLT");
11989 if(!lua_isnumber(L,8))
SWIG_fail_arg(
"plimagefr",8,
"PLFLT");
11990 if(!lua_isnumber(L,9))
SWIG_fail_arg(
"plimagefr",9,
"PLFLT");
12000 arg4 = (
PLFLT)lua_tonumber(L, 2);
12001 arg5 = (
PLFLT)lua_tonumber(L, 3);
12002 arg6 = (
PLFLT)lua_tonumber(L, 4);
12003 arg7 = (
PLFLT)lua_tonumber(L, 5);
12004 arg8 = (
PLFLT)lua_tonumber(L, 6);
12005 arg9 = (
PLFLT)lua_tonumber(L, 7);
12006 arg10 = (
PLFLT)lua_tonumber(L, 8);
12007 arg11 = (
PLFLT)lua_tonumber(L, 9);
12008 if(lua_gettop(L)>=10){
12013 if ( lua_isstring( L, 10 ) )
12015 const char* funcstr = lua_tostring( L, 10 );
12016 if ( strcmp(
"pltr0", funcstr ) == 0 )
12020 else if ( strcmp(
"pltr1", funcstr ) == 0 )
12024 else if ( strcmp(
"pltr2", funcstr ) == 0 )
12039 if(lua_gettop(L)>=11){
12044 lua_pushstring( L,
"xg" );
12045 lua_gettable( L, 11 );
12046 if ( !lua_istable( L, -1 ) )
12049 lua_pushstring( L,
"expected a table xg" );
12052 lua_rawgeti( L, -1, 1 );
12053 if ( lua_istable( L, -1 ) )
12055 else if ( lua_isnumber( L, -1 ) )
12061 lua_pushstring( L,
"expected a one or two dimensional array/table in xg" );
12065 if ( gridmode == 1 )
12067 cgrid113.
xg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &nx );
12068 if ( !cgrid113.
xg )
12075 lua_pushfstring( L,
"Table xg must be of length%d.",
Xlen );
12083 if ( !cgrid213.
xg )
12088 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
12091 lua_pushfstring( L,
"Vectors must match matrix." );
12099 lua_pushstring( L,
"yg" );
12100 lua_gettable( L, 11 );
12101 if ( !lua_istable( L, -1 ) )
12104 lua_pushstring( L,
"expected a table yg" );
12107 lua_rawgeti( L, -1, 1 );
12108 if ( gridmode == 2 )
12110 if ( !lua_istable( L, -1 ) )
12114 lua_pushstring( L,
"expected a two dimensional array/table in yg" );
12120 if ( !lua_isnumber( L, -1 ) )
12124 lua_pushstring( L,
"expected a one dimensional array/table in yg" );
12129 if ( gridmode == 1 )
12131 cgrid113.
yg = (
PLFLT *) LUA_get_double_num_array_var( L, -1, &ny );
12132 if ( !cgrid113.
yg )
12139 lua_pushfstring( L,
"Table yg must be of length%d.",
Ylen );
12147 if ( !cgrid213.
yg )
12152 if ( ( nx !=
Xlen ) || ( ny !=
Ylen ) )
12155 lua_pushfstring( L,
"Vectors must match matrix." );
12162 if ( gridmode == 1 )
12164 else if ( gridmode == 2 )
12168 plimagefr((
double const **)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
12175 for ( i = 0; i < ii1; i++ )
12191 for ( i = 0; i <
Xlen; i++ )
12197 for ( i = 0; i <
Xlen; i++ )
12210 for ( i = 0; i < ii1; i++ )
12226 for ( i = 0; i <
Xlen; i++ )
12232 for ( i = 0; i <
Xlen; i++ )
12278 arg1 = (
char *)lua_tostring(L, 1);
12279 arg2 = (
char *)lua_tostring(L, 2);
12280 plSetUsage((
char const *)arg1,(
char const *)arg2);
12329 lua_pushnumber(L, (lua_Number) *arg4); SWIG_arg++;
12330 lua_pushnumber(L, (lua_Number) *arg5); SWIG_arg++;
12336 for ( i = 0; i < ii1; i++ )
12349 for ( i = 0; i < ii1; i++ )
12372 lua_pushnumber(L, (lua_Number) result); SWIG_arg++;
12386 if(!lua_isstring(L,1))
SWIG_fail_arg(
"plwarn",1,
"char const *");
12388 arg1 = (
char *) lua_tostring( L, 1 );
12390 plwarn((
char const *)arg1);
12405 if(!lua_isstring(L,1))
SWIG_fail_arg(
"plabort",1,
"char const *");
12407 arg1 = (
char *) lua_tostring( L, 1 );
12988#define SWIGRUNTIME_DEBUG
12991#ifndef SWIG_INIT_CLIENT_DATA_TYPE
12992#define SWIG_INIT_CLIENT_DATA_TYPE void *
13003 if (!pca->
next && pcb->
next)
return 1;
13004 if (pca->
next && !pcb->
next)
return -1;
13006 if (pca->
type < pcb->
type)
return -1;
13007 if (pca->
type > pcb->
type)
return 1;
13015 const int hmax = size/9;
13017 for(h = 1; h <= hmax; h = 3*h+1);
13018 for(; h > 0; h /= 3)
13020 for(i = h; i < size; ++i)
13023 unsigned int hash = cast[i].
value;
13025 while(j >= h && hash < cast[j-h].
value)
13032 cast[j].
value = hash;
13056 if (!module_head) {
13069 }
while (iter!= module_head);
13080 if (init == 0)
return;
13083#ifdef SWIGRUNTIME_DEBUG
13084 printf(
"SWIG_InitializeModule: size %lu\n", (
unsigned long)
swig_module.size);
13090 int num_mapped = 0;
13092#ifdef SWIGRUNTIME_DEBUG
13093 printf(
"SWIG_InitializeModule: type %lu %s\n", (
unsigned long)i,
swig_module.type_initial[i]->name);
13102#ifdef SWIGRUNTIME_DEBUG
13103 printf(
"SWIG_InitializeModule: found type %s\n", type->name);
13106 type->clientdata =
swig_module.type_initial[i]->clientdata;
13107#ifdef SWIGRUNTIME_DEBUG
13108 printf(
"SWIG_InitializeModule: found and overwrite type %s \n", type->name);
13117 while (cast->
type) {
13121#ifdef SWIGRUNTIME_DEBUG
13122 printf(
"SWIG_InitializeModule: look cast %s\n", cast->
type->
name);
13129#ifdef SWIGRUNTIME_DEBUG
13130 printf(
"SWIG_InitializeModule: found cast %s\n", target_type->
name);
13133#ifdef SWIGRUNTIME_DEBUG
13134 printf(
"SWIG_InitializeModule: skip old type %s\n", target_type->
name);
13136 cast->
type = target_type;
13141#ifdef SWIGRUNTIME_DEBUG
13142 if (ocast) printf(
"SWIG_InitializeModule: skip old cast %s\n", target_type->
name);
13145 cast->
type = target_type;
13152 if (!target_type) {
13153#ifdef SWIGRUNTIME_DEBUG
13154 printf(
"SWIG_InitializeModule: adding cast %s\n", cast->
type->
name);
13160 if (type == cast->
type) {
13161#ifdef SWIGRUNTIME_DEBUG
13162 printf(
"%s : self cast at pos [%li]\n", type->name, cast - first);
13164 if (cast - first) {
13182 if (cast - first) {
13190 for (tmp = first; tmp < cast; tmp++) {
13197 cast->
value = (
unsigned int)(num_mapped - 1);
13199 num_mapped -= (int)(first - cast);
13200 if (num_mapped > 1) {
13206 first = type->cast;
13210 first->
next = cast;
13222#ifdef SWIGRUNTIME_DEBUG
13223 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
13227 printf(
"SWIG_InitializeModule: type %lu %s\n", (
unsigned long)i,
swig_module.type_initial[i]->name);
13228 while (cast->
type) {
13229 printf(
"SWIG_InitializeModule: cast type %s\n", cast->
type->
name);
13233 printf(
"---- Total casts: %d\n",j);
13235 printf(
"**** SWIG_InitializeModule: Cast List ******\n");
13247 static int init_run = 0;
13249 if (init_run)
return;
13257 for (cast =
head; (cast -
head) <=
head->value; cast++) {
13288#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC))
13294#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
13296 int globalRegister = 0;
13304#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) || defined(SWIG_LUA_ELUA_EMULATE)
13308#ifdef SWIG_DIRECTORS
13316#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
13323#ifdef SWIG_LUA_MODULE_GLOBAL
13324 globalRegister = 1;
13328#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA)
13332#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)
13340#if defined(SWIG_LUA_ELUA_EMULATE)
13343 SWIG_Lua_elua_emulate_register_clear(L);
13344 if(globalRegister) {
13346 lua_pushvalue(L,-2);
13353#if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)
13373 " pl = plplotluac";
alias void function(PLINT, PLFLT *, PLFLT *) fill_func
void plSetUsage(PLCHAR_VECTOR program_string, PLCHAR_VECTOR usage_string)
void pltr2(PLFLT x, PLFLT y, PLFLT *tx, PLFLT *ty, PLPointer pltr_data)
void pltr1(PLFLT x, PLFLT y, PLFLT *tx, PLFLT *ty, PLPointer pltr_data)
void pltr0(PLFLT x, PLFLT y, PLFLT *tx, PLFLT *ty, PLPointer PL_UNUSED(pltr_data))
void plwarn(PLCHAR_VECTOR errormsg)
static PLFLT value(double n1, double n2, double hue)
void plabort(PLCHAR_VECTOR errormsg)
void plMinMax2dGrid(PLFLT_MATRIX f, PLINT nx, PLINT ny, PLFLT *fnmax, PLFLT *fnmin)
PLINT plGetCursor(PLGraphicsIn *plg)
#define pl_setcontlabelformat
#define pl_setcontlabelparam
void *(* swig_converter_func)(void *, int *)
struct swig_type_info *(* swig_dycast_func)(void **)
SWIGRUNTIME int SWIG_Lua_class_equal(lua_State *L)
SWIGRUNTIME void SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata)
static int _wrap_ptex(lua_State *L)
static int _wrap_PLGraphicsIn_wX_get(lua_State *L)
static int _wrap_surf3dl(lua_State *L)
static int _wrap_scmap1(lua_State *L)
PLFLT ** read_double_Matrix(lua_State *L, int index, int *nx, int *ny)
static int _wrap_clear(lua_State *L)
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_szax(lua_State *L)
#define SWIG_DOSTRING_FAIL(S)
static int _wrap_wind(lua_State *L)
static swig_cast_info * swig_cast_initial[]
static int _wrap_PLGraphicsIn_button_get(lua_State *L)
void mylabel(PLINT axis, PLFLT value, char *label, PLINT length, PLPointer data)
static int _wrap_configtime(lua_State *L)
static int _wrap_sori(lua_State *L)
SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State *L, int index, void **ptr, swig_type_info *type, int flags)
static int _wrap_mesh(lua_State *L)
static int _wrap_gyax(lua_State *L)
static int _wrap_box(lua_State *L)
#define SWIG_ALLOC_ARRAY(TYPE, LEN)
static int _wrap_spage(lua_State *L)
static int _wrap_mkstrm(lua_State *L)
SWIGRUNTIME void SWIG_Lua_SetModule(lua_State *L, swig_module_info *module)
static int _wrap_PLGraphicsIn_keysym_get(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)
static swig_type_info _swigt__p_f_double_double_p_double_p_double_p_void__void
static int _wrap_PLGraphicsIn_subwindow_get(lua_State *L)
static int _wrap_rgbhls(lua_State *L)
static int _wrap_scmap1_range(lua_State *L)
SWIGRUNTIME void SWIG_Lua_pusherrstring(lua_State *L, const char *str)
static int _wrap_plend(lua_State *L)
SWIGINTERN int SWIG_Lua_class_do_get(lua_State *L, swig_type_info *type, int SWIGUNUSED first_arg, int *ret)
#define SWIG_DECLARE_TYPEMAP_ARR_FN(NAME, TYPE)
SWIGRUNTIME int SWIG_Lua_resolve_metamethod(lua_State *L)
static int _wrap_hlsrgb(lua_State *L)
SWIGINTERN void SWIG_Lua_add_namespace_classes(lua_State *L, swig_lua_namespace *ns)
#define SWIG_CheckState(r)
static int _wrap_meridians(lua_State *L)
#define SWIG_fail_ptr(func_name, argnum, type)
static swig_cast_info _swigc__p_f_double_double__int[]
#define SWIG_NewMemberObj(L, ptr, sz, type)
static int _wrap_env0(lua_State *L)
static swig_cast_info _swigc__p_int[]
SWIGINTERN void SWIG_Lua_add_class_user_metamethods(lua_State *L, swig_lua_class *clss)
static int _wrap_gcolbga(lua_State *L)
SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb)
static int _wrap_gvpd(lua_State *L)
void myct(PLFLT x, PLFLT y, PLFLT *tx, PLFLT *ty, void *pltr_data)
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_ssym(lua_State *L)
static swig_cast_info _swigc__p_double[]
static swig_lua_method swig_PLGraphicsIn_meta[]
#define SWIGTYPE_p_PLGraphicsIn
static int _wrap_plGetCursor(lua_State *L)
static int _wrap_gxax(lua_State *L)
void(* label_func)(PLINT, PLFLT, char *, PLINT, PLPointer)
static int _wrap_PLGraphicsIn_pY_set(lua_State *L)
static swig_lua_attribute swig_PLGraphicsIn_Sf_SwigStatic_attributes[]
SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2)
static int _wrap_seed(lua_State *L)
static int _wrap_sdiplt(lua_State *L)
static int _wrap_psty(lua_State *L)
static swig_lua_attribute swig_PLGraphicsIn_attributes[]
static int _wrap_cont(lua_State *L)
SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State *L, int index, void *ptr, size_t size, swig_type_info *type)
static int _wrap_scmap0a(lua_State *L)
static int _wrap_gradient(lua_State *L)
SWIGINTERN void SWIG_write_ptr_array(lua_State *L, void **array, int size, swig_type_info *type, int own)
static int _wrap_setcontlabelparam(lua_State *L)
SWIGINTERN int SWIG_CastCmpStruct(const void *pa, const void *pb)
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)
void(* mapform_func)(PLINT, PLFLT *, PLFLT *)
void mypltr(PLFLT x, PLFLT y, PLFLT *tx, PLFLT *ty, void *pltr_data)
static int _wrap_width(lua_State *L)
static int _wrap_hist(lua_State *L)
static int _wrap_text(lua_State *L)
#define SWIG_ConvertPtr(L, idx, ptr, type, flags)
static int _wrap_gspa(lua_State *L)
SWIGINTERN int SWIG_Lua_dostring(lua_State *L, const char *str)
static int _wrap_vpor(lua_State *L)
void(* pltr_func)(PLFLT, PLFLT, PLFLT *, PLFLT *, PLPointer)
static int _wrap_colorbar(lua_State *L)
static int _wrap_flush(lua_State *L)
static int _wrap_sym(lua_State *L)
static swig_cast_info _swigc__p_f_double_double_p_double_p_double_p_void__void[]
static int _wrap_PLGraphicsIn_state_get(lua_State *L)
static int _wrap_xormod(lua_State *L)
#define SWIG_fail_arg(func_name, argnum, type)
static int _wrap_spause(lua_State *L)
SWIGRUNTIME unsigned int SWIG_Hash(const char *str, unsigned int len)
#define SWIG_Lua_get_table(L, n)
static int _wrap_sdidev(lua_State *L)
static int _wrap_scmap1n(lua_State *L)
static int _wrap_setcontlabelformat(lua_State *L)
static int _wrap_gcmap1_range(lua_State *L)
#define SWIG_RUNTIME_VERSION
static int _wrap_sdimap(lua_State *L)
SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata)
SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
SWIGINTERN int SWIG_Lua_class_do_get_item(lua_State *L, swig_type_info *type, int SWIGUNUSED first_arg, int *ret)
static int _wrap_ssub(lua_State *L)
static int _wrap_new_PLGraphicsIn(lua_State *L)
static int _wrap_scmap1a(lua_State *L)
#define SWIG_Lua_add_function(L, n, f)
static int _wrap_abort(lua_State *L)
SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz)
static int _wrap_glevel(lua_State *L)
static int _wrap_PLGraphicsIn_dX_get(lua_State *L)
static int _wrap_pat(lua_State *L)
static char mylabel_funcstr[255]
static int _wrap_gchr(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_PLGraphicsIn_pY_get(lua_State *L)
static int _wrap_sfci(lua_State *L)
static int _wrap_shade(lua_State *L)
SWIGINTERN void SWIG_Lua_populate_inheritable_metamethods(lua_State *L)
static swig_type_info * swig_types[13]
static int _wrap_gpage(lua_State *L)
static int _wrap_plResetOpts(lua_State *L)
static swig_cast_info _swigc__p_f_int_p_double_p_double__void[]
static int _wrap_lightsource(lua_State *L)
static int _wrap_sfont(lua_State *L)
SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name)
static int _wrap_calc_world(lua_State *L)
static int _wrap_plot3dcl(lua_State *L)
static int _wrap_gvpw(lua_State *L)
static int _wrap_plOptUsage(lua_State *L)
static swig_module_info swig_module
static int _wrap_image(lua_State *L)
static const char * swig_PLGraphicsIn_base_names[]
static int _wrap_PLGraphicsIn_state_set(lua_State *L)
static swig_lua_class * swig_PLGraphicsIn_bases[]
static int _wrap_parseopts(lua_State *L)
static int _wrap_MinMax2dGrid(lua_State *L)
static swig_type_info _swigt__p_double
static int _wrap_gdiori(lua_State *L)
#define SWIG_SetModule(clientdata, pointer)
static int _wrap_famadv(lua_State *L)
#define SWIG_INIT_CLIENT_DATA_TYPE
static int _wrap_scolbga(lua_State *L)
static int _wrap_font(lua_State *L)
static int _wrap_gzax(lua_State *L)
static char mypltr_funcstr[255]
static int _wrap_scmap1la(lua_State *L)
static int _wrap_slabelfunc(lua_State *L)
#define SWIG_POINTER_RELEASE
static swig_lua_class * swig_SwigModule_classes[]
SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
SWIGINTERN int SWIG_itable_size(lua_State *L, int index)
SWIGRUNTIME swig_module_info * SWIG_Lua_GetModule(lua_State *L)
static int _wrap_env(lua_State *L)
static int _wrap_PLGraphicsIn_string_get(lua_State *L)
static swig_type_info _swigt__p_p_char
#define lua_rawsetp(L, index, ptr)
static int _wrap_timefmt(lua_State *L)
static int _wrap_plend1(lua_State *L)
static int _wrap_box3(lua_State *L)
static int _wrap_map(lua_State *L)
SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata)
static int _wrap_gfam(lua_State *L)
static swig_type_info _swigt__p_p_double
#define SWIG_POINTER_CLEAR
SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb)
static int _wrap_stripc(lua_State *L)
SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz)
static int _wrap_scmap0n(lua_State *L)
static int _wrap_errx(lua_State *L)
static int _wrap_sstrm(lua_State *L)
void mapform(PLINT n, PLFLT *x, PLFLT *y)
static int _wrap_gstrm(lua_State *L)
SWIGINTERN void SWIG_Lua_get_inheritable_metamethods(lua_State *L)
static int _wrap_init(lua_State *L)
static int _wrap_sfam(lua_State *L)
static int _wrap_replot(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 swig_lua_class * swig_PLGraphicsIn_Sf_SwigStatic_classes[]
static int _wrap_svect(lua_State *L)
#define SWIG_LUA_CONSTTAB_INT(B, C)
static int _wrap_poin(lua_State *L)
static int _wrap_mapfill(lua_State *L)
SWIGINTERN int SWIG_Lua_namespace_get(lua_State *L)
static int _wrap_scol0a(lua_State *L)
static int _wrap_PLGraphicsIn_string_set(lua_State *L)
static int _wrap_star(lua_State *L)
static int _wrap_fontld(lua_State *L)
static int _wrap_line(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)
#define SWIG_LUA_CONSTTAB_FLOAT(B, C)
PLFLT(* f2eval_func)(PLINT, PLINT, PLPointer)
static int _wrap_plClearOpts(lua_State *L)
static int _wrap_legend(lua_State *L)
SWIGINTERN void SWIG_Lua_get_class_registry(lua_State *L)
static swig_cast_info _swigc__p_char[]
SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State *L, swig_lua_class *clss)
static int _wrap_poin3(lua_State *L)
static int _wrap_plot3d(lua_State *L)
static swig_type_info _swigt__p_f_int_p_q_const__double_p_q_const__double__void
PLINT(* defined_func)(PLFLT, PLFLT)
static int _wrap_vasp(lua_State *L)
#define SWIG_NewPointerObj(L, ptr, type, owner)
static int _wrap_imagefr(lua_State *L)
static swig_cast_info _swigc__p_p_double[]
static int _wrap_gver(lua_State *L)
SWIGINTERN void SWIG_Lua_AddMetatable(lua_State *L, swig_type_info *type)
static int _wrap_scolbg(lua_State *L)
#define SWIG_FREE_ARRAY(PTR)
static int _wrap_PLGraphicsIn_keysym_set(lua_State *L)
SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name)
static int _wrap_w3d(lua_State *L)
static swig_lua_const_info swig_SwigModule_constants[]
static int _wrap_PLGraphicsIn_dY_get(lua_State *L)
static char mapform_funcstr[255]
static int _wrap_stransform(lua_State *L)
SWIGINTERN void SWIG_Lua_class_register(lua_State *L, swig_lua_class *clss)
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)
static int _wrap_scolor(lua_State *L)
static int _wrap_line3(lua_State *L)
SWIGINTERN int SWIG_Lua_set_immutable(lua_State *L)
static swig_lua_const_info swig_PLGraphicsIn_Sf_SwigStatic_constants[]
void(* ct_func)(PLFLT, PLFLT, PLFLT *, PLFLT *, PLPointer)
#define SWIG_POINTER_NO_NULL
static int _wrap_gdidev(lua_State *L)
static int _wrap_axes(lua_State *L)
static int _wrap_PLGraphicsIn_type_get(lua_State *L)
static int _wrap_warn(lua_State *L)
SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State *L, swig_lua_namespace *ns)
static int _wrap_randd(lua_State *L)
#define SWIG_NullReferenceError
static int _wrap_arc(lua_State *L)
SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty)
static int _wrap_stripa(lua_State *L)
static int _wrap_PLGraphicsIn_type_set(lua_State *L)
static int _wrap_join(lua_State *L)
static void swig_delete_PLGraphicsIn(void *obj)
static int _wrap_cpstrm(lua_State *L)
static int _wrap_gdiplt(lua_State *L)
#define SWIG_POINTER_DISOWN
SWIGINTERN int SWIG_Lua_namespace_set(lua_State *L)
SWIGINTERN void ** SWIG_get_ptr_array_var(lua_State *L, int index, int *size, swig_type_info *type)
struct swig_type_info swig_type_info
static char myct_funcstr[255]
static int _wrap_gcompression(lua_State *L)
static int _wrap_string(lua_State *L)
SWIGINTERN int SWIG_Lua_class_disown(lua_State *L)
SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz)
static swig_type_info _swigt__p_PLGraphicsIn
SWIGINTERN void SWIG_Lua_class_register_instance(lua_State *L, swig_lua_class *clss)
static int _wrap_path(lua_State *L)
static swig_type_info _swigt__p_f_double_double__int
static int _wrap_PLGraphicsIn_subwindow_set(lua_State *L)
SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz)
static int _wrap_smaj(lua_State *L)
static int _wrap_gfci(lua_State *L)
static int _wrap_start(lua_State *L)
static int _wrap_meshc(lua_State *L)
static int _wrap_plot3dc(lua_State *L)
static int _wrap_PLGraphicsIn_wY_get(lua_State *L)
static int _wrap_ctime(lua_State *L)
SWIGINTERN int SWIG_read_ptr_array(lua_State *L, int index, void **array, int size, swig_type_info *type)
SWIGINTERN int SWIG_Lua_class_do_set(lua_State *L, swig_type_info *type, int first_arg, int *ret)
static int _wrap_lsty(lua_State *L)
static int _wrap_gfnam(lua_State *L)
static int _wrap_bin(lua_State *L)
static int _wrap_mapline(lua_State *L)
static int _wrap_gcol0(lua_State *L)
static int _wrap_PLGraphicsIn_dX_set(lua_State *L)
SWIGINTERN int SWIG_Lua_class_set(lua_State *L)
SWIGINTERN int SWIG_lua_isnilstring(lua_State *L, int idx)
SWIGINTERN void SWIG_CastHashSort(swig_cast_info *cast, int size)
#define SWIG_GetModule(clientdata)
SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State *L, void *ptr, size_t size, swig_type_info *type)
static int _wrap_PLGraphicsIn_wX_set(lua_State *L)
static int _wrap_bop(lua_State *L)
SWIGINTERN int SWIG_Lua_class_destruct(lua_State *L)
static swig_cast_info _swigc__p_unsigned_int[]
static int _wrap_ptex3(lua_State *L)
static swig_type_info _swigt__p_int
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_eop(lua_State *L)
SWIGRUNTIME void SWIG_PropagateClientData(void)
SWIGRUNTIME int SWIG_Lua_ConvertPtrAndOwn(lua_State *L, int index, void **ptr, swig_type_info *type, int flags, int *own)
static swig_cast_info _swigc__p_f_int_double_p_char_int_p_void__void[]
static int _wrap_plSetUsage(lua_State *L)
#define lua_pushglobaltable(L)
static int _wrap_poly3(lua_State *L)
static swig_lua_method swig_PLGraphicsIn_Sf_SwigStatic_methods[]
SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type)
#define LUA_ALLOC_ARRAY(TYPE, LEN)
static int _wrap_prec(lua_State *L)
static int _wrap_sdev(lua_State *L)
SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty)
#define SWIG_isptrtype(L, I)
static int _wrap_PLGraphicsIn_pX_set(lua_State *L)
#define SWIG_ERROR_RELEASE_NOT_OWNED
#define LUA_DECLARE_TYPEMAP_ARR_FN(NAME, TYPE)
static int _wrap_string3(lua_State *L)
static int _wrap_spal1(lua_State *L)
#define SWIG_TYPE_TABLE_NAME
static int _wrap_surf3d(lua_State *L)
static swig_type_info _swigt__p_unsigned_int
static swig_lua_namespace swig_PLGraphicsIn_Sf_SwigStatic
SWIGINTERN void SWIG_Lua_init_base_class(lua_State *L, swig_lua_class *clss)
static int _wrap_spal0(lua_State *L)
#define SWIG_CAST_NEW_MEMORY
static int _wrap_griddata(lua_State *L)
static swig_type_info _swigt__p_f_int_p_double_p_double__void
static int _wrap_adv(lua_State *L)
static int _wrap_gra(lua_State *L)
#define SWIG_contract_assert(expr, msg)
int(* swig_lua_base_iterator_func)(lua_State *, swig_type_info *, int, int *ret)
static int _wrap_smin(lua_State *L)
SWIGINTERN void SWIG_Lua_create_class_registry(lua_State *L)
static int _wrap_gcol0a(lua_State *L)
static int _wrap_vect(lua_State *L)
static swig_lua_namespace swig_SwigModule
#define LUA_FREE_ARRAY(PTR)
static int _wrap_lab(lua_State *L)
static swig_type_info _swigt__p_f_int_double_p_char_int_p_void__void
static int _wrap_setopt(lua_State *L)
static int _wrap_shades(lua_State *L)
static int _wrap_PLGraphicsIn_button_set(lua_State *L)
SWIGRUNTIME void SWIG_Lua_pushferrstring(lua_State *L, const char *fmt,...)
static swig_type_info * swig_type_initial[]
static int _wrap_mapstring(lua_State *L)
static int _wrap_col1(lua_State *L)
static int _wrap_btime(lua_State *L)
SWIGINTERN int SWIG_table_size(lua_State *L, int index)
static int _wrap_mtex3(lua_State *L)
static int _wrap_sdiplz(lua_State *L)
static int _wrap_styl(lua_State *L)
static int _wrap_vsta(lua_State *L)
static swig_cast_info _swigc__p_PLGraphicsIn[]
static int _wrap_sfnam(lua_State *L)
static int _wrap_fill(lua_State *L)
static int _wrap_mtex(lua_State *L)
static int _wrap_scmap1l(lua_State *L)
static swig_cast_info _swigc__p_p_char[]
static int _wrap_erry(lua_State *L)
static swig_lua_attribute swig_SwigModule_attributes[]
static int _wrap_PLGraphicsIn_pX_get(lua_State *L)
static swig_type_info _swigt__p_char
static int _wrap_col0(lua_State *L)
static swig_lua_method swig_PLGraphicsIn_methods[]
static int _wrap_gfont(lua_State *L)
SWIGINTERN int SWIG_Lua_class_tostring(lua_State *L)
void(* fill_func)(PLINT, const PLFLT *, const PLFLT *)
static int _wrap_svpa(lua_State *L)
static int _wrap_scmap0(lua_State *L)
static int _wrap_vpas(lua_State *L)
static int _wrap_schr(lua_State *L)
static int _wrap_sxax(lua_State *L)
static int _wrap_stripd(lua_State *L)
static int _wrap_syax(lua_State *L)
static int _wrap_gcolbg(lua_State *L)
static swig_lua_class _wrap_class_PLGraphicsIn
static int _wrap_scompression(lua_State *L)
static int _wrap_maptex(lua_State *L)
static int _wrap_PLGraphicsIn_dY_set(lua_State *L)
static swig_cast_info _swigc__p_f_int_p_q_const__double_p_q_const__double__void[]
static int _wrap_scol0(lua_State *L)
SWIGINTERN void SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[])
static int _wrap_sesc(lua_State *L)
SWIGINTERN void ** SWIG_get_ptr_array_fixed(lua_State *L, int index, int size, swig_type_info *type)
static int _wrap_sdiori(lua_State *L)
static int _proxy__wrap_new_PLGraphicsIn(lua_State *L)
SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State *L, const char *cname)
static int _wrap_PLGraphicsIn_wY_set(lua_State *L)
SWIGINTERN void SWIG_Lua_add_class_instance_details(lua_State *L, swig_lua_class *clss)
static int _wrap_gdev(lua_State *L)
#define SWIG_Lua_add_boolean(L, n, b)
static int _wrap_fill3(lua_State *L)
#define lua_rawgetp(L, index, ptr)
#define SWIGRUNTIMEINLINE
SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory)
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
void mapform(PLINT n, PLFLT *x, PLFLT *y)
char * strcpy(char *dst, const char *src)
static tclMatrixXtnsnDescr * head