5673 lines
153 KiB
C++
5673 lines
153 KiB
C++
/* ----------------------------------------------------------------------------
|
|
* This file was automatically generated by SWIG (https://www.swig.org).
|
|
* Version 4.1.1
|
|
*
|
|
* Do not make changes to this file unless you know what you are doing - modify
|
|
* the SWIG interface file instead.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
|
|
#define SWIG_VERSION 0x040101
|
|
#define SWIGPHP
|
|
|
|
#if defined __GNUC__ && !defined __cplusplus
|
|
# if __GNUC__ >= 4
|
|
# pragma GCC diagnostic push
|
|
# pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
|
|
# endif
|
|
#endif
|
|
#include "php.h"
|
|
#if defined __GNUC__ && !defined __cplusplus
|
|
# if __GNUC__ >= 4
|
|
# pragma GCC diagnostic pop
|
|
# endif
|
|
#endif
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* This section contains generic SWIG labels for method/variable
|
|
* declarations/attributes, and other compiler dependent labels.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* template workaround for compilers that cannot correctly implement the C++ standard */
|
|
#ifndef SWIGTEMPLATEDISAMBIGUATOR
|
|
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
|
|
# define SWIGTEMPLATEDISAMBIGUATOR template
|
|
# elif defined(__HP_aCC)
|
|
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
|
|
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
|
|
# define SWIGTEMPLATEDISAMBIGUATOR template
|
|
# else
|
|
# define SWIGTEMPLATEDISAMBIGUATOR
|
|
# endif
|
|
#endif
|
|
|
|
/* inline attribute */
|
|
#ifndef SWIGINLINE
|
|
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
|
|
# define SWIGINLINE inline
|
|
# else
|
|
# define SWIGINLINE
|
|
# endif
|
|
#endif
|
|
|
|
/* attribute recognised by some compilers to avoid 'unused' warnings */
|
|
#ifndef SWIGUNUSED
|
|
# if defined(__GNUC__)
|
|
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
|
# define SWIGUNUSED __attribute__ ((__unused__))
|
|
# else
|
|
# define SWIGUNUSED
|
|
# endif
|
|
# elif defined(__ICC)
|
|
# define SWIGUNUSED __attribute__ ((__unused__))
|
|
# else
|
|
# define SWIGUNUSED
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
|
# if defined(_MSC_VER)
|
|
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef SWIGUNUSEDPARM
|
|
# ifdef __cplusplus
|
|
# define SWIGUNUSEDPARM(p)
|
|
# else
|
|
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
|
# endif
|
|
#endif
|
|
|
|
/* internal SWIG method */
|
|
#ifndef SWIGINTERN
|
|
# define SWIGINTERN static SWIGUNUSED
|
|
#endif
|
|
|
|
/* internal inline SWIG method */
|
|
#ifndef SWIGINTERNINLINE
|
|
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
|
|
#endif
|
|
|
|
/* exporting methods */
|
|
#if defined(__GNUC__)
|
|
# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
|
# ifndef GCC_HASCLASSVISIBILITY
|
|
# define GCC_HASCLASSVISIBILITY
|
|
# endif
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef SWIGEXPORT
|
|
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
|
# if defined(STATIC_LINKED)
|
|
# define SWIGEXPORT
|
|
# else
|
|
# define SWIGEXPORT __declspec(dllexport)
|
|
# endif
|
|
# else
|
|
# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
|
|
# define SWIGEXPORT __attribute__ ((visibility("default")))
|
|
# else
|
|
# define SWIGEXPORT
|
|
# endif
|
|
# endif
|
|
#endif
|
|
|
|
/* calling conventions for Windows */
|
|
#ifndef SWIGSTDCALL
|
|
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
|
# define SWIGSTDCALL __stdcall
|
|
# else
|
|
# define SWIGSTDCALL
|
|
# endif
|
|
#endif
|
|
|
|
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
|
|
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
|
|
# define _CRT_SECURE_NO_DEPRECATE
|
|
#endif
|
|
|
|
/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
|
|
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
|
|
# define _SCL_SECURE_NO_DEPRECATE
|
|
#endif
|
|
|
|
/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
|
|
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
|
|
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
|
|
#endif
|
|
|
|
/* Intel's compiler complains if a variable which was never initialised is
|
|
* cast to void, which is a common idiom which we use to indicate that we
|
|
* are aware a variable isn't used. So we just silence that warning.
|
|
* See: https://github.com/swig/swig/issues/192 for more discussion.
|
|
*/
|
|
#ifdef __INTEL_COMPILER
|
|
# pragma warning disable 592
|
|
#endif
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* swigrun.swg
|
|
*
|
|
* This file contains generic C API SWIG runtime support for pointer
|
|
* type checking.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* This should only be incremented when either the layout of swig_type_info changes,
|
|
or for whatever reason, the runtime changes incompatibly */
|
|
#define SWIG_RUNTIME_VERSION "4"
|
|
|
|
/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
|
|
#ifdef SWIG_TYPE_TABLE
|
|
# define SWIG_QUOTE_STRING(x) #x
|
|
# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
|
|
# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
|
|
#else
|
|
# define SWIG_TYPE_TABLE_NAME
|
|
#endif
|
|
|
|
/*
|
|
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
|
|
creating a static or dynamic library from the SWIG runtime code.
|
|
In 99.9% of the cases, SWIG just needs to declare them as 'static'.
|
|
|
|
But only do this if strictly necessary, ie, if you have problems
|
|
with your compiler or suchlike.
|
|
*/
|
|
|
|
#ifndef SWIGRUNTIME
|
|
# define SWIGRUNTIME SWIGINTERN
|
|
#endif
|
|
|
|
#ifndef SWIGRUNTIMEINLINE
|
|
# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
|
|
#endif
|
|
|
|
/* Generic buffer size */
|
|
#ifndef SWIG_BUFFER_SIZE
|
|
# define SWIG_BUFFER_SIZE 1024
|
|
#endif
|
|
|
|
/* Flags for pointer conversions */
|
|
#define SWIG_POINTER_DISOWN 0x1
|
|
#define SWIG_CAST_NEW_MEMORY 0x2
|
|
#define SWIG_POINTER_NO_NULL 0x4
|
|
#define SWIG_POINTER_CLEAR 0x8
|
|
#define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
|
|
|
|
/* Flags for new pointer objects */
|
|
#define SWIG_POINTER_OWN 0x1
|
|
|
|
|
|
/*
|
|
Flags/methods for returning states.
|
|
|
|
The SWIG conversion methods, as ConvertPtr, return an integer
|
|
that tells if the conversion was successful or not. And if not,
|
|
an error code can be returned (see swigerrors.swg for the codes).
|
|
|
|
Use the following macros/flags to set or process the returning
|
|
states.
|
|
|
|
In old versions of SWIG, code such as the following was usually written:
|
|
|
|
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
|
|
// success code
|
|
} else {
|
|
//fail code
|
|
}
|
|
|
|
Now you can be more explicit:
|
|
|
|
int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
|
|
if (SWIG_IsOK(res)) {
|
|
// success code
|
|
} else {
|
|
// fail code
|
|
}
|
|
|
|
which is the same really, but now you can also do
|
|
|
|
Type *ptr;
|
|
int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
|
|
if (SWIG_IsOK(res)) {
|
|
// success code
|
|
if (SWIG_IsNewObj(res) {
|
|
...
|
|
delete *ptr;
|
|
} else {
|
|
...
|
|
}
|
|
} else {
|
|
// fail code
|
|
}
|
|
|
|
I.e., now SWIG_ConvertPtr can return new objects and you can
|
|
identify the case and take care of the deallocation. Of course that
|
|
also requires SWIG_ConvertPtr to return new result values, such as
|
|
|
|
int SWIG_ConvertPtr(obj, ptr,...) {
|
|
if (<obj is ok>) {
|
|
if (<need new object>) {
|
|
*ptr = <ptr to new allocated object>;
|
|
return SWIG_NEWOBJ;
|
|
} else {
|
|
*ptr = <ptr to old object>;
|
|
return SWIG_OLDOBJ;
|
|
}
|
|
} else {
|
|
return SWIG_BADOBJ;
|
|
}
|
|
}
|
|
|
|
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
|
|
more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
|
|
SWIG errors code.
|
|
|
|
Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
|
|
allows returning the 'cast rank', for example, if you have this
|
|
|
|
int food(double)
|
|
int fooi(int);
|
|
|
|
and you call
|
|
|
|
food(1) // cast rank '1' (1 -> 1.0)
|
|
fooi(1) // cast rank '0'
|
|
|
|
just use the SWIG_AddCast()/SWIG_CheckState()
|
|
*/
|
|
|
|
#define SWIG_OK (0)
|
|
/* Runtime errors are < 0 */
|
|
#define SWIG_ERROR (-1)
|
|
/* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */
|
|
/* Errors in range -100 to -199 are language specific errors defined in *errors.swg */
|
|
/* Errors < -200 are generic runtime specific errors */
|
|
#define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
|
|
|
|
#define SWIG_IsOK(r) (r >= 0)
|
|
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
|
|
|
|
/* The CastRankLimit says how many bits are used for the cast rank */
|
|
#define SWIG_CASTRANKLIMIT (1 << 8)
|
|
/* The NewMask denotes the object was created (using new/malloc) */
|
|
#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
|
|
/* The TmpMask is for in/out typemaps that use temporal objects */
|
|
#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
|
|
/* Simple returning values */
|
|
#define SWIG_BADOBJ (SWIG_ERROR)
|
|
#define SWIG_OLDOBJ (SWIG_OK)
|
|
#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
|
|
#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
|
|
/* Check, add and del object mask methods */
|
|
#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
|
|
#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
|
|
#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
|
|
#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
|
|
#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
|
|
#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
|
|
|
|
/* Cast-Rank Mode */
|
|
#if defined(SWIG_CASTRANK_MODE)
|
|
# ifndef SWIG_TypeRank
|
|
# define SWIG_TypeRank unsigned long
|
|
# endif
|
|
# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
|
|
# define SWIG_MAXCASTRANK (2)
|
|
# endif
|
|
# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
|
|
# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
|
|
SWIGINTERNINLINE int SWIG_AddCast(int r) {
|
|
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
|
|
}
|
|
SWIGINTERNINLINE int SWIG_CheckState(int r) {
|
|
return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
|
|
}
|
|
#else /* no cast-rank mode */
|
|
# define SWIG_AddCast(r) (r)
|
|
# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
|
|
#endif
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef void *(*swig_converter_func)(void *, int *);
|
|
typedef struct swig_type_info *(*swig_dycast_func)(void **);
|
|
|
|
/* Structure to store information on one type */
|
|
typedef struct swig_type_info {
|
|
const char *name; /* mangled name of this type */
|
|
const char *str; /* human readable name of this type */
|
|
swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
|
|
struct swig_cast_info *cast; /* linked list of types that can cast into this type */
|
|
void *clientdata; /* language specific type data */
|
|
int owndata; /* flag if the structure owns the clientdata */
|
|
} swig_type_info;
|
|
|
|
/* Structure to store a type and conversion function used for casting */
|
|
typedef struct swig_cast_info {
|
|
swig_type_info *type; /* pointer to type that is equivalent to this type */
|
|
swig_converter_func converter; /* function to cast the void pointers */
|
|
struct swig_cast_info *next; /* pointer to next cast in linked list */
|
|
struct swig_cast_info *prev; /* pointer to the previous cast */
|
|
} swig_cast_info;
|
|
|
|
/* Structure used to store module information
|
|
* Each module generates one structure like this, and the runtime collects
|
|
* all of these structures and stores them in a circularly linked list.*/
|
|
typedef struct swig_module_info {
|
|
swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
|
|
size_t size; /* Number of types in this module */
|
|
struct swig_module_info *next; /* Pointer to next element in circularly linked list */
|
|
swig_type_info **type_initial; /* Array of initially generated type structures */
|
|
swig_cast_info **cast_initial; /* Array of initially generated casting structures */
|
|
void *clientdata; /* Language specific module data */
|
|
} swig_module_info;
|
|
|
|
/*
|
|
Compare two type names skipping the space characters, therefore
|
|
"char*" == "char *" and "Class<int>" == "Class<int >", etc.
|
|
|
|
Return 0 when the two name types are equivalent, as in
|
|
strncmp, but skipping ' '.
|
|
*/
|
|
SWIGRUNTIME int
|
|
SWIG_TypeNameComp(const char *f1, const char *l1,
|
|
const char *f2, const char *l2) {
|
|
for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
|
|
while ((*f1 == ' ') && (f1 != l1)) ++f1;
|
|
while ((*f2 == ' ') && (f2 != l2)) ++f2;
|
|
if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
|
|
}
|
|
return (int)((l1 - f1) - (l2 - f2));
|
|
}
|
|
|
|
/*
|
|
Check type equivalence in a name list like <name1>|<name2>|...
|
|
Return 0 if equal, -1 if nb < tb, 1 if nb > tb
|
|
*/
|
|
SWIGRUNTIME int
|
|
SWIG_TypeCmp(const char *nb, const char *tb) {
|
|
int equiv = 1;
|
|
const char* te = tb + strlen(tb);
|
|
const char* ne = nb;
|
|
while (equiv != 0 && *ne) {
|
|
for (nb = ne; *ne; ++ne) {
|
|
if (*ne == '|') break;
|
|
}
|
|
equiv = SWIG_TypeNameComp(nb, ne, tb, te);
|
|
if (*ne) ++ne;
|
|
}
|
|
return equiv;
|
|
}
|
|
|
|
/*
|
|
Check type equivalence in a name list like <name1>|<name2>|...
|
|
Return 0 if not equal, 1 if equal
|
|
*/
|
|
SWIGRUNTIME int
|
|
SWIG_TypeEquiv(const char *nb, const char *tb) {
|
|
return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
|
|
}
|
|
|
|
/*
|
|
Check the typename
|
|
*/
|
|
SWIGRUNTIME swig_cast_info *
|
|
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
|
|
if (ty) {
|
|
swig_cast_info *iter = ty->cast;
|
|
while (iter) {
|
|
if (strcmp(iter->type->name, c) == 0) {
|
|
if (iter == ty->cast)
|
|
return iter;
|
|
/* Move iter to the top of the linked list */
|
|
iter->prev->next = iter->next;
|
|
if (iter->next)
|
|
iter->next->prev = iter->prev;
|
|
iter->next = ty->cast;
|
|
iter->prev = 0;
|
|
if (ty->cast) ty->cast->prev = iter;
|
|
ty->cast = iter;
|
|
return iter;
|
|
}
|
|
iter = iter->next;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
|
|
*/
|
|
SWIGRUNTIME swig_cast_info *
|
|
SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty) {
|
|
if (ty) {
|
|
swig_cast_info *iter = ty->cast;
|
|
while (iter) {
|
|
if (iter->type == from) {
|
|
if (iter == ty->cast)
|
|
return iter;
|
|
/* Move iter to the top of the linked list */
|
|
iter->prev->next = iter->next;
|
|
if (iter->next)
|
|
iter->next->prev = iter->prev;
|
|
iter->next = ty->cast;
|
|
iter->prev = 0;
|
|
if (ty->cast) ty->cast->prev = iter;
|
|
ty->cast = iter;
|
|
return iter;
|
|
}
|
|
iter = iter->next;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
Cast a pointer up an inheritance hierarchy
|
|
*/
|
|
SWIGRUNTIMEINLINE void *
|
|
SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
|
|
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
|
|
}
|
|
|
|
/*
|
|
Dynamic pointer casting. Down an inheritance hierarchy
|
|
*/
|
|
SWIGRUNTIME swig_type_info *
|
|
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
|
|
swig_type_info *lastty = ty;
|
|
if (!ty || !ty->dcast) return ty;
|
|
while (ty && (ty->dcast)) {
|
|
ty = (*ty->dcast)(ptr);
|
|
if (ty) lastty = ty;
|
|
}
|
|
return lastty;
|
|
}
|
|
|
|
/*
|
|
Return the name associated with this type
|
|
*/
|
|
SWIGRUNTIMEINLINE const char *
|
|
SWIG_TypeName(const swig_type_info *ty) {
|
|
return ty->name;
|
|
}
|
|
|
|
/*
|
|
Return the pretty name associated with this type,
|
|
that is an unmangled type name in a form presentable to the user.
|
|
*/
|
|
SWIGRUNTIME const char *
|
|
SWIG_TypePrettyName(const swig_type_info *type) {
|
|
/* The "str" field contains the equivalent pretty names of the
|
|
type, separated by vertical-bar characters. Choose the last
|
|
name. It should be the most specific; a fully resolved name
|
|
but not necessarily with default template parameters expanded. */
|
|
if (!type) return NULL;
|
|
if (type->str != NULL) {
|
|
const char *last_name = type->str;
|
|
const char *s;
|
|
for (s = type->str; *s; s++)
|
|
if (*s == '|') last_name = s+1;
|
|
return last_name;
|
|
}
|
|
else
|
|
return type->name;
|
|
}
|
|
|
|
/*
|
|
Set the clientdata field for a type
|
|
*/
|
|
SWIGRUNTIME void
|
|
SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
|
|
swig_cast_info *cast = ti->cast;
|
|
/* if (ti->clientdata == clientdata) return; */
|
|
ti->clientdata = clientdata;
|
|
|
|
while (cast) {
|
|
if (!cast->converter) {
|
|
swig_type_info *tc = cast->type;
|
|
if (!tc->clientdata) {
|
|
SWIG_TypeClientData(tc, clientdata);
|
|
}
|
|
}
|
|
cast = cast->next;
|
|
}
|
|
}
|
|
SWIGRUNTIME void
|
|
SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
|
|
SWIG_TypeClientData(ti, clientdata);
|
|
ti->owndata = 1;
|
|
}
|
|
|
|
/*
|
|
Search for a swig_type_info structure only by mangled name
|
|
Search is a O(log #types)
|
|
|
|
We start searching at module start, and finish searching when start == end.
|
|
Note: if start == end at the beginning of the function, we go all the way around
|
|
the circular list.
|
|
*/
|
|
SWIGRUNTIME swig_type_info *
|
|
SWIG_MangledTypeQueryModule(swig_module_info *start,
|
|
swig_module_info *end,
|
|
const char *name) {
|
|
swig_module_info *iter = start;
|
|
do {
|
|
if (iter->size) {
|
|
size_t l = 0;
|
|
size_t r = iter->size - 1;
|
|
do {
|
|
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
|
|
size_t i = (l + r) >> 1;
|
|
const char *iname = iter->types[i]->name;
|
|
if (iname) {
|
|
int compare = strcmp(name, iname);
|
|
if (compare == 0) {
|
|
return iter->types[i];
|
|
} else if (compare < 0) {
|
|
if (i) {
|
|
r = i - 1;
|
|
} else {
|
|
break;
|
|
}
|
|
} else if (compare > 0) {
|
|
l = i + 1;
|
|
}
|
|
} else {
|
|
break; /* should never happen */
|
|
}
|
|
} while (l <= r);
|
|
}
|
|
iter = iter->next;
|
|
} while (iter != end);
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
Search for a swig_type_info structure for either a mangled name or a human readable name.
|
|
It first searches the mangled names of the types, which is a O(log #types)
|
|
If a type is not found it then searches the human readable names, which is O(#types).
|
|
|
|
We start searching at module start, and finish searching when start == end.
|
|
Note: if start == end at the beginning of the function, we go all the way around
|
|
the circular list.
|
|
*/
|
|
SWIGRUNTIME swig_type_info *
|
|
SWIG_TypeQueryModule(swig_module_info *start,
|
|
swig_module_info *end,
|
|
const char *name) {
|
|
/* STEP 1: Search the name field using binary search */
|
|
swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
|
|
if (ret) {
|
|
return ret;
|
|
} else {
|
|
/* STEP 2: If the type hasn't been found, do a complete search
|
|
of the str field (the human readable name) */
|
|
swig_module_info *iter = start;
|
|
do {
|
|
size_t i = 0;
|
|
for (; i < iter->size; ++i) {
|
|
if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
|
|
return iter->types[i];
|
|
}
|
|
iter = iter->next;
|
|
} while (iter != end);
|
|
}
|
|
|
|
/* neither found a match */
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
Pack binary data into a string
|
|
*/
|
|
SWIGRUNTIME char *
|
|
SWIG_PackData(char *c, void *ptr, size_t sz) {
|
|
static const char hex[17] = "0123456789abcdef";
|
|
const unsigned char *u = (unsigned char *) ptr;
|
|
const unsigned char *eu = u + sz;
|
|
for (; u != eu; ++u) {
|
|
unsigned char uu = *u;
|
|
*(c++) = hex[(uu & 0xf0) >> 4];
|
|
*(c++) = hex[uu & 0xf];
|
|
}
|
|
return c;
|
|
}
|
|
|
|
/*
|
|
Unpack binary data from a string
|
|
*/
|
|
SWIGRUNTIME const char *
|
|
SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
|
|
unsigned char *u = (unsigned char *) ptr;
|
|
const unsigned char *eu = u + sz;
|
|
for (; u != eu; ++u) {
|
|
char d = *(c++);
|
|
unsigned char uu;
|
|
if ((d >= '0') && (d <= '9'))
|
|
uu = (unsigned char)((d - '0') << 4);
|
|
else if ((d >= 'a') && (d <= 'f'))
|
|
uu = (unsigned char)((d - ('a'-10)) << 4);
|
|
else
|
|
return (char *) 0;
|
|
d = *(c++);
|
|
if ((d >= '0') && (d <= '9'))
|
|
uu |= (unsigned char)(d - '0');
|
|
else if ((d >= 'a') && (d <= 'f'))
|
|
uu |= (unsigned char)(d - ('a'-10));
|
|
else
|
|
return (char *) 0;
|
|
*u = uu;
|
|
}
|
|
return c;
|
|
}
|
|
|
|
/*
|
|
Pack 'void *' into a string buffer.
|
|
*/
|
|
SWIGRUNTIME char *
|
|
SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
|
|
char *r = buff;
|
|
if ((2*sizeof(void *) + 2) > bsz) return 0;
|
|
*(r++) = '_';
|
|
r = SWIG_PackData(r,&ptr,sizeof(void *));
|
|
if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
|
|
strcpy(r,name);
|
|
return buff;
|
|
}
|
|
|
|
SWIGRUNTIME const char *
|
|
SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
|
|
if (*c != '_') {
|
|
if (strcmp(c,"NULL") == 0) {
|
|
*ptr = (void *) 0;
|
|
return name;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
return SWIG_UnpackData(++c,ptr,sizeof(void *));
|
|
}
|
|
|
|
SWIGRUNTIME char *
|
|
SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
|
|
char *r = buff;
|
|
size_t lname = (name ? strlen(name) : 0);
|
|
if ((2*sz + 2 + lname) > bsz) return 0;
|
|
*(r++) = '_';
|
|
r = SWIG_PackData(r,ptr,sz);
|
|
if (lname) {
|
|
strncpy(r,name,lname+1);
|
|
} else {
|
|
*r = 0;
|
|
}
|
|
return buff;
|
|
}
|
|
|
|
SWIGRUNTIME const char *
|
|
SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
if (*c != '_') {
|
|
if (strcmp(c,"NULL") == 0) {
|
|
memset(ptr,0,sz);
|
|
return name;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
return SWIG_UnpackData(++c,ptr,sz);
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */
|
|
#define SWIG_UnknownError -1
|
|
#define SWIG_IOError -2
|
|
#define SWIG_RuntimeError -3
|
|
#define SWIG_IndexError -4
|
|
#define SWIG_TypeError -5
|
|
#define SWIG_DivisionByZero -6
|
|
#define SWIG_OverflowError -7
|
|
#define SWIG_SyntaxError -8
|
|
#define SWIG_ValueError -9
|
|
#define SWIG_SystemError -10
|
|
#define SWIG_AttributeError -11
|
|
#define SWIG_MemoryError -12
|
|
#define SWIG_NullReferenceError -13
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* phprun.swg
|
|
*
|
|
* PHP runtime library
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
#define swig_owntype int
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#if PHP_MAJOR_VERSION < 7
|
|
# error These bindings need PHP 7 or later - to generate PHP5 bindings use: SWIG < 4.0.0 and swig -php5
|
|
#endif
|
|
|
|
#include "zend_inheritance.h"
|
|
#include "zend_exceptions.h"
|
|
#include "zend_inheritance.h"
|
|
|
|
#if PHP_MAJOR_VERSION == 7
|
|
/* These macros were new in PHP 8.0. For PHP 7.x we define them to give the
|
|
* same result except without any type declarations. PHP 7.x supports type
|
|
* declarations, but not for the return type, and alternate types aren't
|
|
* supported, so we don't try to support these.
|
|
*/
|
|
# define ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(name, byref, num_req, classes, types) \
|
|
ZEND_BEGIN_ARG_INFO_EX(name, 0, byref, num_req)
|
|
# define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(name, byref, num_req, types) \
|
|
ZEND_BEGIN_ARG_INFO_EX(name, 0, byref, num_req)
|
|
|
|
/* NB We can just ignore `default` here we currently always pass NULL for it
|
|
* (this mechanism for specifying default parameter values was new in PHP 8.0
|
|
* so it's not useful while we still want to support PHP7 too).
|
|
*/
|
|
# define ZEND_ARG_OBJ_TYPE_MASK(byref, name, classes, types, default) \
|
|
ZEND_ARG_INFO(byref, name)
|
|
# define ZEND_ARG_TYPE_MASK(byref, name, types, default) \
|
|
ZEND_ARG_INFO(byref, name)
|
|
#endif
|
|
|
|
#include <stdlib.h> /* for abort(), used in generated code. */
|
|
|
|
#define SWIG_BOOL_CONSTANT(N, V) REGISTER_BOOL_CONSTANT(#N, V, CONST_CS | CONST_PERSISTENT)
|
|
#define SWIG_LONG_CONSTANT(N, V) REGISTER_LONG_CONSTANT(#N, V, CONST_CS | CONST_PERSISTENT)
|
|
#define SWIG_DOUBLE_CONSTANT(N, V) REGISTER_DOUBLE_CONSTANT(#N, V, CONST_CS | CONST_PERSISTENT)
|
|
#define SWIG_STRING_CONSTANT(N, V) REGISTER_STRING_CONSTANT(#N, (char*)V, CONST_CS | CONST_PERSISTENT)
|
|
#define SWIG_CHAR_CONSTANT(N, V) do {\
|
|
char swig_char = (V);\
|
|
REGISTER_STRINGL_CONSTANT(#N, &swig_char, 1, CONST_CS | CONST_PERSISTENT);\
|
|
} while (0)
|
|
|
|
/* ZEND_CONSTANT_SET_FLAGS was new in PHP 7.3. */
|
|
#ifdef ZEND_CONSTANT_SET_FLAGS
|
|
# define SWIG_ZEND_CONSTANT_SET_FLAGS ZEND_CONSTANT_SET_FLAGS
|
|
#else
|
|
# define SWIG_ZEND_CONSTANT_SET_FLAGS(C, F, N) do { (C)->flags = (F); (C)->module_number = (N); } while (0)
|
|
#endif
|
|
|
|
/* zend_object_alloc was new in PHP 7.3. */
|
|
#if PHP_MAJOR_VERSION == 7 && PHP_MINOR_VERSION < 3
|
|
static zend_always_inline void *zend_object_alloc(size_t obj_size, zend_class_entry *ce) {
|
|
void *obj = emalloc(obj_size + zend_object_properties_size(ce));
|
|
memset(obj, 0, obj_size - sizeof(zval));
|
|
return obj;
|
|
}
|
|
#endif
|
|
|
|
/* ZEND_THIS was new in PHP 7.4. */
|
|
#ifndef ZEND_THIS
|
|
# define ZEND_THIS &EX(This)
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#define SWIG_fail goto fail
|
|
|
|
static const char *default_error_msg = "Unknown error occurred";
|
|
static int default_error_code = E_ERROR;
|
|
|
|
#define SWIG_PHP_Arg_Error_Msg(argnum,extramsg) "Error in argument " #argnum " "#extramsg
|
|
|
|
#define SWIG_PHP_Error(code,msg) do { zend_throw_exception(NULL, msg, code); SWIG_fail; } while (0)
|
|
|
|
#define SWIG_contract_assert(expr,msg) \
|
|
do { if (!(expr)) zend_printf("Contract Assert Failed %s\n", msg); } while (0)
|
|
|
|
/* Standard SWIG API */
|
|
#define SWIG_GetModule(clientdata) SWIG_Php_GetModule()
|
|
#define SWIG_SetModule(clientdata, pointer) SWIG_Php_SetModule(pointer, *(int*)clientdata)
|
|
|
|
static zend_class_entry SWIG_Php_swig_wrapped_interface_ce;
|
|
|
|
#if PHP_MAJOR_VERSION == 7
|
|
/* zend_class_implements_interface() was new in PHP 8.0.
|
|
*
|
|
* We could use instanceof_function_ex(C, I, 1) here for 7.4, but for 7.3
|
|
* and earlier that doesn't work, so instead we just provide a compatibility
|
|
* implementation which does what zend_class_implements_interface() does in 8.x
|
|
* and use that for all 7.x so there are fewer variants to worry about testing.
|
|
*/
|
|
static int zend_class_implements_interface(const zend_class_entry *class_ce, const zend_class_entry *interface_ce) {
|
|
uint32_t i;
|
|
if (class_ce->num_interfaces) {
|
|
for (i = 0; i < class_ce->num_interfaces; i++) {
|
|
if (class_ce->interfaces[i] == interface_ce) {
|
|
return 1;
|
|
}
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
/* used to wrap returned objects in so we know whether they are newobject
|
|
and need freeing, or not */
|
|
typedef struct {
|
|
void * ptr;
|
|
int newobject;
|
|
const swig_type_info * type;
|
|
zend_object std;
|
|
} swig_object_wrapper;
|
|
|
|
#define SWIG_Z_FETCH_OBJ_P(zv) swig_php_fetch_object(Z_OBJ_P(zv))
|
|
|
|
static inline
|
|
swig_object_wrapper * swig_php_fetch_object(zend_object *obj) {
|
|
return (swig_object_wrapper *)((char *)obj - XtOffsetOf(swig_object_wrapper, std));
|
|
}
|
|
|
|
#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
|
|
|
|
static void
|
|
SWIG_SetPointerZval(zval *z, void *ptr, swig_type_info *type, int newobject) {
|
|
// Return PHP NULL for a C/C++ NULL pointer.
|
|
if (!ptr) {
|
|
ZVAL_NULL(z);
|
|
return;
|
|
}
|
|
|
|
if (!type->clientdata) {
|
|
zend_type_error("Type: %s not registered with zend", type->name);
|
|
return;
|
|
}
|
|
|
|
{
|
|
zend_object *obj;
|
|
swig_object_wrapper *value;
|
|
if (Z_TYPE_P(z) == IS_OBJECT) {
|
|
/* The PHP object is already initialised - this is the case when wrapping
|
|
* the return value from a PHP constructor. */
|
|
obj = Z_OBJ_P(z);
|
|
} else {
|
|
zend_class_entry *ce = (zend_class_entry*)(type->clientdata);
|
|
obj = ce->create_object(ce);
|
|
ZVAL_OBJ(z, obj);
|
|
}
|
|
value = swig_php_fetch_object(obj);
|
|
value->ptr = ptr;
|
|
value->newobject = (newobject & 1);
|
|
value->type = type;
|
|
}
|
|
}
|
|
|
|
/* We wrap C/C++ pointers as PHP objects. */
|
|
static int
|
|
SWIG_ConvertPtrAndOwn(zval *z, void **ptr, swig_type_info *ty, int flags, swig_owntype *own) {
|
|
if (own)
|
|
*own = 0;
|
|
|
|
if (z == NULL) {
|
|
*ptr = 0;
|
|
return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK;
|
|
}
|
|
|
|
switch (Z_TYPE_P(z)) {
|
|
case IS_OBJECT: {
|
|
zend_object *obj = Z_OBJ_P(z);
|
|
swig_object_wrapper *value;
|
|
if (ty && ty->clientdata == (void*)obj->ce) {
|
|
// Object is exactly the class asked for - this handles common cases cheaply,
|
|
// and in particular the PHP classes we use to wrap a pointer to a non-class.
|
|
} else if (!zend_class_implements_interface(obj->ce, &SWIG_Php_swig_wrapped_interface_ce)) {
|
|
// Not an object we've wrapped.
|
|
return -1;
|
|
}
|
|
|
|
/* convert and cast value->ptr from value->type to ptr as ty. */
|
|
value = swig_php_fetch_object(obj);
|
|
if (!ty) {
|
|
/* They don't care about the target type, so just pass on the pointer! */
|
|
*ptr = value->ptr;
|
|
} else {
|
|
swig_cast_info *tc = SWIG_TypeCheck(value->type->name, ty);
|
|
if (tc) {
|
|
int newmemory = 0;
|
|
*ptr = SWIG_TypeCast(tc, value->ptr, &newmemory);
|
|
if (newmemory == SWIG_CAST_NEW_MEMORY) {
|
|
assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
|
|
if (own)
|
|
*own |= SWIG_CAST_NEW_MEMORY;
|
|
}
|
|
} else {
|
|
*ptr = NULL;
|
|
}
|
|
}
|
|
|
|
if (((flags & SWIG_POINTER_RELEASE) == SWIG_POINTER_RELEASE) && !value->newobject) {
|
|
return SWIG_ERROR_RELEASE_NOT_OWNED;
|
|
} else {
|
|
if (*ptr == NULL)
|
|
return SWIG_ERROR; /* should be SWIG_NullReferenceError?? */
|
|
if (flags & SWIG_POINTER_DISOWN) {
|
|
value->newobject = 0;
|
|
}
|
|
if (flags & SWIG_POINTER_CLEAR) {
|
|
value->ptr = 0;
|
|
}
|
|
}
|
|
|
|
return SWIG_OK;
|
|
}
|
|
case IS_NULL:
|
|
*ptr = 0;
|
|
return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK;
|
|
}
|
|
|
|
return -1;
|
|
}
|
|
|
|
static int
|
|
SWIG_ConvertPtr(zval *z, void **ptr, swig_type_info *ty, int flags) {
|
|
return SWIG_ConvertPtrAndOwn(z, ptr, ty, flags, 0);
|
|
}
|
|
|
|
static const char const_name[] = "swig_runtime_data_type_pointer";
|
|
static swig_module_info *SWIG_Php_GetModule(void) {
|
|
zval *pointer = zend_get_constant_str(const_name, sizeof(const_name) - 1);
|
|
if (pointer) {
|
|
if (Z_TYPE_P(pointer) == IS_LONG) {
|
|
return (swig_module_info *) pointer->value.lval;
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
static void SWIG_Php_SetModule(swig_module_info *pointer, int module_number) {
|
|
REGISTER_LONG_CONSTANT(const_name, (long) pointer, CONST_CS | CONST_PERSISTENT);
|
|
}
|
|
|
|
/* Common parts of the "create_object" object handler. */
|
|
static zend_object *SWIG_Php_do_create_object(zend_class_entry *ce, zend_object_handlers *handlers) {
|
|
swig_object_wrapper *obj = (swig_object_wrapper*)zend_object_alloc(sizeof(swig_object_wrapper), ce);
|
|
zend_object_std_init(&obj->std, ce);
|
|
object_properties_init(&obj->std, ce);
|
|
obj->std.handlers = handlers;
|
|
obj->newobject = 1;
|
|
return &obj->std;
|
|
}
|
|
|
|
/* Common parts of the "free_obj" object handler.
|
|
Returns void* pointer if the C/C++ object should be destroyed. */
|
|
static void* SWIG_Php_free_obj(zend_object *object) {
|
|
if (object) {
|
|
swig_object_wrapper *obj = swig_php_fetch_object(object);
|
|
zend_object_std_dtor(&obj->std);
|
|
if (obj->newobject) return obj->ptr;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
/* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */
|
|
#define SWIG_UnknownError -1
|
|
#define SWIG_IOError -2
|
|
#define SWIG_RuntimeError -3
|
|
#define SWIG_IndexError -4
|
|
#define SWIG_TypeError -5
|
|
#define SWIG_DivisionByZero -6
|
|
#define SWIG_OverflowError -7
|
|
#define SWIG_SyntaxError -8
|
|
#define SWIG_ValueError -9
|
|
#define SWIG_SystemError -10
|
|
#define SWIG_AttributeError -11
|
|
#define SWIG_MemoryError -12
|
|
#define SWIG_NullReferenceError -13
|
|
|
|
|
|
|
|
/* -------- TYPES TABLE (BEGIN) -------- */
|
|
|
|
#define SWIGTYPE_int swig_types[0]
|
|
#define SWIGTYPE_p_Day swig_types[1]
|
|
#define SWIGTYPE_p_GZ swig_types[2]
|
|
#define SWIGTYPE_p_Time swig_types[3]
|
|
#define SWIGTYPE_p_difference_type swig_types[4]
|
|
#define SWIGTYPE_p_int swig_types[5]
|
|
#define SWIGTYPE_p_long_long swig_types[6]
|
|
#define SWIGTYPE_p_short swig_types[7]
|
|
#define SWIGTYPE_p_signed_char swig_types[8]
|
|
#define SWIGTYPE_p_size_type swig_types[9]
|
|
#define SWIGTYPE_p_std__vectorT_double_t swig_types[10]
|
|
#define SWIGTYPE_p_std__vectorT_sxtwl__JieQiInfo_t swig_types[11]
|
|
#define SWIGTYPE_p_sxtwl__JieQiInfo swig_types[12]
|
|
#define SWIGTYPE_p_unsigned_char swig_types[13]
|
|
#define SWIGTYPE_p_unsigned_int swig_types[14]
|
|
#define SWIGTYPE_p_unsigned_long_long swig_types[15]
|
|
#define SWIGTYPE_p_unsigned_short swig_types[16]
|
|
#define SWIGTYPE_p_value_type swig_types[17]
|
|
static swig_type_info *swig_types[19];
|
|
static swig_module_info swig_module = {swig_types, 18, 0, 0, 0, 0};
|
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
|
|
|
/* -------- TYPES TABLE (END) -------- */
|
|
|
|
/* header section */
|
|
#define SWIG_name "sxtwl"
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#include "php_ini.h"
|
|
#include "ext/standard/info.h"
|
|
#include "php_sxtwl.h"
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#ifdef __cplusplus
|
|
#include <utility>
|
|
/* SwigValueWrapper is described in swig.swg */
|
|
template<typename T> class SwigValueWrapper {
|
|
struct SwigSmartPointer {
|
|
T *ptr;
|
|
SwigSmartPointer(T *p) : ptr(p) { }
|
|
~SwigSmartPointer() { delete ptr; }
|
|
SwigSmartPointer& operator=(SwigSmartPointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
|
|
void reset(T *p) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = p; }
|
|
} pointer;
|
|
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
|
|
SwigValueWrapper(const SwigValueWrapper<T>& rhs);
|
|
public:
|
|
SwigValueWrapper() : pointer(0) { }
|
|
SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
|
|
#if __cplusplus >=201103L
|
|
SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
|
|
operator T&&() const { return std::move(*pointer.ptr); }
|
|
#else
|
|
operator T&() const { return *pointer.ptr; }
|
|
#endif
|
|
T *operator&() const { return pointer.ptr; }
|
|
static void reset(SwigValueWrapper& t, T *p) { t.pointer.reset(p); }
|
|
};
|
|
|
|
/*
|
|
* SwigValueInit() is a generic initialisation solution as the following approach:
|
|
*
|
|
* T c_result = T();
|
|
*
|
|
* doesn't compile for all types for example:
|
|
*
|
|
* unsigned int c_result = unsigned int();
|
|
*/
|
|
template <typename T> T SwigValueInit() {
|
|
return T();
|
|
}
|
|
|
|
#if __cplusplus >=201103L
|
|
# define SWIG_STD_MOVE(OBJ) std::move(OBJ)
|
|
#else
|
|
# define SWIG_STD_MOVE(OBJ) OBJ
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define SWIG_PHP_INTERFACE_Iterator_CE zend_ce_iterator
|
|
#define SWIG_PHP_INTERFACE_Iterator_HEADER "zend_interfaces.h"
|
|
|
|
#define SWIG_PHP_INTERFACE_IteratorAggregate_CE zend_ce_aggregate
|
|
#define SWIG_PHP_INTERFACE_IteratorAggregate_HEADER "zend_interfaces.h"
|
|
|
|
#define SWIG_PHP_INTERFACE_ArrayAccess_CE zend_ce_arrayaccess
|
|
#define SWIG_PHP_INTERFACE_ArrayAccess_HEADER "zend_interfaces.h"
|
|
|
|
#define SWIG_PHP_INTERFACE_Serializable_CE zend_ce_serializable
|
|
#define SWIG_PHP_INTERFACE_Serializable_HEADER "zend_interfaces.h"
|
|
|
|
#define SWIG_PHP_INTERFACE_Countable_CE zend_ce_countable
|
|
#define SWIG_PHP_INTERFACE_Countable_HEADER "zend_interfaces.h"
|
|
|
|
#define SWIG_PHP_INTERFACE_OuterIterator_CE spl_ce_OuterIterator
|
|
#define SWIG_PHP_INTERFACE_OuterIterator_HEADER "ext/spl/spl_iterators.h"
|
|
|
|
#define SWIG_PHP_INTERFACE_RecursiveIterator_CE spl_ce_RecursiveIterator
|
|
#define SWIG_PHP_INTERFACE_RecursiveIterator_HEADER "ext/spl/spl_iterators.h"
|
|
|
|
#define SWIG_PHP_INTERFACE_SeekableIterator_CE spl_ce_SeekableIterator
|
|
#define SWIG_PHP_INTERFACE_SeekableIterator_HEADER "ext/spl/spl_iterators.h"
|
|
|
|
#define SWIG_PHP_INTERFACE_SplObserver_CE spl_ce_SplObserver
|
|
#define SWIG_PHP_INTERFACE_SplObserver_HEADER "ext/spl/spl_observer.h"
|
|
|
|
#define SWIG_PHP_INTERFACE_SplSubject_CE spl_ce_SplSubject
|
|
#define SWIG_PHP_INTERFACE_SplSubject_HEADER "ext/spl/spl_observer.h"
|
|
|
|
#define SWIG_PHP_INTERFACE_DateTimeInterface_CE php_date_get_interface_ce()
|
|
#define SWIG_PHP_INTERFACE_DateTimeInterface_HEADER "ext/date/php_date.h"
|
|
|
|
// The "json" extension needs to be loaded earlier that us for this to work.
|
|
#define SWIG_PHP_INTERFACE_JsonSerializable_CE php_json_serializable_ce
|
|
#define SWIG_PHP_INTERFACE_JsonSerializable_HEADER "ext/json/php_json.h"
|
|
|
|
// New in PHP 8.0.
|
|
#if PHP_MAJOR_VERSION >= 8
|
|
# define SWIG_PHP_INTERFACE_Stringable_CE zend_ce_stringable
|
|
# define SWIG_PHP_INTERFACE_Stringable_HEADER "zend_interfaces.h"
|
|
#endif
|
|
|
|
|
|
|
|
#include "const.h"
|
|
#include "sxtwl.h"
|
|
|
|
|
|
#include <stdint.h> // Use the C99 official header
|
|
|
|
|
|
#include <typeinfo>
|
|
#include <stdexcept>
|
|
|
|
|
|
#include <vector>
|
|
#include <stdexcept>
|
|
|
|
|
|
#if PHP_MAJOR_VERSION >= 8
|
|
# define SWIG_HANDLE_VALUE_ERROR_FOR_PHP8(code) code == SWIG_ValueError ? zend_ce_value_error :
|
|
#else
|
|
# define SWIG_HANDLE_VALUE_ERROR_FOR_PHP8(code)
|
|
#endif
|
|
#define SWIG_exception(code, msg) do { zend_throw_exception( \
|
|
code == SWIG_TypeError ? zend_ce_type_error : \
|
|
SWIG_HANDLE_VALUE_ERROR_FOR_PHP8(code) \
|
|
code == SWIG_DivisionByZero ? zend_ce_division_by_zero_error : \
|
|
code == SWIG_SyntaxError ? zend_ce_parse_error : \
|
|
code == SWIG_OverflowError ? zend_ce_arithmetic_error : \
|
|
NULL, msg, code); SWIG_fail; } while (0)
|
|
|
|
|
|
#include <typeinfo>
|
|
#include <stdexcept>
|
|
|
|
|
|
#include <string>
|
|
|
|
SWIGINTERN bool std_vector_Sl_double_Sg__is_empty(std::vector< double > const *self){
|
|
return self->empty();
|
|
}
|
|
SWIGINTERN double std_vector_Sl_double_Sg__pop(std::vector< double > *self){
|
|
if (self->size() == 0)
|
|
throw std::out_of_range("pop from empty vector");
|
|
double x = self->back();
|
|
self->pop_back();
|
|
return x;
|
|
}
|
|
SWIGINTERN std::vector< double >::const_reference std_vector_Sl_double_Sg__get(std::vector< double > *self,int i){
|
|
int size = int(self->size());
|
|
if (i>=0 && i<size)
|
|
return (*self)[i];
|
|
else
|
|
throw std::out_of_range("vector index out of range");
|
|
}
|
|
SWIGINTERN void std_vector_Sl_double_Sg__set(std::vector< double > *self,int i,std::vector< double >::value_type const &val){
|
|
int size = int(self->size());
|
|
if (i>=0 && i<size)
|
|
(*self)[i] = val;
|
|
else
|
|
throw std::out_of_range("vector index out of range");
|
|
}
|
|
SWIGINTERN bool std_vector_Sl_sxtwl_JieQiInfo_Sg__is_empty(std::vector< sxtwl::JieQiInfo > const *self){
|
|
return self->empty();
|
|
}
|
|
SWIGINTERN sxtwl::JieQiInfo std_vector_Sl_sxtwl_JieQiInfo_Sg__pop(std::vector< sxtwl::JieQiInfo > *self){
|
|
if (self->size() == 0)
|
|
throw std::out_of_range("pop from empty vector");
|
|
sxtwl::JieQiInfo x = self->back();
|
|
self->pop_back();
|
|
return x;
|
|
}
|
|
SWIGINTERN std::vector< sxtwl::JieQiInfo >::const_reference std_vector_Sl_sxtwl_JieQiInfo_Sg__get(std::vector< sxtwl::JieQiInfo > *self,int i){
|
|
int size = int(self->size());
|
|
if (i>=0 && i<size)
|
|
return (*self)[i];
|
|
else
|
|
throw std::out_of_range("vector index out of range");
|
|
}
|
|
SWIGINTERN void std_vector_Sl_sxtwl_JieQiInfo_Sg__set(std::vector< sxtwl::JieQiInfo > *self,int i,std::vector< sxtwl::JieQiInfo >::value_type const &val){
|
|
int size = int(self->size());
|
|
if (i>=0 && i<size)
|
|
(*self)[i] = val;
|
|
else
|
|
throw std::out_of_range("vector index out of range");
|
|
}
|
|
static zend_object_handlers Swig_Php_base_object_handlers;
|
|
|
|
static zend_class_entry *SWIG_Php_ce_JDList;
|
|
|
|
static zend_object_handlers JDList_object_handlers;
|
|
static zend_object *SWIG_Php_create_object_JDList(zend_class_entry *ce) {return SWIG_Php_do_create_object(ce, &JDList_object_handlers);}
|
|
static void SWIG_Php_free_obj_JDList(zend_object *object) {delete (std::vector< double > *)SWIG_Php_free_obj(object);}
|
|
|
|
static zend_class_entry *SWIG_Php_ce_JQList;
|
|
|
|
static zend_object_handlers JQList_object_handlers;
|
|
static zend_object *SWIG_Php_create_object_JQList(zend_class_entry *ce) {return SWIG_Php_do_create_object(ce, &JQList_object_handlers);}
|
|
static void SWIG_Php_free_obj_JQList(zend_object *object) {delete (std::vector< sxtwl::JieQiInfo > *)SWIG_Php_free_obj(object);}
|
|
|
|
static zend_class_entry *SWIG_Php_ce_sxtwl;
|
|
|
|
static zend_class_entry *SWIG_Php_ce_Time;
|
|
|
|
static zend_object_handlers Time_object_handlers;
|
|
static zend_object *SWIG_Php_create_object_Time(zend_class_entry *ce) {return SWIG_Php_do_create_object(ce, &Time_object_handlers);}
|
|
static void SWIG_Php_free_obj_Time(zend_object *object) {delete (Time *)SWIG_Php_free_obj(object);}
|
|
|
|
static zend_class_entry *SWIG_Php_ce_GZ;
|
|
|
|
static zend_object_handlers GZ_object_handlers;
|
|
static zend_object *SWIG_Php_create_object_GZ(zend_class_entry *ce) {return SWIG_Php_do_create_object(ce, &GZ_object_handlers);}
|
|
static void SWIG_Php_free_obj_GZ(zend_object *object) {delete (GZ *)SWIG_Php_free_obj(object);}
|
|
|
|
static zend_class_entry *SWIG_Php_ce_Day;
|
|
|
|
static zend_object_handlers Day_object_handlers;
|
|
static zend_object *SWIG_Php_create_object_Day(zend_class_entry *ce) {return SWIG_Php_do_create_object(ce, &Day_object_handlers);}
|
|
static void SWIG_Php_free_obj_Day(zend_object *object) {delete (Day *)SWIG_Php_free_obj(object);}
|
|
|
|
static zend_class_entry *SWIG_Php_ce_JieQiInfo;
|
|
|
|
static zend_object_handlers JieQiInfo_object_handlers;
|
|
static zend_object *SWIG_Php_create_object_JieQiInfo(zend_class_entry *ce) {return SWIG_Php_do_create_object(ce, &JieQiInfo_object_handlers);}
|
|
static void SWIG_Php_free_obj_JieQiInfo(zend_object *object) {delete (sxtwl::JieQiInfo *)SWIG_Php_free_obj(object);}
|
|
|
|
/* class entry for pointer to _p_int */
|
|
static zend_class_entry *SWIG_Php_ce__p_int;
|
|
|
|
/* class entry for pointer to _p_size_type */
|
|
static zend_class_entry *SWIG_Php_ce__p_size_type;
|
|
|
|
/* class entry for pointer to _p_value_type */
|
|
static zend_class_entry *SWIG_Php_ce__p_value_type;
|
|
|
|
/* class entry for pointer to _p_unsigned_char */
|
|
static zend_class_entry *SWIG_Php_ce__p_unsigned_char;
|
|
|
|
/* class entry for pointer to _p_unsigned_short */
|
|
static zend_class_entry *SWIG_Php_ce__p_unsigned_short;
|
|
|
|
/* class entry for pointer to _p_signed_char */
|
|
static zend_class_entry *SWIG_Php_ce__p_signed_char;
|
|
|
|
/* class entry for pointer to _p_long_long */
|
|
static zend_class_entry *SWIG_Php_ce__p_long_long;
|
|
|
|
/* class entry for pointer to _p_unsigned_int */
|
|
static zend_class_entry *SWIG_Php_ce__p_unsigned_int;
|
|
|
|
/* class entry for pointer to _p_unsigned_long_long */
|
|
static zend_class_entry *SWIG_Php_ce__p_unsigned_long_long;
|
|
|
|
/* class entry for pointer to _int */
|
|
static zend_class_entry *SWIG_Php_ce__int;
|
|
|
|
/* class entry for pointer to _p_short */
|
|
static zend_class_entry *SWIG_Php_ce__p_short;
|
|
|
|
/* class entry for pointer to _p_difference_type */
|
|
static zend_class_entry *SWIG_Php_ce__p_difference_type;
|
|
|
|
|
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
|
|
|
|
static swig_type_info _swigt__int = {"_int", "int", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_Day = {"_p_Day", "Day *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_GZ = {"_p_GZ", "GZ *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_Time = {"_p_Time", "Time *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_difference_type = {"_p_difference_type", "difference_type *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_int = {"_p_int", "int32_t *|int_fast16_t *|int_fast32_t *|int_least32_t *|intptr_t *|int *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_long_long = {"_p_long_long", "int64_t *|int_fast64_t *|int_least64_t *|intmax_t *|long long *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_short = {"_p_short", "int16_t *|int_least16_t *|short *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "int8_t *|int_fast8_t *|int_least8_t *|signed char *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_size_type = {"_p_size_type", "size_type *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_std__vectorT_double_t = {"_p_std__vectorT_double_t", "std::vector< double > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_std__vectorT_sxtwl__JieQiInfo_t = {"_p_std__vectorT_sxtwl__JieQiInfo_t", "std::vector< sxtwl::JieQiInfo > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_sxtwl__JieQiInfo = {"_p_sxtwl__JieQiInfo", "std::vector< sxtwl::JieQiInfo >::value_type *|sxtwl::JieQiInfo *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "uint8_t *|uint_fast8_t *|uint_least8_t *|unsigned char *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "uint32_t *|uint_fast16_t *|uint_fast32_t *|uint_least32_t *|uintptr_t *|unsigned int *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "uint64_t *|uint_fast64_t *|uint_least64_t *|uintmax_t *|unsigned long long *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "uint16_t *|uint_least16_t *|unsigned short *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0, 0, (void*)0, 0};
|
|
|
|
static swig_type_info *swig_type_initial[] = {
|
|
&_swigt__int,
|
|
&_swigt__p_Day,
|
|
&_swigt__p_GZ,
|
|
&_swigt__p_Time,
|
|
&_swigt__p_difference_type,
|
|
&_swigt__p_int,
|
|
&_swigt__p_long_long,
|
|
&_swigt__p_short,
|
|
&_swigt__p_signed_char,
|
|
&_swigt__p_size_type,
|
|
&_swigt__p_std__vectorT_double_t,
|
|
&_swigt__p_std__vectorT_sxtwl__JieQiInfo_t,
|
|
&_swigt__p_sxtwl__JieQiInfo,
|
|
&_swigt__p_unsigned_char,
|
|
&_swigt__p_unsigned_int,
|
|
&_swigt__p_unsigned_long_long,
|
|
&_swigt__p_unsigned_short,
|
|
&_swigt__p_value_type,
|
|
};
|
|
|
|
static swig_cast_info _swigc__int[] = { {&_swigt__int, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_Day[] = { {&_swigt__p_Day, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_GZ[] = { {&_swigt__p_GZ, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_Time[] = { {&_swigt__p_Time, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_difference_type[] = { {&_swigt__p_difference_type, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_size_type[] = { {&_swigt__p_size_type, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_std__vectorT_double_t[] = { {&_swigt__p_std__vectorT_double_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_std__vectorT_sxtwl__JieQiInfo_t[] = { {&_swigt__p_std__vectorT_sxtwl__JieQiInfo_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_sxtwl__JieQiInfo[] = { {&_swigt__p_sxtwl__JieQiInfo, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_unsigned_long_long[] = { {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_value_type[] = { {&_swigt__p_value_type, 0, 0, 0},{0, 0, 0, 0}};
|
|
|
|
static swig_cast_info *swig_cast_initial[] = {
|
|
_swigc__int,
|
|
_swigc__p_Day,
|
|
_swigc__p_GZ,
|
|
_swigc__p_Time,
|
|
_swigc__p_difference_type,
|
|
_swigc__p_int,
|
|
_swigc__p_long_long,
|
|
_swigc__p_short,
|
|
_swigc__p_signed_char,
|
|
_swigc__p_size_type,
|
|
_swigc__p_std__vectorT_double_t,
|
|
_swigc__p_std__vectorT_sxtwl__JieQiInfo_t,
|
|
_swigc__p_sxtwl__JieQiInfo,
|
|
_swigc__p_unsigned_char,
|
|
_swigc__p_unsigned_int,
|
|
_swigc__p_unsigned_long_long,
|
|
_swigc__p_unsigned_short,
|
|
_swigc__p_value_type,
|
|
};
|
|
|
|
|
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
|
|
|
|
/* end header section */
|
|
/* vdecl subsection */
|
|
/* end vdecl subsection */
|
|
/* wrapper section */
|
|
static ZEND_NAMED_FUNCTION(_wrap_new_JDList__SWIG_0) {
|
|
std::vector< double > *result = 0 ;
|
|
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (std::vector< double > *)new std::vector< double >();
|
|
|
|
SWIG_SetPointerZval(ZEND_THIS, (void *)result, SWIGTYPE_p_std__vectorT_double_t, 1);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_new_JDList__SWIG_1) {
|
|
std::vector< double >::size_type arg1 ;
|
|
zval args[1];
|
|
std::vector< double > *result = 0 ;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg1 = (std::vector< double >::size_type) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (std::vector< double > *)new std::vector< double >(arg1);
|
|
|
|
SWIG_SetPointerZval(ZEND_THIS, (void *)result, SWIGTYPE_p_std__vectorT_double_t, 1);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_new_JDList__SWIG_2) {
|
|
std::vector< double > *arg1 = 0 ;
|
|
zval args[1];
|
|
std::vector< double > *result = 0 ;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_std__vectorT_double_t, 0) < 0 || arg1 == NULL) {
|
|
zend_type_error("Expected SWIGTYPE_p_std__vectorT_double_t for argument 1 of new_JDList");
|
|
return;
|
|
}
|
|
|
|
result = (std::vector< double > *)new std::vector< double >((std::vector< double > const &)*arg1);
|
|
|
|
SWIG_SetPointerZval(ZEND_THIS, (void *)result, SWIGTYPE_p_std__vectorT_double_t, 1);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JDList,__construct) {
|
|
int argc;
|
|
zval argv[1];
|
|
|
|
argc = ZEND_NUM_ARGS();
|
|
zend_get_parameters_array_ex(argc, argv);
|
|
if (argc == 0) {
|
|
_wrap_new_JDList__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
if (argc == 1) {
|
|
int _v = 0;
|
|
{
|
|
void *tmp;
|
|
_v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_std__vectorT_double_t, SWIG_POINTER_NO_NULL) >= 0);
|
|
}
|
|
if (_v) {
|
|
_wrap_new_JDList__SWIG_2(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
if (argc == 1) {
|
|
int _v = 0;
|
|
_v = (Z_TYPE(argv[0]) == IS_LONG);
|
|
if (_v) {
|
|
_wrap_new_JDList__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
|
|
zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'new_JDList'", 0);
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JDList,size) {
|
|
std::vector< double > *arg1 = (std::vector< double > *) 0 ;
|
|
std::vector< double >::size_type result;
|
|
|
|
arg1 = (std::vector< double > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = ((std::vector< double > const *)arg1)->size();
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JDList,capacity) {
|
|
std::vector< double > *arg1 = (std::vector< double > *) 0 ;
|
|
std::vector< double >::size_type result;
|
|
|
|
arg1 = (std::vector< double > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = ((std::vector< double > const *)arg1)->capacity();
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JDList,reserve) {
|
|
std::vector< double > *arg1 = (std::vector< double > *) 0 ;
|
|
std::vector< double >::size_type arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (std::vector< double > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (std::vector< double >::size_type) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
(arg1)->reserve(arg2);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JDList,clear) {
|
|
std::vector< double > *arg1 = (std::vector< double > *) 0 ;
|
|
|
|
arg1 = (std::vector< double > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
(arg1)->clear();
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JDList,push) {
|
|
std::vector< double > *arg1 = (std::vector< double > *) 0 ;
|
|
std::vector< double >::value_type *arg2 = 0 ;
|
|
std::vector< double >::value_type temp2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (std::vector< double > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,48,CONVERT_FLOAT_IN@*/
|
|
temp2 = (std::vector< double >::value_type) zval_get_double(&args[0]);
|
|
/*@SWIG@*/;
|
|
arg2 = &temp2;
|
|
|
|
(arg1)->push_back((std::vector< double >::value_type const &)*arg2);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JDList,is_empty) {
|
|
std::vector< double > *arg1 = (std::vector< double > *) 0 ;
|
|
bool result;
|
|
|
|
arg1 = (std::vector< double > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (bool)std_vector_Sl_double_Sg__is_empty((std::vector< double > const *)arg1);
|
|
|
|
RETVAL_BOOL((result) ? 1 : 0);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JDList,pop) {
|
|
std::vector< double > *arg1 = (std::vector< double > *) 0 ;
|
|
double result;
|
|
|
|
arg1 = (std::vector< double > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
try {
|
|
result = (double)std_vector_Sl_double_Sg__pop(arg1);
|
|
} catch(std::out_of_range &_e) {
|
|
(void)_e;
|
|
zend_throw_exception(NULL, "C++ std::out_of_range exception thrown", 0);
|
|
goto fail;
|
|
|
|
}
|
|
|
|
RETVAL_DOUBLE(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JDList,get) {
|
|
std::vector< double > *arg1 = (std::vector< double > *) 0 ;
|
|
int arg2 ;
|
|
zval args[1];
|
|
std::vector< double >::value_type *result = 0 ;
|
|
|
|
arg1 = (std::vector< double > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
try {
|
|
result = (std::vector< double >::value_type *) &std_vector_Sl_double_Sg__get(arg1,arg2);
|
|
} catch(std::out_of_range &_e) {
|
|
(void)_e;
|
|
zend_throw_exception(NULL, "C++ std::out_of_range exception thrown", 0);
|
|
goto fail;
|
|
|
|
}
|
|
|
|
RETVAL_DOUBLE(*result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JDList,set) {
|
|
std::vector< double > *arg1 = (std::vector< double > *) 0 ;
|
|
int arg2 ;
|
|
std::vector< double >::value_type *arg3 = 0 ;
|
|
std::vector< double >::value_type temp3 ;
|
|
zval args[2];
|
|
|
|
arg1 = (std::vector< double > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,48,CONVERT_FLOAT_IN@*/
|
|
temp3 = (std::vector< double >::value_type) zval_get_double(&args[1]);
|
|
/*@SWIG@*/;
|
|
arg3 = &temp3;
|
|
|
|
try {
|
|
std_vector_Sl_double_Sg__set(arg1,arg2,(double const &)*arg3);
|
|
} catch(std::out_of_range &_e) {
|
|
(void)_e;
|
|
zend_throw_exception(NULL, "C++ std::out_of_range exception thrown", 0);
|
|
goto fail;
|
|
|
|
}
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
|
|
|
|
PHP_METHOD(JDList,__set) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[2];
|
|
zval tempZval;
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if (!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_NULL();
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
arg->newobject = zval_get_long(&args[1]);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
PHP_METHOD(JDList,__get) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[1];
|
|
zval tempZval;
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if (!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_NULL();
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
if(arg->newobject) {
|
|
RETVAL_LONG(1);
|
|
}
|
|
else {
|
|
RETVAL_LONG(0);
|
|
}
|
|
}
|
|
|
|
else {
|
|
RETVAL_NULL();
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
PHP_METHOD(JDList,__isset) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[1];
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if(!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_FALSE;
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
RETVAL_TRUE;
|
|
}
|
|
|
|
else {
|
|
RETVAL_FALSE;
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_new_JQList__SWIG_0) {
|
|
std::vector< sxtwl::JieQiInfo > *result = 0 ;
|
|
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (std::vector< sxtwl::JieQiInfo > *)new std::vector< sxtwl::JieQiInfo >();
|
|
|
|
SWIG_SetPointerZval(ZEND_THIS, (void *)result, SWIGTYPE_p_std__vectorT_sxtwl__JieQiInfo_t, 1);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_new_JQList__SWIG_1) {
|
|
std::vector< sxtwl::JieQiInfo >::size_type arg1 ;
|
|
zval args[1];
|
|
std::vector< sxtwl::JieQiInfo > *result = 0 ;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg1 = (std::vector< sxtwl::JieQiInfo >::size_type) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (std::vector< sxtwl::JieQiInfo > *)new std::vector< sxtwl::JieQiInfo >(arg1);
|
|
|
|
SWIG_SetPointerZval(ZEND_THIS, (void *)result, SWIGTYPE_p_std__vectorT_sxtwl__JieQiInfo_t, 1);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_new_JQList__SWIG_2) {
|
|
std::vector< sxtwl::JieQiInfo > *arg1 = 0 ;
|
|
zval args[1];
|
|
std::vector< sxtwl::JieQiInfo > *result = 0 ;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_std__vectorT_sxtwl__JieQiInfo_t, 0) < 0 || arg1 == NULL) {
|
|
zend_type_error("Expected SWIGTYPE_p_std__vectorT_sxtwl__JieQiInfo_t for argument 1 of new_JQList");
|
|
return;
|
|
}
|
|
|
|
result = (std::vector< sxtwl::JieQiInfo > *)new std::vector< sxtwl::JieQiInfo >((std::vector< sxtwl::JieQiInfo > const &)*arg1);
|
|
|
|
SWIG_SetPointerZval(ZEND_THIS, (void *)result, SWIGTYPE_p_std__vectorT_sxtwl__JieQiInfo_t, 1);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JQList,__construct) {
|
|
int argc;
|
|
zval argv[1];
|
|
|
|
argc = ZEND_NUM_ARGS();
|
|
zend_get_parameters_array_ex(argc, argv);
|
|
if (argc == 0) {
|
|
_wrap_new_JQList__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
if (argc == 1) {
|
|
int _v = 0;
|
|
{
|
|
void *tmp;
|
|
_v = (SWIG_ConvertPtr(&argv[0], (void**)&tmp, SWIGTYPE_p_std__vectorT_sxtwl__JieQiInfo_t, SWIG_POINTER_NO_NULL) >= 0);
|
|
}
|
|
if (_v) {
|
|
_wrap_new_JQList__SWIG_2(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
if (argc == 1) {
|
|
int _v = 0;
|
|
_v = (Z_TYPE(argv[0]) == IS_LONG);
|
|
if (_v) {
|
|
_wrap_new_JQList__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
|
|
zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'new_JQList'", 0);
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JQList,size) {
|
|
std::vector< sxtwl::JieQiInfo > *arg1 = (std::vector< sxtwl::JieQiInfo > *) 0 ;
|
|
std::vector< sxtwl::JieQiInfo >::size_type result;
|
|
|
|
arg1 = (std::vector< sxtwl::JieQiInfo > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = ((std::vector< sxtwl::JieQiInfo > const *)arg1)->size();
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JQList,capacity) {
|
|
std::vector< sxtwl::JieQiInfo > *arg1 = (std::vector< sxtwl::JieQiInfo > *) 0 ;
|
|
std::vector< sxtwl::JieQiInfo >::size_type result;
|
|
|
|
arg1 = (std::vector< sxtwl::JieQiInfo > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = ((std::vector< sxtwl::JieQiInfo > const *)arg1)->capacity();
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JQList,reserve) {
|
|
std::vector< sxtwl::JieQiInfo > *arg1 = (std::vector< sxtwl::JieQiInfo > *) 0 ;
|
|
std::vector< sxtwl::JieQiInfo >::size_type arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (std::vector< sxtwl::JieQiInfo > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (std::vector< sxtwl::JieQiInfo >::size_type) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
(arg1)->reserve(arg2);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JQList,clear) {
|
|
std::vector< sxtwl::JieQiInfo > *arg1 = (std::vector< sxtwl::JieQiInfo > *) 0 ;
|
|
|
|
arg1 = (std::vector< sxtwl::JieQiInfo > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
(arg1)->clear();
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JQList,push) {
|
|
std::vector< sxtwl::JieQiInfo > *arg1 = (std::vector< sxtwl::JieQiInfo > *) 0 ;
|
|
std::vector< sxtwl::JieQiInfo >::value_type *arg2 = 0 ;
|
|
zval args[1];
|
|
|
|
arg1 = (std::vector< sxtwl::JieQiInfo > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
if (SWIG_ConvertPtr(&args[0], (void **) &arg2, SWIGTYPE_p_sxtwl__JieQiInfo, 0) < 0 || arg2 == NULL) {
|
|
zend_type_error("Expected SWIGTYPE_p_sxtwl__JieQiInfo for argument 2 of JQList_push");
|
|
return;
|
|
}
|
|
|
|
(arg1)->push_back((std::vector< sxtwl::JieQiInfo >::value_type const &)*arg2);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JQList,is_empty) {
|
|
std::vector< sxtwl::JieQiInfo > *arg1 = (std::vector< sxtwl::JieQiInfo > *) 0 ;
|
|
bool result;
|
|
|
|
arg1 = (std::vector< sxtwl::JieQiInfo > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (bool)std_vector_Sl_sxtwl_JieQiInfo_Sg__is_empty((std::vector< sxtwl::JieQiInfo > const *)arg1);
|
|
|
|
RETVAL_BOOL((result) ? 1 : 0);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JQList,pop) {
|
|
std::vector< sxtwl::JieQiInfo > *arg1 = (std::vector< sxtwl::JieQiInfo > *) 0 ;
|
|
sxtwl::JieQiInfo result;
|
|
|
|
arg1 = (std::vector< sxtwl::JieQiInfo > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
try {
|
|
result = std_vector_Sl_sxtwl_JieQiInfo_Sg__pop(arg1);
|
|
} catch(std::out_of_range &_e) {
|
|
(void)_e;
|
|
zend_throw_exception(NULL, "C++ std::out_of_range exception thrown", 0);
|
|
goto fail;
|
|
|
|
}
|
|
{
|
|
sxtwl::JieQiInfo * resultobj = new sxtwl::JieQiInfo(result);
|
|
|
|
|
|
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_sxtwl__JieQiInfo, 1);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JQList,get) {
|
|
std::vector< sxtwl::JieQiInfo > *arg1 = (std::vector< sxtwl::JieQiInfo > *) 0 ;
|
|
int arg2 ;
|
|
zval args[1];
|
|
std::vector< sxtwl::JieQiInfo >::value_type *result = 0 ;
|
|
|
|
arg1 = (std::vector< sxtwl::JieQiInfo > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
try {
|
|
result = (std::vector< sxtwl::JieQiInfo >::value_type *) &std_vector_Sl_sxtwl_JieQiInfo_Sg__get(arg1,arg2);
|
|
} catch(std::out_of_range &_e) {
|
|
(void)_e;
|
|
zend_throw_exception(NULL, "C++ std::out_of_range exception thrown", 0);
|
|
goto fail;
|
|
|
|
}
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_sxtwl__JieQiInfo, 0);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JQList,set) {
|
|
std::vector< sxtwl::JieQiInfo > *arg1 = (std::vector< sxtwl::JieQiInfo > *) 0 ;
|
|
int arg2 ;
|
|
std::vector< sxtwl::JieQiInfo >::value_type *arg3 = 0 ;
|
|
zval args[2];
|
|
|
|
arg1 = (std::vector< sxtwl::JieQiInfo > *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
if (SWIG_ConvertPtr(&args[1], (void **) &arg3, SWIGTYPE_p_sxtwl__JieQiInfo, 0) < 0 || arg3 == NULL) {
|
|
zend_type_error("Expected SWIGTYPE_p_sxtwl__JieQiInfo for argument 3 of JQList_set");
|
|
return;
|
|
}
|
|
|
|
try {
|
|
std_vector_Sl_sxtwl_JieQiInfo_Sg__set(arg1,arg2,(sxtwl::JieQiInfo const &)*arg3);
|
|
} catch(std::out_of_range &_e) {
|
|
(void)_e;
|
|
zend_throw_exception(NULL, "C++ std::out_of_range exception thrown", 0);
|
|
goto fail;
|
|
|
|
}
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
|
|
|
|
PHP_METHOD(JQList,__set) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[2];
|
|
zval tempZval;
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if (!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_NULL();
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
arg->newobject = zval_get_long(&args[1]);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
PHP_METHOD(JQList,__get) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[1];
|
|
zval tempZval;
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if (!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_NULL();
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
if(arg->newobject) {
|
|
RETVAL_LONG(1);
|
|
}
|
|
else {
|
|
RETVAL_LONG(0);
|
|
}
|
|
}
|
|
|
|
else {
|
|
RETVAL_NULL();
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
PHP_METHOD(JQList,__isset) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[1];
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if(!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_FALSE;
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
RETVAL_TRUE;
|
|
}
|
|
|
|
else {
|
|
RETVAL_FALSE;
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_new_Time__SWIG_0) {
|
|
Time *result = 0 ;
|
|
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (Time *)new Time();
|
|
|
|
SWIG_SetPointerZval(ZEND_THIS, (void *)result, SWIGTYPE_p_Time, 1);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_new_Time__SWIG_1) {
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
double arg4 ;
|
|
double arg5 ;
|
|
double arg6 ;
|
|
zval args[6];
|
|
Time *result = 0 ;
|
|
|
|
if(ZEND_NUM_ARGS() != 6 || zend_get_parameters_array_ex(6, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg1 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (int) zval_get_long(&args[1]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg3 = (int) zval_get_long(&args[2]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,48,CONVERT_FLOAT_IN@*/
|
|
arg4 = (double) zval_get_double(&args[3]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,48,CONVERT_FLOAT_IN@*/
|
|
arg5 = (double) zval_get_double(&args[4]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,48,CONVERT_FLOAT_IN@*/
|
|
arg6 = (double) zval_get_double(&args[5]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (Time *)new Time(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
|
|
SWIG_SetPointerZval(ZEND_THIS, (void *)result, SWIGTYPE_p_Time, 1);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,__construct) {
|
|
int argc;
|
|
zval argv[6];
|
|
|
|
argc = ZEND_NUM_ARGS();
|
|
zend_get_parameters_array_ex(argc, argv);
|
|
if (argc == 0) {
|
|
_wrap_new_Time__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
if (argc == 6) {
|
|
int _v = 0;
|
|
_v = (Z_TYPE(argv[0]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[1]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[2]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[3]) == IS_DOUBLE);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[4]) == IS_DOUBLE);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[5]) == IS_DOUBLE);
|
|
if (_v) {
|
|
_wrap_new_Time__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'new_Time'", 0);
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,Y_set) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
int arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
if (arg1) (arg1)->Y = arg2;
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,Y_get) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
int result;
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (int) ((arg1)->Y);
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,M_set) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
int arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
if (arg1) (arg1)->M = arg2;
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,M_get) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
int result;
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (int) ((arg1)->M);
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,D_set) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
int arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
if (arg1) (arg1)->D = arg2;
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,D_get) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
int result;
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (int) ((arg1)->D);
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,h_set) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
double arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,48,CONVERT_FLOAT_IN@*/
|
|
arg2 = (double) zval_get_double(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
if (arg1) (arg1)->h = arg2;
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,h_get) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
double result;
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (double) ((arg1)->h);
|
|
|
|
RETVAL_DOUBLE(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,m_set) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
double arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,48,CONVERT_FLOAT_IN@*/
|
|
arg2 = (double) zval_get_double(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
if (arg1) (arg1)->m = arg2;
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,m_get) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
double result;
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (double) ((arg1)->m);
|
|
|
|
RETVAL_DOUBLE(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,s_set) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
double arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,48,CONVERT_FLOAT_IN@*/
|
|
arg2 = (double) zval_get_double(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
if (arg1) (arg1)->s = arg2;
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,s_get) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
double result;
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (double) ((arg1)->s);
|
|
|
|
RETVAL_DOUBLE(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,getYear) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
int result;
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (int)(arg1)->getYear();
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,setYear) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
int arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
(arg1)->setYear(arg2);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,setMonth) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
int arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
(arg1)->setMonth(arg2);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,getMonth) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
int result;
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (int)(arg1)->getMonth();
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,getDay) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
int result;
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (int)(arg1)->getDay();
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,setDay) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
int arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
(arg1)->setDay(arg2);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,getHour) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
double result;
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (double)(arg1)->getHour();
|
|
|
|
RETVAL_DOUBLE(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,setHour) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
double arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,48,CONVERT_FLOAT_IN@*/
|
|
arg2 = (double) zval_get_double(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
(arg1)->setHour(arg2);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,getMin) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
double result;
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (double)(arg1)->getMin();
|
|
|
|
RETVAL_DOUBLE(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,setMour) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
double arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,48,CONVERT_FLOAT_IN@*/
|
|
arg2 = (double) zval_get_double(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
(arg1)->setMour(arg2);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,getSec) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
double result;
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (double)(arg1)->getSec();
|
|
|
|
RETVAL_DOUBLE(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Time,setSec) {
|
|
Time *arg1 = (Time *) 0 ;
|
|
double arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (Time *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,48,CONVERT_FLOAT_IN@*/
|
|
arg2 = (double) zval_get_double(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
(arg1)->setSec(arg2);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
|
|
|
|
PHP_METHOD(Time,__set) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[2];
|
|
zval tempZval;
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if (!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_NULL();
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"Y") == 0) {
|
|
ZVAL_STRING(&tempZval, "Y_set");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,1,&args[1]);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"M") == 0) {
|
|
ZVAL_STRING(&tempZval, "M_set");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,1,&args[1]);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"D") == 0) {
|
|
ZVAL_STRING(&tempZval, "D_set");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,1,&args[1]);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"h") == 0) {
|
|
ZVAL_STRING(&tempZval, "h_set");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,1,&args[1]);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"m") == 0) {
|
|
ZVAL_STRING(&tempZval, "m_set");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,1,&args[1]);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"s") == 0) {
|
|
ZVAL_STRING(&tempZval, "s_set");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,1,&args[1]);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
arg->newobject = zval_get_long(&args[1]);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
PHP_METHOD(Time,__get) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[1];
|
|
zval tempZval;
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if (!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_NULL();
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"Y") == 0) {
|
|
ZVAL_STRING(&tempZval, "Y_get");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,0,NULL);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"M") == 0) {
|
|
ZVAL_STRING(&tempZval, "M_get");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,0,NULL);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"D") == 0) {
|
|
ZVAL_STRING(&tempZval, "D_get");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,0,NULL);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"h") == 0) {
|
|
ZVAL_STRING(&tempZval, "h_get");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,0,NULL);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"m") == 0) {
|
|
ZVAL_STRING(&tempZval, "m_get");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,0,NULL);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"s") == 0) {
|
|
ZVAL_STRING(&tempZval, "s_get");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,0,NULL);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
if(arg->newobject) {
|
|
RETVAL_LONG(1);
|
|
}
|
|
else {
|
|
RETVAL_LONG(0);
|
|
}
|
|
}
|
|
|
|
else {
|
|
RETVAL_NULL();
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
PHP_METHOD(Time,__isset) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[1];
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if(!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_FALSE;
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
RETVAL_TRUE;
|
|
}
|
|
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"Y") == 0) {
|
|
RETVAL_TRUE;
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"M") == 0) {
|
|
RETVAL_TRUE;
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"D") == 0) {
|
|
RETVAL_TRUE;
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"h") == 0) {
|
|
RETVAL_TRUE;
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"m") == 0) {
|
|
RETVAL_TRUE;
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"s") == 0) {
|
|
RETVAL_TRUE;
|
|
}
|
|
else {
|
|
RETVAL_FALSE;
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_new_GZ__SWIG_0) {
|
|
GZ *result = 0 ;
|
|
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (GZ *)new GZ();
|
|
|
|
SWIG_SetPointerZval(ZEND_THIS, (void *)result, SWIGTYPE_p_GZ, 1);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_new_GZ__SWIG_1) {
|
|
uint8_t arg1 ;
|
|
uint8_t arg2 ;
|
|
zval args[2];
|
|
GZ *result = 0 ;
|
|
|
|
if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg1 = (uint8_t) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (uint8_t) zval_get_long(&args[1]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (GZ *)new GZ(arg1,arg2);
|
|
|
|
SWIG_SetPointerZval(ZEND_THIS, (void *)result, SWIGTYPE_p_GZ, 1);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(GZ,__construct) {
|
|
int argc;
|
|
zval argv[2];
|
|
|
|
argc = ZEND_NUM_ARGS();
|
|
zend_get_parameters_array_ex(argc, argv);
|
|
if (argc == 0) {
|
|
_wrap_new_GZ__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
if (argc == 2) {
|
|
int _v = 0;
|
|
_v = (Z_TYPE(argv[0]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[1]) == IS_LONG);
|
|
if (_v) {
|
|
_wrap_new_GZ__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
}
|
|
|
|
zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'new_GZ'", 0);
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(GZ,tg_set) {
|
|
GZ *arg1 = (GZ *) 0 ;
|
|
uint8_t arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (GZ *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (uint8_t) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
if (arg1) (arg1)->tg = arg2;
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(GZ,tg_get) {
|
|
GZ *arg1 = (GZ *) 0 ;
|
|
uint8_t result;
|
|
|
|
arg1 = (GZ *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (uint8_t) ((arg1)->tg);
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(GZ,dz_set) {
|
|
GZ *arg1 = (GZ *) 0 ;
|
|
uint8_t arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (GZ *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (uint8_t) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
if (arg1) (arg1)->dz = arg2;
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(GZ,dz_get) {
|
|
GZ *arg1 = (GZ *) 0 ;
|
|
uint8_t result;
|
|
|
|
arg1 = (GZ *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (uint8_t) ((arg1)->dz);
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
|
|
|
|
PHP_METHOD(GZ,__set) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[2];
|
|
zval tempZval;
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if (!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_NULL();
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"tg") == 0) {
|
|
ZVAL_STRING(&tempZval, "tg_set");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,1,&args[1]);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"dz") == 0) {
|
|
ZVAL_STRING(&tempZval, "dz_set");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,1,&args[1]);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
arg->newobject = zval_get_long(&args[1]);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
PHP_METHOD(GZ,__get) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[1];
|
|
zval tempZval;
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if (!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_NULL();
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"tg") == 0) {
|
|
ZVAL_STRING(&tempZval, "tg_get");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,0,NULL);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"dz") == 0) {
|
|
ZVAL_STRING(&tempZval, "dz_get");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,0,NULL);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
if(arg->newobject) {
|
|
RETVAL_LONG(1);
|
|
}
|
|
else {
|
|
RETVAL_LONG(0);
|
|
}
|
|
}
|
|
|
|
else {
|
|
RETVAL_NULL();
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
PHP_METHOD(GZ,__isset) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[1];
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if(!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_FALSE;
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
RETVAL_TRUE;
|
|
}
|
|
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"tg") == 0) {
|
|
RETVAL_TRUE;
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"dz") == 0) {
|
|
RETVAL_TRUE;
|
|
}
|
|
else {
|
|
RETVAL_FALSE;
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
|
|
|
|
static PHP_METHOD(Day,fromSolar) {
|
|
int arg1 ;
|
|
uint8_t arg2 ;
|
|
int arg3 ;
|
|
zval args[3];
|
|
Day *result = 0 ;
|
|
|
|
if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg1 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (uint8_t) zval_get_long(&args[1]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg3 = (int) zval_get_long(&args[2]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (Day *)Day::fromSolar(arg1,arg2,arg3);
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Day, 0);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_Day_fromLunar__SWIG_0) {
|
|
int arg1 ;
|
|
uint8_t arg2 ;
|
|
int arg3 ;
|
|
bool arg4 ;
|
|
zval args[4];
|
|
Day *result = 0 ;
|
|
|
|
if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg1 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (uint8_t) zval_get_long(&args[1]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg3 = (int) zval_get_long(&args[2]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,2,CONVERT_BOOL_IN@*/
|
|
arg4 = (bool) zval_is_true(&args[3]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (Day *)Day::fromLunar(arg1,arg2,arg3,arg4);
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Day, 0);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_Day_fromLunar__SWIG_1) {
|
|
int arg1 ;
|
|
uint8_t arg2 ;
|
|
int arg3 ;
|
|
zval args[3];
|
|
Day *result = 0 ;
|
|
|
|
if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg1 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (uint8_t) zval_get_long(&args[1]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg3 = (int) zval_get_long(&args[2]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (Day *)Day::fromLunar(arg1,arg2,arg3);
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Day, 0);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,fromLunar) {
|
|
int argc;
|
|
zval argv[4];
|
|
|
|
argc = ZEND_NUM_ARGS();
|
|
zend_get_parameters_array_ex(argc, argv);
|
|
if (argc == 3) {
|
|
int _v = 0;
|
|
_v = (Z_TYPE(argv[0]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[1]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[2]) == IS_LONG);
|
|
if (_v) {
|
|
_wrap_Day_fromLunar__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 4) {
|
|
int _v = 0;
|
|
_v = (Z_TYPE(argv[0]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[1]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[2]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[3]) == IS_TRUE || Z_TYPE(argv[3]) == IS_FALSE);
|
|
if (_v) {
|
|
_wrap_Day_fromLunar__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'Day_fromLunar'", 0);
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,after) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
int arg2 ;
|
|
zval args[1];
|
|
Day *result = 0 ;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (Day *)(arg1)->after(arg2);
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Day, 0);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,before) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
int arg2 ;
|
|
zval args[1];
|
|
Day *result = 0 ;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (Day *)(arg1)->before(arg2);
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Day, 0);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,getLunarDay) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
int result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (int)(arg1)->getLunarDay();
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,getLunarMonth) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
uint8_t result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (uint8_t)(arg1)->getLunarMonth();
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_Day_getLunarYear__SWIG_0) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
bool arg2 ;
|
|
zval args[1];
|
|
int result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,2,CONVERT_BOOL_IN@*/
|
|
arg2 = (bool) zval_is_true(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (int)(arg1)->getLunarYear(arg2);
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_Day_getLunarYear__SWIG_1) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
int result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (int)(arg1)->getLunarYear();
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,getLunarYear) {
|
|
int argc;
|
|
zval argv[1];
|
|
|
|
argc = ZEND_NUM_ARGS();
|
|
zend_get_parameters_array_ex(argc, argv);
|
|
if (argc == 0) {
|
|
_wrap_Day_getLunarYear__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
if (argc == 1) {
|
|
int _v = 0;
|
|
_v = (Z_TYPE(argv[0]) == IS_TRUE || Z_TYPE(argv[0]) == IS_FALSE);
|
|
if (_v) {
|
|
_wrap_Day_getLunarYear__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
|
|
zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'Day_getLunarYear'", 0);
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_Day_getYearGZ__SWIG_0) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
bool arg2 ;
|
|
zval args[1];
|
|
GZ result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,2,CONVERT_BOOL_IN@*/
|
|
arg2 = (bool) zval_is_true(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (arg1)->getYearGZ(arg2);
|
|
{
|
|
GZ * resultobj = new GZ(result);
|
|
|
|
|
|
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_GZ, 1);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_Day_getYearGZ__SWIG_1) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
GZ result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (arg1)->getYearGZ();
|
|
{
|
|
GZ * resultobj = new GZ(result);
|
|
|
|
|
|
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_GZ, 1);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,getYearGZ) {
|
|
int argc;
|
|
zval argv[1];
|
|
|
|
argc = ZEND_NUM_ARGS();
|
|
zend_get_parameters_array_ex(argc, argv);
|
|
if (argc == 0) {
|
|
_wrap_Day_getYearGZ__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
if (argc == 1) {
|
|
int _v = 0;
|
|
_v = (Z_TYPE(argv[0]) == IS_TRUE || Z_TYPE(argv[0]) == IS_FALSE);
|
|
if (_v) {
|
|
_wrap_Day_getYearGZ__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
|
|
zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'Day_getYearGZ'", 0);
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,getMonthGZ) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
GZ result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (arg1)->getMonthGZ();
|
|
{
|
|
GZ * resultobj = new GZ(result);
|
|
|
|
|
|
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_GZ, 1);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,getDayGZ) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
GZ result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (arg1)->getDayGZ();
|
|
{
|
|
GZ * resultobj = new GZ(result);
|
|
|
|
|
|
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_GZ, 1);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_Day_getHourGZ__SWIG_0) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
uint8_t arg2 ;
|
|
bool arg3 ;
|
|
zval args[2];
|
|
GZ result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (uint8_t) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,2,CONVERT_BOOL_IN@*/
|
|
arg3 = (bool) zval_is_true(&args[1]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (arg1)->getHourGZ(arg2,arg3);
|
|
{
|
|
GZ * resultobj = new GZ(result);
|
|
|
|
|
|
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_GZ, 1);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_Day_getHourGZ__SWIG_1) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
uint8_t arg2 ;
|
|
zval args[1];
|
|
GZ result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (uint8_t) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (arg1)->getHourGZ(arg2);
|
|
{
|
|
GZ * resultobj = new GZ(result);
|
|
|
|
|
|
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_GZ, 1);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,getHourGZ) {
|
|
int argc;
|
|
zval argv[2];
|
|
|
|
argc = ZEND_NUM_ARGS();
|
|
zend_get_parameters_array_ex(argc, argv);
|
|
if (argc == 1) {
|
|
int _v = 0;
|
|
_v = (Z_TYPE(argv[0]) == IS_LONG);
|
|
if (_v) {
|
|
_wrap_Day_getHourGZ__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v = 0;
|
|
_v = (Z_TYPE(argv[0]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[1]) == IS_TRUE || Z_TYPE(argv[1]) == IS_FALSE);
|
|
if (_v) {
|
|
_wrap_Day_getHourGZ__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
}
|
|
|
|
zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'Day_getHourGZ'", 0);
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,isLunarLeap) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
bool result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (bool)(arg1)->isLunarLeap();
|
|
|
|
RETVAL_BOOL((result) ? 1 : 0);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,getSolarYear) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
int result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (int)(arg1)->getSolarYear();
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,getSolarMonth) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
uint8_t result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (uint8_t)(arg1)->getSolarMonth();
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,getSolarDay) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
int result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (int)(arg1)->getSolarDay();
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,getWeek) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
uint8_t result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (uint8_t)(arg1)->getWeek();
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,getWeekIndex) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
uint8_t result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (uint8_t)(arg1)->getWeekIndex();
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,hasJieQi) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
bool result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (bool)(arg1)->hasJieQi();
|
|
|
|
RETVAL_BOOL((result) ? 1 : 0);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,getJieQi) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
uint8_t result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (uint8_t)(arg1)->getJieQi();
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,getJieQiJD) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
double result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (double)(arg1)->getJieQiJD();
|
|
|
|
RETVAL_DOUBLE(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(Day,getConstellation) {
|
|
Day *arg1 = (Day *) 0 ;
|
|
uint8_t result;
|
|
|
|
arg1 = (Day *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (uint8_t)(arg1)->getConstellation();
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
|
|
|
|
PHP_METHOD(Day,__set) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[2];
|
|
zval tempZval;
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if (!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_NULL();
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
arg->newobject = zval_get_long(&args[1]);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
PHP_METHOD(Day,__get) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[1];
|
|
zval tempZval;
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if (!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_NULL();
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
if(arg->newobject) {
|
|
RETVAL_LONG(1);
|
|
}
|
|
else {
|
|
RETVAL_LONG(0);
|
|
}
|
|
}
|
|
|
|
else {
|
|
RETVAL_NULL();
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
PHP_METHOD(Day,__isset) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[1];
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if(!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_FALSE;
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
RETVAL_TRUE;
|
|
}
|
|
|
|
else {
|
|
RETVAL_FALSE;
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
|
|
|
|
static PHP_METHOD(JieQiInfo,jd_set) {
|
|
sxtwl::JieQiInfo *arg1 = (sxtwl::JieQiInfo *) 0 ;
|
|
double arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (sxtwl::JieQiInfo *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,48,CONVERT_FLOAT_IN@*/
|
|
arg2 = (double) zval_get_double(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
if (arg1) (arg1)->jd = arg2;
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JieQiInfo,jd_get) {
|
|
sxtwl::JieQiInfo *arg1 = (sxtwl::JieQiInfo *) 0 ;
|
|
double result;
|
|
|
|
arg1 = (sxtwl::JieQiInfo *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (double) ((arg1)->jd);
|
|
|
|
RETVAL_DOUBLE(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JieQiInfo,jqIndex_set) {
|
|
sxtwl::JieQiInfo *arg1 = (sxtwl::JieQiInfo *) 0 ;
|
|
uint8_t arg2 ;
|
|
zval args[1];
|
|
|
|
arg1 = (sxtwl::JieQiInfo *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (uint8_t) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
if (arg1) (arg1)->jqIndex = arg2;
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JieQiInfo,jqIndex_get) {
|
|
sxtwl::JieQiInfo *arg1 = (sxtwl::JieQiInfo *) 0 ;
|
|
uint8_t result;
|
|
|
|
arg1 = (sxtwl::JieQiInfo *)SWIG_Z_FETCH_OBJ_P(ZEND_THIS)->ptr;
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (uint8_t) ((arg1)->jqIndex);
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(JieQiInfo,__construct) {
|
|
sxtwl::JieQiInfo *result = 0 ;
|
|
|
|
if(ZEND_NUM_ARGS() != 0) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
result = (sxtwl::JieQiInfo *)new sxtwl::JieQiInfo();
|
|
|
|
SWIG_SetPointerZval(ZEND_THIS, (void *)result, SWIGTYPE_p_sxtwl__JieQiInfo, 1);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
|
|
|
|
PHP_METHOD(JieQiInfo,__set) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[2];
|
|
zval tempZval;
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if (!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_NULL();
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"jd") == 0) {
|
|
ZVAL_STRING(&tempZval, "jd_set");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,1,&args[1]);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"jqIndex") == 0) {
|
|
ZVAL_STRING(&tempZval, "jqIndex_set");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,1,&args[1]);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
arg->newobject = zval_get_long(&args[1]);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
PHP_METHOD(JieQiInfo,__get) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[1];
|
|
zval tempZval;
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if (!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_NULL();
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"jd") == 0) {
|
|
ZVAL_STRING(&tempZval, "jd_get");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,0,NULL);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"jqIndex") == 0) {
|
|
ZVAL_STRING(&tempZval, "jqIndex_get");
|
|
call_user_function(EG(function_table),ZEND_THIS,&tempZval,return_value,0,NULL);
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
if(arg->newobject) {
|
|
RETVAL_LONG(1);
|
|
}
|
|
else {
|
|
RETVAL_LONG(0);
|
|
}
|
|
}
|
|
|
|
else {
|
|
RETVAL_NULL();
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
PHP_METHOD(JieQiInfo,__isset) {
|
|
swig_object_wrapper *arg = SWIG_Z_FETCH_OBJ_P(ZEND_THIS);
|
|
zval args[1];
|
|
zend_string *arg2 = 0;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
if(!arg) {
|
|
zend_throw_exception(zend_ce_type_error, "this pointer is NULL", 0);
|
|
return;
|
|
}
|
|
arg2 = Z_STR(args[0]);
|
|
|
|
if (!arg2) {
|
|
RETVAL_FALSE;
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"thisown") == 0) {
|
|
RETVAL_TRUE;
|
|
}
|
|
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"jd") == 0) {
|
|
RETVAL_TRUE;
|
|
}
|
|
|
|
else if (strcmp(ZSTR_VAL(arg2),"jqIndex") == 0) {
|
|
RETVAL_TRUE;
|
|
}
|
|
else {
|
|
RETVAL_FALSE;
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
|
|
|
|
static PHP_METHOD(sxtwl,fromSolar) {
|
|
PHP_FN(fromSolar)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
|
|
}
|
|
|
|
static PHP_FUNCTION(fromSolar) {
|
|
int arg1 ;
|
|
uint8_t arg2 ;
|
|
int arg3 ;
|
|
zval args[3];
|
|
Day *result = 0 ;
|
|
|
|
if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg1 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (uint8_t) zval_get_long(&args[1]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg3 = (int) zval_get_long(&args[2]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (Day *)sxtwl::fromSolar(arg1,arg2,arg3);
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Day, 0);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_fromLunar__SWIG_0) {
|
|
int arg1 ;
|
|
uint8_t arg2 ;
|
|
int arg3 ;
|
|
bool arg4 ;
|
|
zval args[4];
|
|
Day *result = 0 ;
|
|
|
|
if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg1 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (uint8_t) zval_get_long(&args[1]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg3 = (int) zval_get_long(&args[2]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,2,CONVERT_BOOL_IN@*/
|
|
arg4 = (bool) zval_is_true(&args[3]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (Day *)sxtwl::fromLunar(arg1,arg2,arg3,arg4);
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Day, 0);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_fromLunar__SWIG_1) {
|
|
int arg1 ;
|
|
uint8_t arg2 ;
|
|
int arg3 ;
|
|
zval args[3];
|
|
Day *result = 0 ;
|
|
|
|
if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg1 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (uint8_t) zval_get_long(&args[1]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg3 = (int) zval_get_long(&args[2]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (Day *)sxtwl::fromLunar(arg1,arg2,arg3);
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_Day, 0);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_fromLunar) {
|
|
int argc;
|
|
zval argv[4];
|
|
|
|
argc = ZEND_NUM_ARGS();
|
|
zend_get_parameters_array_ex(argc, argv);
|
|
if (argc == 3) {
|
|
int _v = 0;
|
|
_v = (Z_TYPE(argv[0]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[1]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[2]) == IS_LONG);
|
|
if (_v) {
|
|
_wrap_fromLunar__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 4) {
|
|
int _v = 0;
|
|
_v = (Z_TYPE(argv[0]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[1]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[2]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[3]) == IS_TRUE || Z_TYPE(argv[3]) == IS_FALSE);
|
|
if (_v) {
|
|
_wrap_fromLunar__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'fromLunar'", 0);
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(sxtwl,siZhu2Year) {
|
|
PHP_FN(siZhu2Year)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
|
|
}
|
|
|
|
static PHP_FUNCTION(siZhu2Year) {
|
|
GZ arg1 ;
|
|
GZ arg2 ;
|
|
GZ arg3 ;
|
|
GZ arg4 ;
|
|
int arg5 ;
|
|
int arg6 ;
|
|
GZ *tmp1 ;
|
|
GZ *tmp2 ;
|
|
GZ *tmp3 ;
|
|
GZ *tmp4 ;
|
|
zval args[6];
|
|
std::vector< double > result;
|
|
|
|
if(ZEND_NUM_ARGS() != 6 || zend_get_parameters_array_ex(6, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
if (SWIG_ConvertPtr(&args[0], (void **) &tmp1, SWIGTYPE_p_GZ, 0) < 0 || tmp1 == NULL) {
|
|
zend_type_error("Expected SWIGTYPE_p_GZ for argument 1 of siZhu2Year");
|
|
return;
|
|
}
|
|
arg1 = *tmp1;
|
|
|
|
|
|
if (SWIG_ConvertPtr(&args[1], (void **) &tmp2, SWIGTYPE_p_GZ, 0) < 0 || tmp2 == NULL) {
|
|
zend_type_error("Expected SWIGTYPE_p_GZ for argument 2 of siZhu2Year");
|
|
return;
|
|
}
|
|
arg2 = *tmp2;
|
|
|
|
|
|
if (SWIG_ConvertPtr(&args[2], (void **) &tmp3, SWIGTYPE_p_GZ, 0) < 0 || tmp3 == NULL) {
|
|
zend_type_error("Expected SWIGTYPE_p_GZ for argument 3 of siZhu2Year");
|
|
return;
|
|
}
|
|
arg3 = *tmp3;
|
|
|
|
|
|
if (SWIG_ConvertPtr(&args[3], (void **) &tmp4, SWIGTYPE_p_GZ, 0) < 0 || tmp4 == NULL) {
|
|
zend_type_error("Expected SWIGTYPE_p_GZ for argument 4 of siZhu2Year");
|
|
return;
|
|
}
|
|
arg4 = *tmp4;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg5 = (int) zval_get_long(&args[4]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg6 = (int) zval_get_long(&args[5]);
|
|
/*@SWIG@*/;
|
|
|
|
result = sxtwl::siZhu2Year(SWIG_STD_MOVE(arg1),SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),SWIG_STD_MOVE(arg4),arg5,arg6);
|
|
{
|
|
std::vector< double > * resultobj = new std::vector< double >(result);
|
|
|
|
|
|
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_std__vectorT_double_t, 1);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_getShiGz__SWIG_0) {
|
|
uint8_t arg1 ;
|
|
uint8_t arg2 ;
|
|
bool arg3 ;
|
|
zval args[3];
|
|
GZ result;
|
|
|
|
if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg1 = (uint8_t) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (uint8_t) zval_get_long(&args[1]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,2,CONVERT_BOOL_IN@*/
|
|
arg3 = (bool) zval_is_true(&args[2]);
|
|
/*@SWIG@*/;
|
|
|
|
result = sxtwl::getShiGz(arg1,arg2,arg3);
|
|
{
|
|
GZ * resultobj = new GZ(result);
|
|
|
|
|
|
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_GZ, 1);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_getShiGz__SWIG_1) {
|
|
uint8_t arg1 ;
|
|
uint8_t arg2 ;
|
|
zval args[2];
|
|
GZ result;
|
|
|
|
if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg1 = (uint8_t) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (uint8_t) zval_get_long(&args[1]);
|
|
/*@SWIG@*/;
|
|
|
|
result = sxtwl::getShiGz(arg1,arg2);
|
|
{
|
|
GZ * resultobj = new GZ(result);
|
|
|
|
|
|
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_GZ, 1);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_getShiGz) {
|
|
int argc;
|
|
zval argv[3];
|
|
|
|
argc = ZEND_NUM_ARGS();
|
|
zend_get_parameters_array_ex(argc, argv);
|
|
if (argc == 2) {
|
|
int _v = 0;
|
|
_v = (Z_TYPE(argv[0]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[1]) == IS_LONG);
|
|
if (_v) {
|
|
_wrap_getShiGz__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v = 0;
|
|
_v = (Z_TYPE(argv[0]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[1]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[2]) == IS_TRUE || Z_TYPE(argv[2]) == IS_FALSE);
|
|
if (_v) {
|
|
_wrap_getShiGz__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'getShiGz'", 0);
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(sxtwl,getRunMonth) {
|
|
PHP_FN(getRunMonth)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
|
|
}
|
|
|
|
static PHP_FUNCTION(getRunMonth) {
|
|
int arg1 ;
|
|
zval args[1];
|
|
uint8_t result;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg1 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (uint8_t)sxtwl::getRunMonth(arg1);
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_getLunarMonthNum__SWIG_0) {
|
|
int arg1 ;
|
|
uint8_t arg2 ;
|
|
bool arg3 ;
|
|
zval args[3];
|
|
uint8_t result;
|
|
|
|
if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg1 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (uint8_t) zval_get_long(&args[1]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,2,CONVERT_BOOL_IN@*/
|
|
arg3 = (bool) zval_is_true(&args[2]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (uint8_t)sxtwl::getLunarMonthNum(arg1,arg2,arg3);
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_getLunarMonthNum__SWIG_1) {
|
|
int arg1 ;
|
|
uint8_t arg2 ;
|
|
zval args[2];
|
|
uint8_t result;
|
|
|
|
if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg1 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg2 = (uint8_t) zval_get_long(&args[1]);
|
|
/*@SWIG@*/;
|
|
|
|
result = (uint8_t)sxtwl::getLunarMonthNum(arg1,arg2);
|
|
|
|
RETVAL_LONG(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static ZEND_NAMED_FUNCTION(_wrap_getLunarMonthNum) {
|
|
int argc;
|
|
zval argv[3];
|
|
|
|
argc = ZEND_NUM_ARGS();
|
|
zend_get_parameters_array_ex(argc, argv);
|
|
if (argc == 2) {
|
|
int _v = 0;
|
|
_v = (Z_TYPE(argv[0]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[1]) == IS_LONG);
|
|
if (_v) {
|
|
_wrap_getLunarMonthNum__SWIG_1(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v = 0;
|
|
_v = (Z_TYPE(argv[0]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[1]) == IS_LONG);
|
|
if (_v) {
|
|
_v = (Z_TYPE(argv[2]) == IS_TRUE || Z_TYPE(argv[2]) == IS_FALSE);
|
|
if (_v) {
|
|
_wrap_getLunarMonthNum__SWIG_0(INTERNAL_FUNCTION_PARAM_PASSTHRU); return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
zend_throw_exception(zend_ce_type_error, "No matching function for overloaded 'getLunarMonthNum'", 0);
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(sxtwl,JD2DD) {
|
|
PHP_FN(JD2DD)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
|
|
}
|
|
|
|
static PHP_FUNCTION(JD2DD) {
|
|
double arg1 ;
|
|
zval args[1];
|
|
Time result;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,48,CONVERT_FLOAT_IN@*/
|
|
arg1 = (double) zval_get_double(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
result = sxtwl::JD2DD(arg1);
|
|
{
|
|
Time * resultobj = new Time(result);
|
|
|
|
|
|
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_Time, 1);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(sxtwl,toJD) {
|
|
PHP_FN(toJD)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
|
|
}
|
|
|
|
static PHP_FUNCTION(toJD) {
|
|
Time *arg1 = 0 ;
|
|
zval args[1];
|
|
double result;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_Time, 0) < 0 || arg1 == NULL) {
|
|
zend_type_error("Expected SWIGTYPE_p_Time for argument 1 of toJD");
|
|
return;
|
|
}
|
|
|
|
result = (double)sxtwl::toJD(*arg1);
|
|
|
|
RETVAL_DOUBLE(result);
|
|
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
static PHP_METHOD(sxtwl,getJieQiByYear) {
|
|
PHP_FN(getJieQiByYear)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
|
|
}
|
|
|
|
static PHP_FUNCTION(getJieQiByYear) {
|
|
int arg1 ;
|
|
zval args[1];
|
|
std::vector< sxtwl::JieQiInfo > result;
|
|
|
|
if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
|
|
WRONG_PARAM_COUNT;
|
|
}
|
|
|
|
|
|
/*@SWIG:D:\swigwin-4.1.1\Lib\php\utils.i,6,CONVERT_INT_IN@*/
|
|
arg1 = (int) zval_get_long(&args[0]);
|
|
/*@SWIG@*/;
|
|
|
|
result = sxtwl::getJieQiByYear(arg1);
|
|
{
|
|
std::vector< sxtwl::JieQiInfo > * resultobj = new std::vector< sxtwl::JieQiInfo >(result);
|
|
|
|
|
|
|
|
|
|
SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_std__vectorT_sxtwl__JieQiInfo_t, 1);
|
|
}
|
|
fail:
|
|
return;
|
|
}
|
|
|
|
|
|
/* class object handlers for pointer wrappers */
|
|
static zend_object_handlers swig_ptr_object_handlers;
|
|
|
|
/* Object Creation Method for pointer wrapping class */
|
|
static zend_object *swig_ptr_object_new(zend_class_entry *ce) {
|
|
swig_object_wrapper *obj = (swig_object_wrapper*)zend_object_alloc(sizeof(swig_object_wrapper), ce);
|
|
zend_object_std_init(&obj->std, ce);
|
|
object_properties_init(&obj->std, ce);
|
|
obj->std.handlers = &swig_ptr_object_handlers;
|
|
obj->newobject = 0;
|
|
return &obj->std;
|
|
}
|
|
|
|
/* Implement __toString equivalent, since that worked for the old-style resource wrapped pointers. */
|
|
#if PHP_MAJOR_VERSION < 8
|
|
static int swig_ptr_cast_object(zval *z, zval *retval, int type) {
|
|
#elif PHP_MAJOR_VERSION > 8 || PHP_MINOR_VERSION >= 2
|
|
static ZEND_RESULT_CODE swig_ptr_cast_object(zend_object *zobj, zval *retval, int type) {
|
|
#else
|
|
static int swig_ptr_cast_object(zend_object *zobj, zval *retval, int type) {
|
|
#endif
|
|
if (type == IS_STRING) {
|
|
#if PHP_MAJOR_VERSION < 8
|
|
swig_object_wrapper *obj = SWIG_Z_FETCH_OBJ_P(z);
|
|
#else
|
|
swig_object_wrapper *obj = swig_php_fetch_object(zobj);
|
|
#endif
|
|
ZVAL_NEW_STR(retval, zend_strpprintf(0, "SWIGPointer(%p,owned=%d)", obj->ptr, obj->newobject));
|
|
return SUCCESS;
|
|
}
|
|
return FAILURE;
|
|
}
|
|
|
|
/* end wrapper section */
|
|
/* arginfo subsection */
|
|
ZEND_BEGIN_ARG_INFO_EX(swig_magic_arginfo_get, 0, 0, 1)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_STRING,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_magic_arginfo_set, 0, 1, MAY_BE_VOID)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_STRING,NULL)
|
|
ZEND_ARG_INFO(0,arg2)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_magic_arginfo_isset, 0, 1, MAY_BE_BOOL)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_STRING,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_JD2DD, 0, 1, Time, 0)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_DOUBLE,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_fromLunar, 0, 3, Day, MAY_BE_NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_LONG,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg2,MAY_BE_LONG,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg3,MAY_BE_LONG,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg4,MAY_BE_BOOL,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_fromSolar, 0, 3, Day, MAY_BE_NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_LONG,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg2,MAY_BE_LONG,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg3,MAY_BE_LONG,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_getJieQiByYear, 0, 1, JQList, 0)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_LONG,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_getLunarMonthNum, 0, 2, MAY_BE_LONG)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_LONG,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg2,MAY_BE_LONG,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg3,MAY_BE_BOOL,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_getRunMonth, 0, 1, MAY_BE_LONG)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_LONG,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_getShiGz, 0, 2, GZ, 0)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_LONG,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg2,MAY_BE_LONG,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg3,MAY_BE_BOOL,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_siZhu2Year, 0, 6, JDList, 0)
|
|
ZEND_ARG_OBJ_TYPE_MASK(0,arg1,GZ,0,NULL)
|
|
ZEND_ARG_OBJ_TYPE_MASK(0,arg2,GZ,0,NULL)
|
|
ZEND_ARG_OBJ_TYPE_MASK(0,arg3,GZ,0,NULL)
|
|
ZEND_ARG_OBJ_TYPE_MASK(0,arg4,GZ,0,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg5,MAY_BE_LONG,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg6,MAY_BE_LONG,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_toJD, 0, 1, MAY_BE_DOUBLE)
|
|
ZEND_ARG_OBJ_TYPE_MASK(0,arg1,Time,0,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_Day_after, 0, 1, Day, MAY_BE_NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_LONG,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
#define swig_arginfo_Day_before swig_arginfo_Day_after
|
|
#define swig_arginfo_Day_fromLunar swig_arginfo_fromLunar
|
|
#define swig_arginfo_Day_fromSolar swig_arginfo_fromSolar
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_Day_getConstellation, 0, 0, MAY_BE_LONG)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_Day_getDayGZ, 0, 0, GZ, 0)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_Day_getHourGZ, 0, 1, GZ, 0)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_LONG,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg2,MAY_BE_BOOL,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
#define swig_arginfo_Day_getJieQi swig_arginfo_Day_getConstellation
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_Day_getJieQiJD, 0, 0, MAY_BE_DOUBLE)
|
|
ZEND_END_ARG_INFO()
|
|
#define swig_arginfo_Day_getLunarDay swig_arginfo_Day_getConstellation
|
|
#define swig_arginfo_Day_getLunarMonth swig_arginfo_Day_getConstellation
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_Day_getLunarYear, 0, 0, MAY_BE_LONG)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_BOOL,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
#define swig_arginfo_Day_getMonthGZ swig_arginfo_Day_getDayGZ
|
|
#define swig_arginfo_Day_getSolarDay swig_arginfo_Day_getConstellation
|
|
#define swig_arginfo_Day_getSolarMonth swig_arginfo_Day_getConstellation
|
|
#define swig_arginfo_Day_getSolarYear swig_arginfo_Day_getConstellation
|
|
#define swig_arginfo_Day_getWeek swig_arginfo_Day_getConstellation
|
|
#define swig_arginfo_Day_getWeekIndex swig_arginfo_Day_getConstellation
|
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_Day_getYearGZ, 0, 0, GZ, 0)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_BOOL,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_Day_hasJieQi, 0, 0, MAY_BE_BOOL)
|
|
ZEND_END_ARG_INFO()
|
|
#define swig_arginfo_Day_isLunarLeap swig_arginfo_Day_hasJieQi
|
|
ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_new_GZ, 0, 0, 2)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_LONG,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg2,MAY_BE_LONG,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
#define swig_arginfo_GZ_dz_get swig_arginfo_Day_getConstellation
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_GZ_dz_set, 0, 1, MAY_BE_VOID)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_LONG,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
#define swig_arginfo_GZ_tg_get swig_arginfo_Day_getConstellation
|
|
#define swig_arginfo_GZ_tg_set swig_arginfo_GZ_dz_set
|
|
ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_new_JDList, 0, 0, 1)
|
|
ZEND_ARG_OBJ_TYPE_MASK(0,arg1,JDList,MAY_BE_LONG,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
#define swig_arginfo_JDList_capacity swig_arginfo_Day_getConstellation
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_JDList_clear, 0, 0, MAY_BE_VOID)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_JDList_get, 0, 1, MAY_BE_DOUBLE)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_LONG,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
#define swig_arginfo_JDList_is_empty swig_arginfo_Day_hasJieQi
|
|
#define swig_arginfo_JDList_pop swig_arginfo_Day_getJieQiJD
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_JDList_push, 0, 1, MAY_BE_VOID)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_DOUBLE,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
#define swig_arginfo_JDList_reserve swig_arginfo_GZ_dz_set
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_JDList_set, 0, 2, MAY_BE_VOID)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_LONG,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg2,MAY_BE_DOUBLE,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
#define swig_arginfo_JDList_size swig_arginfo_Day_getConstellation
|
|
ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_new_JQList, 0, 0, 1)
|
|
ZEND_ARG_OBJ_TYPE_MASK(0,arg1,JQList,MAY_BE_LONG,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
#define swig_arginfo_JQList_capacity swig_arginfo_Day_getConstellation
|
|
#define swig_arginfo_JQList_clear swig_arginfo_JDList_clear
|
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_JQList_get, 0, 1, JieQiInfo, 0)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_LONG,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
#define swig_arginfo_JQList_is_empty swig_arginfo_Day_hasJieQi
|
|
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(swig_arginfo_JQList_pop, 0, 0, JieQiInfo, 0)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_JQList_push, 0, 1, MAY_BE_VOID)
|
|
ZEND_ARG_OBJ_TYPE_MASK(0,arg1,JieQiInfo,0,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
#define swig_arginfo_JQList_reserve swig_arginfo_GZ_dz_set
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(swig_arginfo_JQList_set, 0, 2, MAY_BE_VOID)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_LONG,NULL)
|
|
ZEND_ARG_OBJ_TYPE_MASK(0,arg2,JieQiInfo,0,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
#define swig_arginfo_JQList_size swig_arginfo_Day_getConstellation
|
|
ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_new_JieQiInfo, 0, 0, 0)
|
|
ZEND_END_ARG_INFO()
|
|
#define swig_arginfo_JieQiInfo_jd_get swig_arginfo_Day_getJieQiJD
|
|
#define swig_arginfo_JieQiInfo_jd_set swig_arginfo_JDList_push
|
|
#define swig_arginfo_JieQiInfo_jqIndex_get swig_arginfo_Day_getConstellation
|
|
#define swig_arginfo_JieQiInfo_jqIndex_set swig_arginfo_GZ_dz_set
|
|
#define swig_arginfo_Time_D_get swig_arginfo_Day_getConstellation
|
|
#define swig_arginfo_Time_D_set swig_arginfo_GZ_dz_set
|
|
#define swig_arginfo_Time_M_get swig_arginfo_Day_getConstellation
|
|
#define swig_arginfo_Time_M_set swig_arginfo_GZ_dz_set
|
|
#define swig_arginfo_Time_Y_get swig_arginfo_Day_getConstellation
|
|
#define swig_arginfo_Time_Y_set swig_arginfo_GZ_dz_set
|
|
ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_new_Time, 0, 0, 6)
|
|
ZEND_ARG_TYPE_MASK(0,arg1,MAY_BE_LONG,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg2,MAY_BE_LONG,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg3,MAY_BE_LONG,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg4,MAY_BE_DOUBLE,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg5,MAY_BE_DOUBLE,NULL)
|
|
ZEND_ARG_TYPE_MASK(0,arg6,MAY_BE_DOUBLE,NULL)
|
|
ZEND_END_ARG_INFO()
|
|
#define swig_arginfo_Time_getDay swig_arginfo_Day_getConstellation
|
|
#define swig_arginfo_Time_getHour swig_arginfo_Day_getJieQiJD
|
|
#define swig_arginfo_Time_getMin swig_arginfo_Day_getJieQiJD
|
|
#define swig_arginfo_Time_getMonth swig_arginfo_Day_getConstellation
|
|
#define swig_arginfo_Time_getSec swig_arginfo_Day_getJieQiJD
|
|
#define swig_arginfo_Time_getYear swig_arginfo_Day_getConstellation
|
|
#define swig_arginfo_Time_h_get swig_arginfo_Day_getJieQiJD
|
|
#define swig_arginfo_Time_h_set swig_arginfo_JDList_push
|
|
#define swig_arginfo_Time_m_get swig_arginfo_Day_getJieQiJD
|
|
#define swig_arginfo_Time_m_set swig_arginfo_JDList_push
|
|
#define swig_arginfo_Time_s_get swig_arginfo_Day_getJieQiJD
|
|
#define swig_arginfo_Time_s_set swig_arginfo_JDList_push
|
|
#define swig_arginfo_Time_setDay swig_arginfo_GZ_dz_set
|
|
#define swig_arginfo_Time_setHour swig_arginfo_JDList_push
|
|
#define swig_arginfo_Time_setMonth swig_arginfo_GZ_dz_set
|
|
#define swig_arginfo_Time_setMour swig_arginfo_JDList_push
|
|
#define swig_arginfo_Time_setSec swig_arginfo_JDList_push
|
|
#define swig_arginfo_Time_setYear swig_arginfo_GZ_dz_set
|
|
|
|
|
|
/* class entry subsection */
|
|
static const zend_function_entry class_JDList_functions[] = {
|
|
PHP_ME(JDList,__construct,swig_arginfo_new_JDList,ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
|
|
PHP_ME(JDList,size,swig_arginfo_JDList_size,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JDList,capacity,swig_arginfo_JDList_capacity,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JDList,reserve,swig_arginfo_JDList_reserve,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JDList,clear,swig_arginfo_JDList_clear,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JDList,push,swig_arginfo_JDList_push,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JDList,is_empty,swig_arginfo_JDList_is_empty,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JDList,pop,swig_arginfo_JDList_pop,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JDList,get,swig_arginfo_JDList_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JDList,set,swig_arginfo_JDList_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JDList,__set,swig_magic_arginfo_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JDList,__get,swig_magic_arginfo_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JDList,__isset,swig_magic_arginfo_isset,ZEND_ACC_PUBLIC)
|
|
ZEND_FE_END
|
|
};
|
|
|
|
static const zend_function_entry class_JQList_functions[] = {
|
|
PHP_ME(JQList,__construct,swig_arginfo_new_JQList,ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
|
|
PHP_ME(JQList,size,swig_arginfo_JQList_size,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JQList,capacity,swig_arginfo_JQList_capacity,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JQList,reserve,swig_arginfo_JQList_reserve,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JQList,clear,swig_arginfo_JQList_clear,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JQList,push,swig_arginfo_JQList_push,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JQList,is_empty,swig_arginfo_JQList_is_empty,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JQList,pop,swig_arginfo_JQList_pop,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JQList,get,swig_arginfo_JQList_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JQList,set,swig_arginfo_JQList_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JQList,__set,swig_magic_arginfo_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JQList,__get,swig_magic_arginfo_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JQList,__isset,swig_magic_arginfo_isset,ZEND_ACC_PUBLIC)
|
|
ZEND_FE_END
|
|
};
|
|
|
|
static const zend_function_entry class_Time_functions[] = {
|
|
PHP_ME(Time,__construct,swig_arginfo_new_Time,ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
|
|
PHP_ME(Time,Y_set,swig_arginfo_Time_Y_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,Y_get,swig_arginfo_Time_Y_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,M_set,swig_arginfo_Time_M_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,M_get,swig_arginfo_Time_M_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,D_set,swig_arginfo_Time_D_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,D_get,swig_arginfo_Time_D_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,h_set,swig_arginfo_Time_h_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,h_get,swig_arginfo_Time_h_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,m_set,swig_arginfo_Time_m_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,m_get,swig_arginfo_Time_m_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,s_set,swig_arginfo_Time_s_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,s_get,swig_arginfo_Time_s_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,getYear,swig_arginfo_Time_getYear,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,setYear,swig_arginfo_Time_setYear,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,setMonth,swig_arginfo_Time_setMonth,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,getMonth,swig_arginfo_Time_getMonth,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,getDay,swig_arginfo_Time_getDay,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,setDay,swig_arginfo_Time_setDay,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,getHour,swig_arginfo_Time_getHour,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,setHour,swig_arginfo_Time_setHour,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,getMin,swig_arginfo_Time_getMin,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,setMour,swig_arginfo_Time_setMour,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,getSec,swig_arginfo_Time_getSec,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,setSec,swig_arginfo_Time_setSec,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,__set,swig_magic_arginfo_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,__get,swig_magic_arginfo_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Time,__isset,swig_magic_arginfo_isset,ZEND_ACC_PUBLIC)
|
|
ZEND_FE_END
|
|
};
|
|
|
|
static const zend_function_entry class_GZ_functions[] = {
|
|
PHP_ME(GZ,__construct,swig_arginfo_new_GZ,ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
|
|
PHP_ME(GZ,tg_set,swig_arginfo_GZ_tg_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(GZ,tg_get,swig_arginfo_GZ_tg_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(GZ,dz_set,swig_arginfo_GZ_dz_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(GZ,dz_get,swig_arginfo_GZ_dz_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(GZ,__set,swig_magic_arginfo_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(GZ,__get,swig_magic_arginfo_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(GZ,__isset,swig_magic_arginfo_isset,ZEND_ACC_PUBLIC)
|
|
ZEND_FE_END
|
|
};
|
|
|
|
static const zend_function_entry class_Day_functions[] = {
|
|
PHP_ME(Day,fromSolar,swig_arginfo_Day_fromSolar,ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
|
|
PHP_ME(Day,fromLunar,swig_arginfo_Day_fromLunar,ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
|
|
PHP_ME(Day,after,swig_arginfo_Day_after,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,before,swig_arginfo_Day_before,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,getLunarDay,swig_arginfo_Day_getLunarDay,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,getLunarMonth,swig_arginfo_Day_getLunarMonth,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,getLunarYear,swig_arginfo_Day_getLunarYear,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,getYearGZ,swig_arginfo_Day_getYearGZ,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,getMonthGZ,swig_arginfo_Day_getMonthGZ,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,getDayGZ,swig_arginfo_Day_getDayGZ,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,getHourGZ,swig_arginfo_Day_getHourGZ,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,isLunarLeap,swig_arginfo_Day_isLunarLeap,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,getSolarYear,swig_arginfo_Day_getSolarYear,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,getSolarMonth,swig_arginfo_Day_getSolarMonth,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,getSolarDay,swig_arginfo_Day_getSolarDay,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,getWeek,swig_arginfo_Day_getWeek,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,getWeekIndex,swig_arginfo_Day_getWeekIndex,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,hasJieQi,swig_arginfo_Day_hasJieQi,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,getJieQi,swig_arginfo_Day_getJieQi,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,getJieQiJD,swig_arginfo_Day_getJieQiJD,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,getConstellation,swig_arginfo_Day_getConstellation,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,__set,swig_magic_arginfo_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,__get,swig_magic_arginfo_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(Day,__isset,swig_magic_arginfo_isset,ZEND_ACC_PUBLIC)
|
|
ZEND_FE_END
|
|
};
|
|
|
|
static const zend_function_entry class_JieQiInfo_functions[] = {
|
|
PHP_ME(JieQiInfo,jd_set,swig_arginfo_JieQiInfo_jd_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JieQiInfo,jd_get,swig_arginfo_JieQiInfo_jd_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JieQiInfo,jqIndex_set,swig_arginfo_JieQiInfo_jqIndex_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JieQiInfo,jqIndex_get,swig_arginfo_JieQiInfo_jqIndex_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JieQiInfo,__construct,swig_arginfo_new_JieQiInfo,ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
|
|
PHP_ME(JieQiInfo,__set,swig_magic_arginfo_set,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JieQiInfo,__get,swig_magic_arginfo_get,ZEND_ACC_PUBLIC)
|
|
PHP_ME(JieQiInfo,__isset,swig_magic_arginfo_isset,ZEND_ACC_PUBLIC)
|
|
ZEND_FE_END
|
|
};
|
|
|
|
|
|
|
|
/* entry subsection */
|
|
/* Every non-class user visible function must have an entry here */
|
|
static const zend_function_entry module_sxtwl_functions[] = {
|
|
PHP_FE(fromSolar,swig_arginfo_fromSolar)
|
|
ZEND_NAMED_FE(fromlunar,_wrap_fromLunar,swig_arginfo_fromLunar)
|
|
PHP_FE(siZhu2Year,swig_arginfo_siZhu2Year)
|
|
ZEND_NAMED_FE(getshigz,_wrap_getShiGz,swig_arginfo_getShiGz)
|
|
PHP_FE(getRunMonth,swig_arginfo_getRunMonth)
|
|
ZEND_NAMED_FE(getlunarmonthnum,_wrap_getLunarMonthNum,swig_arginfo_getLunarMonthNum)
|
|
PHP_FE(JD2DD,swig_arginfo_JD2DD)
|
|
PHP_FE(toJD,swig_arginfo_toJD)
|
|
PHP_FE(getJieQiByYear,swig_arginfo_getJieQiByYear)
|
|
ZEND_FE_END
|
|
};
|
|
|
|
static const zend_function_entry class_sxtwl_functions[] = {
|
|
PHP_ME(sxtwl,fromSolar,swig_arginfo_fromSolar,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
|
ZEND_NAMED_ME(fromlunar,_wrap_fromLunar,swig_arginfo_fromLunar,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
|
PHP_ME(sxtwl,siZhu2Year,swig_arginfo_siZhu2Year,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
|
ZEND_NAMED_ME(getshigz,_wrap_getShiGz,swig_arginfo_getShiGz,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
|
PHP_ME(sxtwl,getRunMonth,swig_arginfo_getRunMonth,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
|
ZEND_NAMED_ME(getlunarmonthnum,_wrap_getLunarMonthNum,swig_arginfo_getLunarMonthNum,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
|
PHP_ME(sxtwl,JD2DD,swig_arginfo_JD2DD,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
|
PHP_ME(sxtwl,toJD,swig_arginfo_toJD,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
|
PHP_ME(sxtwl,getJieQiByYear,swig_arginfo_getJieQiByYear,ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
|
ZEND_FE_END
|
|
};
|
|
|
|
/* init section */
|
|
zend_module_entry sxtwl_module_entry = {
|
|
STANDARD_MODULE_HEADER,
|
|
"sxtwl",
|
|
module_sxtwl_functions,
|
|
PHP_MINIT(sxtwl),
|
|
NULL, /* No MSHUTDOWN code */
|
|
NULL, /* No RINIT code */
|
|
NULL, /* No RSHUTDOWN code */
|
|
NULL, /* No MINFO code */
|
|
NO_VERSION_YET,
|
|
STANDARD_MODULE_PROPERTIES
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
SWIGEXPORT zend_module_entry *get_module(void) { return &sxtwl_module_entry; }
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#define SWIG_php_minit PHP_MINIT_FUNCTION(sxtwl)
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* Type initialization:
|
|
* This problem is tough by the requirement that no dynamic
|
|
* memory is used. Also, since swig_type_info structures store pointers to
|
|
* swig_cast_info structures and swig_cast_info structures store pointers back
|
|
* to swig_type_info structures, we need some lookup code at initialization.
|
|
* The idea is that swig generates all the structures that are needed.
|
|
* The runtime then collects these partially filled structures.
|
|
* The SWIG_InitializeModule function takes these initial arrays out of
|
|
* swig_module, and does all the lookup, filling in the swig_module.types
|
|
* array with the correct data and linking the correct swig_cast_info
|
|
* structures together.
|
|
*
|
|
* The generated swig_type_info structures are assigned statically to an initial
|
|
* array. We just loop through that array, and handle each type individually.
|
|
* First we lookup if this type has been already loaded, and if so, use the
|
|
* loaded structure instead of the generated one. Then we have to fill in the
|
|
* cast linked list. The cast data is initially stored in something like a
|
|
* two-dimensional array. Each row corresponds to a type (there are the same
|
|
* number of rows as there are in the swig_type_initial array). Each entry in
|
|
* a column is one of the swig_cast_info structures for that type.
|
|
* The cast_initial array is actually an array of arrays, because each row has
|
|
* a variable number of columns. So to actually build the cast linked list,
|
|
* we find the array of casts associated with the type, and loop through it
|
|
* adding the casts to the list. The one last trick we need to do is making
|
|
* sure the type pointer in the swig_cast_info struct is correct.
|
|
*
|
|
* First off, we lookup the cast->type name to see if it is already loaded.
|
|
* There are three cases to handle:
|
|
* 1) If the cast->type has already been loaded AND the type we are adding
|
|
* casting info to has not been loaded (it is in this module), THEN we
|
|
* replace the cast->type pointer with the type pointer that has already
|
|
* been loaded.
|
|
* 2) If BOTH types (the one we are adding casting info to, and the
|
|
* cast->type) are loaded, THEN the cast info has already been loaded by
|
|
* the previous module so we just ignore it.
|
|
* 3) Finally, if cast->type has not already been loaded, then we add that
|
|
* swig_cast_info to the linked list (because the cast->type) pointer will
|
|
* be correct.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#if 0
|
|
} /* c-mode */
|
|
#endif
|
|
#endif
|
|
|
|
#if 0
|
|
#define SWIGRUNTIME_DEBUG
|
|
#endif
|
|
|
|
#ifndef SWIG_INIT_CLIENT_DATA_TYPE
|
|
#define SWIG_INIT_CLIENT_DATA_TYPE void *
|
|
#endif
|
|
|
|
SWIGRUNTIME void
|
|
SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
|
|
size_t i;
|
|
swig_module_info *module_head, *iter;
|
|
int init;
|
|
|
|
/* check to see if the circular list has been setup, if not, set it up */
|
|
if (swig_module.next==0) {
|
|
/* Initialize the swig_module */
|
|
swig_module.type_initial = swig_type_initial;
|
|
swig_module.cast_initial = swig_cast_initial;
|
|
swig_module.next = &swig_module;
|
|
init = 1;
|
|
} else {
|
|
init = 0;
|
|
}
|
|
|
|
/* Try and load any already created modules */
|
|
module_head = SWIG_GetModule(clientdata);
|
|
if (!module_head) {
|
|
/* This is the first module loaded for this interpreter */
|
|
/* so set the swig module into the interpreter */
|
|
SWIG_SetModule(clientdata, &swig_module);
|
|
} else {
|
|
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
|
|
iter=module_head;
|
|
do {
|
|
if (iter==&swig_module) {
|
|
/* Our module is already in the list, so there's nothing more to do. */
|
|
return;
|
|
}
|
|
iter=iter->next;
|
|
} while (iter!= module_head);
|
|
|
|
/* otherwise we must add our module into the list */
|
|
swig_module.next = module_head->next;
|
|
module_head->next = &swig_module;
|
|
}
|
|
|
|
/* When multiple interpreters are used, a module could have already been initialized in
|
|
a different interpreter, but not yet have a pointer in this interpreter.
|
|
In this case, we do not want to continue adding types... everything should be
|
|
set up already */
|
|
if (init == 0) return;
|
|
|
|
/* Now work on filling in swig_module.types */
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
|
|
#endif
|
|
for (i = 0; i < swig_module.size; ++i) {
|
|
swig_type_info *type = 0;
|
|
swig_type_info *ret;
|
|
swig_cast_info *cast;
|
|
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
|
|
#endif
|
|
|
|
/* if there is another module already loaded */
|
|
if (swig_module.next != &swig_module) {
|
|
type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
|
|
}
|
|
if (type) {
|
|
/* Overwrite clientdata field */
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: found type %s\n", type->name);
|
|
#endif
|
|
if (swig_module.type_initial[i]->clientdata) {
|
|
type->clientdata = swig_module.type_initial[i]->clientdata;
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
|
|
#endif
|
|
}
|
|
} else {
|
|
type = swig_module.type_initial[i];
|
|
}
|
|
|
|
/* Insert casting types */
|
|
cast = swig_module.cast_initial[i];
|
|
while (cast->type) {
|
|
|
|
/* Don't need to add information already in the list */
|
|
ret = 0;
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
|
|
#endif
|
|
if (swig_module.next != &swig_module) {
|
|
ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
|
|
#endif
|
|
}
|
|
if (ret) {
|
|
if (type == swig_module.type_initial[i]) {
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
|
|
#endif
|
|
cast->type = ret;
|
|
ret = 0;
|
|
} else {
|
|
/* Check for casting already in the list */
|
|
swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
|
|
#endif
|
|
if (!ocast) ret = 0;
|
|
}
|
|
}
|
|
|
|
if (!ret) {
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
|
|
#endif
|
|
if (type->cast) {
|
|
type->cast->prev = cast;
|
|
cast->next = type->cast;
|
|
}
|
|
type->cast = cast;
|
|
}
|
|
cast++;
|
|
}
|
|
/* Set entry in modules->types array equal to the type */
|
|
swig_module.types[i] = type;
|
|
}
|
|
swig_module.types[i] = 0;
|
|
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("**** SWIG_InitializeModule: Cast List ******\n");
|
|
for (i = 0; i < swig_module.size; ++i) {
|
|
int j = 0;
|
|
swig_cast_info *cast = swig_module.cast_initial[i];
|
|
printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
|
|
while (cast->type) {
|
|
printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
|
|
cast++;
|
|
++j;
|
|
}
|
|
printf("---- Total casts: %d\n",j);
|
|
}
|
|
printf("**** SWIG_InitializeModule: Cast List ******\n");
|
|
#endif
|
|
}
|
|
|
|
/* This function will propagate the clientdata field of type to
|
|
* any new swig_type_info structures that have been added into the list
|
|
* of equivalent types. It is like calling
|
|
* SWIG_TypeClientData(type, clientdata) a second time.
|
|
*/
|
|
SWIGRUNTIME void
|
|
SWIG_PropagateClientData(void) {
|
|
size_t i;
|
|
swig_cast_info *equiv;
|
|
static int init_run = 0;
|
|
|
|
if (init_run) return;
|
|
init_run = 1;
|
|
|
|
for (i = 0; i < swig_module.size; i++) {
|
|
if (swig_module.types[i]->clientdata) {
|
|
equiv = swig_module.types[i]->cast;
|
|
while (equiv) {
|
|
if (!equiv->converter) {
|
|
if (equiv->type && !equiv->type->clientdata)
|
|
SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
|
|
}
|
|
equiv = equiv->next;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
#if 0
|
|
{ /* c-mode */
|
|
#endif
|
|
}
|
|
#endif
|
|
|
|
|
|
SWIG_php_minit {
|
|
zend_class_entry SWIGUNUSED internal_ce;
|
|
SWIG_InitializeModule((void*)&module_number);
|
|
#if PHP_MAJOR_VERSION == 8 && PHP_MINOR_VERSION == 0
|
|
/* This hack is needed to avoid segfaults. */
|
|
EG(class_table) = CG(class_table);
|
|
#endif
|
|
|
|
/* oinit subsection */
|
|
INIT_CLASS_ENTRY(internal_ce, "JDList", class_JDList_functions);
|
|
SWIG_Php_ce_JDList = zend_register_internal_class(&internal_ce);
|
|
#ifdef ZEND_ACC_NO_DYNAMIC_PROPERTIES
|
|
SWIG_Php_ce_JDList->ce_flags |= ZEND_ACC_NO_DYNAMIC_PROPERTIES;
|
|
#endif
|
|
INIT_CLASS_ENTRY(SWIG_Php_swig_wrapped_interface_ce, "SWIG\\wrapped", NULL);
|
|
zend_do_implement_interface(SWIG_Php_ce_JDList, &SWIG_Php_swig_wrapped_interface_ce);
|
|
Swig_Php_base_object_handlers = *zend_get_std_object_handlers();
|
|
Swig_Php_base_object_handlers.offset = XtOffsetOf(swig_object_wrapper, std);
|
|
Swig_Php_base_object_handlers.clone_obj = NULL;
|
|
SWIG_Php_ce_JDList->create_object = SWIG_Php_create_object_JDList;
|
|
JDList_object_handlers = Swig_Php_base_object_handlers;
|
|
JDList_object_handlers.free_obj = SWIG_Php_free_obj_JDList;
|
|
#ifdef SWIGTYPE_p_std__vectorT_double_t
|
|
SWIG_TypeClientData(SWIGTYPE_p_std__vectorT_double_t,SWIG_Php_ce_JDList);
|
|
#endif
|
|
|
|
INIT_CLASS_ENTRY(internal_ce, "JQList", class_JQList_functions);
|
|
SWIG_Php_ce_JQList = zend_register_internal_class(&internal_ce);
|
|
#ifdef ZEND_ACC_NO_DYNAMIC_PROPERTIES
|
|
SWIG_Php_ce_JQList->ce_flags |= ZEND_ACC_NO_DYNAMIC_PROPERTIES;
|
|
#endif
|
|
zend_do_implement_interface(SWIG_Php_ce_JQList, &SWIG_Php_swig_wrapped_interface_ce);
|
|
SWIG_Php_ce_JQList->create_object = SWIG_Php_create_object_JQList;
|
|
JQList_object_handlers = Swig_Php_base_object_handlers;
|
|
JQList_object_handlers.free_obj = SWIG_Php_free_obj_JQList;
|
|
#ifdef SWIGTYPE_p_std__vectorT_sxtwl__JieQiInfo_t
|
|
SWIG_TypeClientData(SWIGTYPE_p_std__vectorT_sxtwl__JieQiInfo_t,SWIG_Php_ce_JQList);
|
|
#endif
|
|
|
|
INIT_CLASS_ENTRY(internal_ce, "sxtwl", class_sxtwl_functions);
|
|
SWIG_Php_ce_sxtwl = zend_register_internal_class(&internal_ce);
|
|
|
|
INIT_CLASS_ENTRY(internal_ce, "Time", class_Time_functions);
|
|
SWIG_Php_ce_Time = zend_register_internal_class(&internal_ce);
|
|
#ifdef ZEND_ACC_NO_DYNAMIC_PROPERTIES
|
|
SWIG_Php_ce_Time->ce_flags |= ZEND_ACC_NO_DYNAMIC_PROPERTIES;
|
|
#endif
|
|
zend_do_implement_interface(SWIG_Php_ce_Time, &SWIG_Php_swig_wrapped_interface_ce);
|
|
SWIG_Php_ce_Time->create_object = SWIG_Php_create_object_Time;
|
|
Time_object_handlers = Swig_Php_base_object_handlers;
|
|
Time_object_handlers.free_obj = SWIG_Php_free_obj_Time;
|
|
#ifdef SWIGTYPE_p_Time
|
|
SWIG_TypeClientData(SWIGTYPE_p_Time,SWIG_Php_ce_Time);
|
|
#endif
|
|
|
|
INIT_CLASS_ENTRY(internal_ce, "GZ", class_GZ_functions);
|
|
SWIG_Php_ce_GZ = zend_register_internal_class(&internal_ce);
|
|
#ifdef ZEND_ACC_NO_DYNAMIC_PROPERTIES
|
|
SWIG_Php_ce_GZ->ce_flags |= ZEND_ACC_NO_DYNAMIC_PROPERTIES;
|
|
#endif
|
|
zend_do_implement_interface(SWIG_Php_ce_GZ, &SWIG_Php_swig_wrapped_interface_ce);
|
|
SWIG_Php_ce_GZ->create_object = SWIG_Php_create_object_GZ;
|
|
GZ_object_handlers = Swig_Php_base_object_handlers;
|
|
GZ_object_handlers.free_obj = SWIG_Php_free_obj_GZ;
|
|
#ifdef SWIGTYPE_p_GZ
|
|
SWIG_TypeClientData(SWIGTYPE_p_GZ,SWIG_Php_ce_GZ);
|
|
#endif
|
|
|
|
INIT_CLASS_ENTRY(internal_ce, "Day", class_Day_functions);
|
|
SWIG_Php_ce_Day = zend_register_internal_class(&internal_ce);
|
|
#ifdef ZEND_ACC_NO_DYNAMIC_PROPERTIES
|
|
SWIG_Php_ce_Day->ce_flags |= ZEND_ACC_NO_DYNAMIC_PROPERTIES;
|
|
#endif
|
|
zend_do_implement_interface(SWIG_Php_ce_Day, &SWIG_Php_swig_wrapped_interface_ce);
|
|
SWIG_Php_ce_Day->create_object = SWIG_Php_create_object_Day;
|
|
Day_object_handlers = Swig_Php_base_object_handlers;
|
|
Day_object_handlers.free_obj = SWIG_Php_free_obj_Day;
|
|
#ifdef SWIGTYPE_p_Day
|
|
SWIG_TypeClientData(SWIGTYPE_p_Day,SWIG_Php_ce_Day);
|
|
#endif
|
|
|
|
INIT_CLASS_ENTRY(internal_ce, "JieQiInfo", class_JieQiInfo_functions);
|
|
SWIG_Php_ce_JieQiInfo = zend_register_internal_class(&internal_ce);
|
|
#ifdef ZEND_ACC_NO_DYNAMIC_PROPERTIES
|
|
SWIG_Php_ce_JieQiInfo->ce_flags |= ZEND_ACC_NO_DYNAMIC_PROPERTIES;
|
|
#endif
|
|
zend_do_implement_interface(SWIG_Php_ce_JieQiInfo, &SWIG_Php_swig_wrapped_interface_ce);
|
|
SWIG_Php_ce_JieQiInfo->create_object = SWIG_Php_create_object_JieQiInfo;
|
|
JieQiInfo_object_handlers = Swig_Php_base_object_handlers;
|
|
JieQiInfo_object_handlers.free_obj = SWIG_Php_free_obj_JieQiInfo;
|
|
#ifdef SWIGTYPE_p_sxtwl__JieQiInfo
|
|
SWIG_TypeClientData(SWIGTYPE_p_sxtwl__JieQiInfo,SWIG_Php_ce_JieQiInfo);
|
|
#endif
|
|
|
|
|
|
/* Register classes to represent non-class pointer types */
|
|
swig_ptr_object_handlers = *zend_get_std_object_handlers();
|
|
swig_ptr_object_handlers.offset = XtOffsetOf(swig_object_wrapper, std);
|
|
swig_ptr_object_handlers.cast_object = swig_ptr_cast_object;
|
|
INIT_CLASS_ENTRY(internal_ce, "SWIG\\_p_int", NULL);
|
|
SWIG_Php_ce__p_int = zend_register_internal_class(&internal_ce);
|
|
SWIG_Php_ce__p_int->create_object = swig_ptr_object_new;
|
|
zend_do_implement_interface(SWIG_Php_ce__p_int, &SWIG_Php_swig_wrapped_interface_ce);
|
|
SWIG_TypeClientData(SWIGTYPE_p_int,SWIG_Php_ce__p_int);
|
|
|
|
INIT_CLASS_ENTRY(internal_ce, "SWIG\\_p_size_type", NULL);
|
|
SWIG_Php_ce__p_size_type = zend_register_internal_class(&internal_ce);
|
|
SWIG_Php_ce__p_size_type->create_object = swig_ptr_object_new;
|
|
zend_do_implement_interface(SWIG_Php_ce__p_size_type, &SWIG_Php_swig_wrapped_interface_ce);
|
|
SWIG_TypeClientData(SWIGTYPE_p_size_type,SWIG_Php_ce__p_size_type);
|
|
|
|
INIT_CLASS_ENTRY(internal_ce, "SWIG\\_p_value_type", NULL);
|
|
SWIG_Php_ce__p_value_type = zend_register_internal_class(&internal_ce);
|
|
SWIG_Php_ce__p_value_type->create_object = swig_ptr_object_new;
|
|
zend_do_implement_interface(SWIG_Php_ce__p_value_type, &SWIG_Php_swig_wrapped_interface_ce);
|
|
SWIG_TypeClientData(SWIGTYPE_p_value_type,SWIG_Php_ce__p_value_type);
|
|
|
|
INIT_CLASS_ENTRY(internal_ce, "SWIG\\_p_unsigned_char", NULL);
|
|
SWIG_Php_ce__p_unsigned_char = zend_register_internal_class(&internal_ce);
|
|
SWIG_Php_ce__p_unsigned_char->create_object = swig_ptr_object_new;
|
|
zend_do_implement_interface(SWIG_Php_ce__p_unsigned_char, &SWIG_Php_swig_wrapped_interface_ce);
|
|
SWIG_TypeClientData(SWIGTYPE_p_unsigned_char,SWIG_Php_ce__p_unsigned_char);
|
|
|
|
INIT_CLASS_ENTRY(internal_ce, "SWIG\\_p_unsigned_short", NULL);
|
|
SWIG_Php_ce__p_unsigned_short = zend_register_internal_class(&internal_ce);
|
|
SWIG_Php_ce__p_unsigned_short->create_object = swig_ptr_object_new;
|
|
zend_do_implement_interface(SWIG_Php_ce__p_unsigned_short, &SWIG_Php_swig_wrapped_interface_ce);
|
|
SWIG_TypeClientData(SWIGTYPE_p_unsigned_short,SWIG_Php_ce__p_unsigned_short);
|
|
|
|
INIT_CLASS_ENTRY(internal_ce, "SWIG\\_p_signed_char", NULL);
|
|
SWIG_Php_ce__p_signed_char = zend_register_internal_class(&internal_ce);
|
|
SWIG_Php_ce__p_signed_char->create_object = swig_ptr_object_new;
|
|
zend_do_implement_interface(SWIG_Php_ce__p_signed_char, &SWIG_Php_swig_wrapped_interface_ce);
|
|
SWIG_TypeClientData(SWIGTYPE_p_signed_char,SWIG_Php_ce__p_signed_char);
|
|
|
|
INIT_CLASS_ENTRY(internal_ce, "SWIG\\_p_long_long", NULL);
|
|
SWIG_Php_ce__p_long_long = zend_register_internal_class(&internal_ce);
|
|
SWIG_Php_ce__p_long_long->create_object = swig_ptr_object_new;
|
|
zend_do_implement_interface(SWIG_Php_ce__p_long_long, &SWIG_Php_swig_wrapped_interface_ce);
|
|
SWIG_TypeClientData(SWIGTYPE_p_long_long,SWIG_Php_ce__p_long_long);
|
|
|
|
INIT_CLASS_ENTRY(internal_ce, "SWIG\\_p_unsigned_int", NULL);
|
|
SWIG_Php_ce__p_unsigned_int = zend_register_internal_class(&internal_ce);
|
|
SWIG_Php_ce__p_unsigned_int->create_object = swig_ptr_object_new;
|
|
zend_do_implement_interface(SWIG_Php_ce__p_unsigned_int, &SWIG_Php_swig_wrapped_interface_ce);
|
|
SWIG_TypeClientData(SWIGTYPE_p_unsigned_int,SWIG_Php_ce__p_unsigned_int);
|
|
|
|
INIT_CLASS_ENTRY(internal_ce, "SWIG\\_p_unsigned_long_long", NULL);
|
|
SWIG_Php_ce__p_unsigned_long_long = zend_register_internal_class(&internal_ce);
|
|
SWIG_Php_ce__p_unsigned_long_long->create_object = swig_ptr_object_new;
|
|
zend_do_implement_interface(SWIG_Php_ce__p_unsigned_long_long, &SWIG_Php_swig_wrapped_interface_ce);
|
|
SWIG_TypeClientData(SWIGTYPE_p_unsigned_long_long,SWIG_Php_ce__p_unsigned_long_long);
|
|
|
|
INIT_CLASS_ENTRY(internal_ce, "SWIG\\_int", NULL);
|
|
SWIG_Php_ce__int = zend_register_internal_class(&internal_ce);
|
|
SWIG_Php_ce__int->create_object = swig_ptr_object_new;
|
|
zend_do_implement_interface(SWIG_Php_ce__int, &SWIG_Php_swig_wrapped_interface_ce);
|
|
SWIG_TypeClientData(SWIGTYPE_int,SWIG_Php_ce__int);
|
|
|
|
INIT_CLASS_ENTRY(internal_ce, "SWIG\\_p_short", NULL);
|
|
SWIG_Php_ce__p_short = zend_register_internal_class(&internal_ce);
|
|
SWIG_Php_ce__p_short->create_object = swig_ptr_object_new;
|
|
zend_do_implement_interface(SWIG_Php_ce__p_short, &SWIG_Php_swig_wrapped_interface_ce);
|
|
SWIG_TypeClientData(SWIGTYPE_p_short,SWIG_Php_ce__p_short);
|
|
|
|
INIT_CLASS_ENTRY(internal_ce, "SWIG\\_p_difference_type", NULL);
|
|
SWIG_Php_ce__p_difference_type = zend_register_internal_class(&internal_ce);
|
|
SWIG_Php_ce__p_difference_type->create_object = swig_ptr_object_new;
|
|
zend_do_implement_interface(SWIG_Php_ce__p_difference_type, &SWIG_Php_swig_wrapped_interface_ce);
|
|
SWIG_TypeClientData(SWIGTYPE_p_difference_type,SWIG_Php_ce__p_difference_type);
|
|
|
|
/* end oinit subsection */
|
|
|
|
/* cinit subsection */
|
|
SWIG_LONG_CONSTANT(J2000, (int)(2451545));
|
|
|
|
zend_declare_class_constant_long(SWIG_Php_ce_sxtwl, "J2000", sizeof("J2000") - 1, (int)(2451545));
|
|
|
|
/* end cinit subsection */
|
|
|
|
return SUCCESS;
|
|
}
|
|
|
|
/* end init section */
|