From 91424d26159194e6b09c0a54c544ee64de84d543 Mon Sep 17 00:00:00 2001 From: Alex Fraundorf - ProBook Date: Sun, 1 Apr 2018 22:27:05 -0500 Subject: [PATCH] updated for php version 7 --- README.md | 9 +- php_wiringpi.h | 14 +- wiringpi.php | 2 +- wiringpi_wrap.c | 4033 +++++++++++++++++++---------------------------- 4 files changed, 1671 insertions(+), 2387 deletions(-) diff --git a/README.md b/README.md index 87f45cc..ccd90d4 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ WiringPi ======== -An implementation of most of the Arduino Wiring functions for the Raspberry Pi +An implementation of most of the Arduino Wiring functions for the Raspberry Pi for PHP7 Git === @@ -11,7 +11,10 @@ You will need to clone this repository with the --recursive flag on git clone as Building ======== -You will need to first install php-dev or php5-dev +You will need to first install php-dev +``` +sudo apt install php-dev +``` Then @@ -21,7 +24,7 @@ make This will give you a build folder with the wiringpi.so module, this needs to go in the relevant folder of your PHP installation. -Most likely somewhere in /usr/lib/php5/ +Most likely somewhere in /usr/lib/php/ Alternatively you can: diff --git a/php_wiringpi.h b/php_wiringpi.h index 7909b29..8b3e238 100644 --- a/php_wiringpi.h +++ b/php_wiringpi.h @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 3.0.2 + * Version 4.0.0 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -20,16 +20,6 @@ extern zend_module_entry wiringpi_module_entry; # define PHP_WIRINGPI_API #endif -#ifdef ZTS -#include "TSRM.h" -#endif - -PHP_MINIT_FUNCTION(wiringpi); -PHP_MSHUTDOWN_FUNCTION(wiringpi); -PHP_RINIT_FUNCTION(wiringpi); -PHP_RSHUTDOWN_FUNCTION(wiringpi); -PHP_MINFO_FUNCTION(wiringpi); - ZEND_NAMED_FUNCTION(_wrap_wiringPiFailure); ZEND_NAMED_FUNCTION(_wrap_wiringPiFindNode); ZEND_NAMED_FUNCTION(_wrap_wiringPiNewNode); @@ -173,4 +163,6 @@ ZEND_NAMED_FUNCTION(_wrap_scrollPhatPrintf); ZEND_NAMED_FUNCTION(_wrap_scrollPhatPrintSpeed); ZEND_NAMED_FUNCTION(_wrap_scrollPhatIntensity); ZEND_NAMED_FUNCTION(_wrap_scrollPhatSetup); +PHP_MINIT_FUNCTION(wiringpi); + #endif /* PHP_WIRINGPI_H */ diff --git a/wiringpi.php b/wiringpi.php index 484f62e..989a925 100644 --- a/wiringpi.php +++ b/wiringpi.php @@ -2,7 +2,7 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 3.0.2 + * Version 4.0.0 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make diff --git a/wiringpi_wrap.c b/wiringpi_wrap.c index 6a66613..9b78c29 100644 --- a/wiringpi_wrap.c +++ b/wiringpi_wrap.c @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 3.0.2 + * Version 4.0.0 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -8,7 +8,10 @@ * interface file instead. * ----------------------------------------------------------------------------- */ + +#ifndef SWIGPHP #define SWIGPHP +#endif #define SWIG_PREFIX "" #define SWIG_PREFIX_LEN 0 @@ -79,9 +82,11 @@ #endif /* exporting methods */ -#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) -# ifndef GCC_HASCLASSVISIBILITY -# define GCC_HASCLASSVISIBILITY +#if defined(__GNUC__) +# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif # endif #endif @@ -120,6 +125,19 @@ # 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 @@ -618,16 +636,16 @@ SWIG_UnpackData(const char *c, void *ptr, size_t sz) { char d = *(c++); unsigned char uu; if ((d >= '0') && (d <= '9')) - uu = ((d - '0') << 4); + uu = (unsigned char)((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) - uu = ((d - ('a'-10)) << 4); + uu = (unsigned char)((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) - uu |= (d - '0'); + uu |= (unsigned char)(d - '0'); else if ((d >= 'a') && (d <= 'f')) - uu |= (d - ('a'-10)); + uu |= (unsigned char)(d - ('a'-10)); else return (char *) 0; *u = uu; @@ -707,61 +725,31 @@ extern "C" { #include "zend_API.h" #include "zend_exceptions.h" #include "php.h" -#include "ext/standard/php_string.h" -#include /* for abort(), used in generated code. */ -#ifdef ZEND_RAW_FENTRY -/* ZEND_RAW_FENTRY was added somewhere between 5.2.0 and 5.2.3 */ -# define SWIG_ZEND_NAMED_FE(ZN, N, A) ZEND_RAW_FENTRY((char*)#ZN, N, A, 0) -#else -/* This causes warnings from GCC >= 4.2 (assigning a string literal to char*). - * But this seems to be unavoidable without directly assuming knowledge of - * the structure, which changed between PHP4 and PHP5. */ -# define SWIG_ZEND_NAMED_FE(ZN, N, A) ZEND_NAMED_FE(ZN, N, A) +#if PHP_MAJOR_VERSION != 7 +# error These bindings need PHP7 - to generate PHP5 bindings use: swig -php5 #endif -#ifndef Z_SET_ISREF_P -/* For PHP < 5.3 */ -# define Z_SET_ISREF_P(z) (z)->is_ref = 1 -#endif -#ifndef Z_SET_REFCOUNT_P -/* For PHP < 5.3 */ -# define Z_SET_REFCOUNT_P(z, rc) (z)->refcount = (rc) -#endif +#include "ext/standard/php_string.h" +#include /* for abort(), used in generated code. */ -#define SWIG_LONG_CONSTANT(N, V) zend_register_long_constant((char*)#N, sizeof(#N), V, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC) -#define SWIG_DOUBLE_CONSTANT(N, V) zend_register_double_constant((char*)#N, sizeof(#N), V, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC) -#define SWIG_STRING_CONSTANT(N, V) zend_register_stringl_constant((char*)#N, sizeof(#N), (char*)(V), strlen(V), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC) +/* This indirection is to work around const correctness issues in older PHP. + * FIXME: Remove for PHP7? Or might user code be using it? */ +#define SWIG_ZEND_NAMED_FE(ZN, N, A) ZEND_NAMED_FE(ZN, N, A) + +#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 {\ - static char swig_char = (V);\ - zend_register_stringl_constant((char*)#N, sizeof(#N), &swig_char, 1, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC);\ + char swig_char = (V);\ + REGISTER_STRINGL_CONSTANT(#N, &swig_char, 1, CONST_CS | CONST_PERSISTENT);\ } while (0) -/* These TSRMLS_ stuff should already be defined now, but with older php under - redhat are not... */ -#ifndef TSRMLS_D -#define TSRMLS_D -#endif -#ifndef TSRMLS_DC -#define TSRMLS_DC -#endif -#ifndef TSRMLS_C -#define TSRMLS_C -#endif -#ifndef TSRMLS_CC -#define TSRMLS_CC -#endif - #ifdef __cplusplus } #endif -/* But in fact SWIG_ConvertPtr is the native interface for getting typed - pointer values out of zvals. We need the TSRMLS_ macros for when we - make PHP type calls later as we handle php resources */ -#define SWIG_ConvertPtr(obj,pp,type,flags) SWIG_ZTS_ConvertPtr(obj,pp,type,flags TSRMLS_CC) - - #define SWIG_fail goto fail static const char *default_error_msg = "Unknown error occurred"; @@ -785,14 +773,10 @@ typedef struct { int newobject; } swig_object_wrapper; -/* empty zend destructor for types without one */ -static ZEND_RSRC_DTOR_FUNC(SWIG_landfill) { (void)rsrc; } - -#define SWIG_SetPointerZval(a,b,c,d) SWIG_ZTS_SetPointerZval(a,b,c,d TSRMLS_CC) #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) static void -SWIG_ZTS_SetPointerZval(zval *z, void *ptr, swig_type_info *type, int newobject TSRMLS_DC) { +SWIG_SetPointerZval(zval *z, void *ptr, swig_type_info *type, int newobject) { /* * First test for Null pointers. Return those as PHP native NULL */ @@ -809,19 +793,19 @@ SWIG_ZTS_SetPointerZval(zval *z, void *ptr, swig_type_info *type, int newobject value->newobject=(newobject & 1); if ((newobject & 2) == 0) { /* Just register the pointer as a resource. */ - ZEND_REGISTER_RESOURCE(z, value, *(int *)(type->clientdata)); + ZVAL_RES(z, zend_register_resource(value, *(int *)(type->clientdata))); } else { /* * Wrap the resource in an object, the resource will be accessible * via the "_cPtr" member. This is currently only used by * directorin typemaps. */ - zval *resource; - zend_class_entry **ce = NULL; + zval resource; + zend_class_entry *ce = NULL; const char *type_name = type->name+3; /* +3 so: _p_Foo -> Foo */ size_t type_name_len; - int result; const char * p; + HashTable * ht; /* Namespace__Foo -> Foo */ /* FIXME: ugly and goes wrong for classes with __ in their names. */ @@ -830,26 +814,27 @@ SWIG_ZTS_SetPointerZval(zval *z, void *ptr, swig_type_info *type, int newobject } type_name_len = strlen(type_name); - MAKE_STD_ZVAL(resource); - ZEND_REGISTER_RESOURCE(resource, value, *(int *)(type->clientdata)); + ZVAL_RES(&resource, zend_register_resource(value, *(int *)(type->clientdata))); if (SWIG_PREFIX_LEN > 0) { - char * classname = (char*)emalloc(SWIG_PREFIX_LEN + type_name_len + 1); - strcpy(classname, SWIG_PREFIX); - strcpy(classname + SWIG_PREFIX_LEN, type_name); - result = zend_lookup_class(classname, SWIG_PREFIX_LEN + type_name_len, &ce TSRMLS_CC); - efree(classname); + zend_string * classname = zend_string_alloc(SWIG_PREFIX_LEN + type_name_len, 0); + memcpy(classname->val, SWIG_PREFIX, SWIG_PREFIX_LEN); + memcpy(classname->val + SWIG_PREFIX_LEN, type_name, type_name_len); + ce = zend_lookup_class(classname); + zend_string_release(classname); } else { - result = zend_lookup_class((char *)type_name, type_name_len, &ce TSRMLS_CC); + zend_string * classname = zend_string_init(type_name, type_name_len, 0); + ce = zend_lookup_class(classname); + zend_string_release(classname); } - if (result != SUCCESS) { + if (ce == NULL) { /* class does not exist */ - object_init(z); - } else { - object_init_ex(z, *ce); + ce = zend_standard_class_def; } - Z_SET_REFCOUNT_P(z, 1); - Z_SET_ISREF_P(z); - zend_hash_update(HASH_OF(z), (char*)"_cPtr", sizeof("_cPtr"), (void*)&resource, sizeof(zval), NULL); + + ALLOC_HASHTABLE(ht); + zend_hash_init(ht, 1, NULL, NULL, 0); + zend_hash_str_update(ht, "_cPtr", sizeof("_cPtr") - 1, &resource); + object_and_properties_init(z, ce, ht); } return; } @@ -865,11 +850,11 @@ SWIG_ZTS_SetPointerZval(zval *z, void *ptr, swig_type_info *type, int newobject instance of a resource of the type id, so we have to pass type_name as well. The two functions which might call this are: - SWIG_ZTS_ConvertResourcePtr which gets the type name from the resource + SWIG_ConvertResourcePtr which gets the type name from the resource and the registered zend destructors for which we have one per type each with the type name hard wired in. */ static void * -SWIG_ZTS_ConvertResourceData(void * p, const char *type_name, swig_type_info *ty TSRMLS_DC) { +SWIG_ConvertResourceData(void * p, const char *type_name, swig_type_info *ty) { swig_cast_info *tc; void *result = 0; @@ -896,48 +881,53 @@ SWIG_ZTS_ConvertResourceData(void * p, const char *type_name, swig_type_info *ty /* This function returns a pointer of type ty by extracting the pointer and type info from the resource in z. z must be a resource. If it fails, NULL is returned. - It uses SWIG_ZTS_ConvertResourceData to do the real work. */ + It uses SWIG_ConvertResourceData to do the real work. */ static void * -SWIG_ZTS_ConvertResourcePtr(zval *z, swig_type_info *ty, int flags TSRMLS_DC) { +SWIG_ConvertResourcePtr(zval *z, swig_type_info *ty, int flags) { swig_object_wrapper *value; void *p; - int type; const char *type_name; - value = (swig_object_wrapper *) zend_list_find(z->value.lval, &type); - if (type==-1) return NULL; + if (Z_RES_TYPE_P(z) == -1) return NULL; + value = (swig_object_wrapper *) Z_RES_VAL_P(z); if (flags & SWIG_POINTER_DISOWN) { value->newobject = 0; } p = value->ptr; - type_name=zend_rsrc_list_get_rsrc_type(z->value.lval TSRMLS_CC); + type_name=zend_rsrc_list_get_rsrc_type(Z_RES_P(z)); - return SWIG_ZTS_ConvertResourceData(p, type_name, ty TSRMLS_CC); + return SWIG_ConvertResourceData(p, type_name, ty); } /* We allow passing of a RESOURCE pointing to the object or an OBJECT whose _cPtr is a resource pointing to the object */ static int -SWIG_ZTS_ConvertPtr(zval *z, void **ptr, swig_type_info *ty, int flags TSRMLS_DC) { +SWIG_ConvertPtr(zval *z, void **ptr, swig_type_info *ty, int flags) { if (z == NULL) { *ptr = 0; return 0; } - switch (z->type) { + switch (Z_TYPE_P(z)) { case IS_OBJECT: { - zval ** _cPtr; - if (zend_hash_find(HASH_OF(z),(char*)"_cPtr",sizeof("_cPtr"),(void**)&_cPtr)==SUCCESS) { - if ((*_cPtr)->type==IS_RESOURCE) { - *ptr = SWIG_ZTS_ConvertResourcePtr(*_cPtr, ty, flags TSRMLS_CC); - return (*ptr == NULL ? -1 : 0); - } + HashTable * ht = Z_OBJ_HT_P(z)->get_properties(z); + if (ht) { + zval * _cPtr = zend_hash_str_find(ht, "_cPtr", sizeof("_cPtr") - 1); + if (_cPtr) { + if (Z_TYPE_P(_cPtr) == IS_INDIRECT) { + _cPtr = Z_INDIRECT_P(_cPtr); + } + if (Z_TYPE_P(_cPtr) == IS_RESOURCE) { + *ptr = SWIG_ConvertResourcePtr(_cPtr, ty, flags); + return (*ptr == NULL ? -1 : 0); + } + } } break; } case IS_RESOURCE: - *ptr = SWIG_ZTS_ConvertResourcePtr(z, ty, flags TSRMLS_CC); + *ptr = SWIG_ConvertResourcePtr(z, ty, flags); return (*ptr == NULL ? -1 : 0); case IS_NULL: *ptr = 0; @@ -949,24 +939,17 @@ SWIG_ZTS_ConvertPtr(zval *z, void **ptr, swig_type_info *ty, int flags TSRMLS_DC static char const_name[] = "swig_runtime_data_type_pointer"; static swig_module_info *SWIG_Php_GetModule() { - zval *pointer; - swig_module_info *ret = 0; - TSRMLS_FETCH(); - - MAKE_STD_ZVAL(pointer); - - if (zend_get_constant(const_name, sizeof(const_name) - 1, pointer TSRMLS_CC)) { - if (pointer->type == IS_LONG) { - ret = (swig_module_info *) pointer->value.lval; + 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; } } - FREE_ZVAL(pointer); - return ret; + return NULL; } static void SWIG_Php_SetModule(swig_module_info *pointer) { - TSRMLS_FETCH(); - REGISTER_MAIN_LONG_CONSTANT(const_name, (long) pointer, 0); + REGISTER_MAIN_LONG_CONSTANT(const_name, (long) pointer, CONST_PERSISTENT | CONST_CS); } @@ -989,19 +972,13 @@ const char *error_msg; int error_code; ZEND_END_MODULE_GLOBALS(wiringpi) ZEND_DECLARE_MODULE_GLOBALS(wiringpi) -#ifdef ZTS -#define SWIG_ErrorMsg() TSRMG(wiringpi_globals_id, zend_wiringpi_globals *, error_msg ) -#define SWIG_ErrorCode() TSRMG(wiringpi_globals_id, zend_wiringpi_globals *, error_code ) -#else -#define SWIG_ErrorMsg() (wiringpi_globals.error_msg) -#define SWIG_ErrorCode() (wiringpi_globals.error_code) -#endif - +#define SWIG_ErrorMsg() ZEND_MODULE_GLOBALS_ACCESSOR(wiringpi, error_msg) +#define SWIG_ErrorCode() ZEND_MODULE_GLOBALS_ACCESSOR(wiringpi, error_code) #ifdef __GNUC__ -static void SWIG_FAIL(TSRMLS_D) __attribute__ ((__noreturn__)); +static void SWIG_FAIL(void) __attribute__ ((__noreturn__)); #endif -static void SWIG_FAIL(TSRMLS_D) { +static void SWIG_FAIL(void) { zend_error(SWIG_ErrorCode(), "%s", SWIG_ErrorMsg()); abort(); } @@ -1010,39 +987,35 @@ static void wiringpi_init_globals(zend_wiringpi_globals *globals ) { globals->error_msg = default_error_msg; globals->error_code = default_error_code; } -static void wiringpi_destroy_globals(zend_wiringpi_globals * globals) { (void)globals; } - -static void SWIG_ResetError(TSRMLS_D) { +static void SWIG_ResetError(void) { SWIG_ErrorMsg() = default_error_msg; SWIG_ErrorCode() = default_error_code; } ZEND_NAMED_FUNCTION(_wrap_swig_wiringpi_alter_newobject) { - zval **args[2]; + zval args[2]; swig_object_wrapper *value; - int type; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - value = (swig_object_wrapper *) zend_list_find((*args[0])->value.lval, &type); - value->newobject = zval_is_true(*args[1]); + value = (swig_object_wrapper *) Z_RES_VAL(args[0]); + value->newobject = zval_is_true(&args[1]); return; } ZEND_NAMED_FUNCTION(_wrap_swig_wiringpi_get_newobject) { - zval **args[1]; + zval args[1]; swig_object_wrapper *value; - int type; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - value = (swig_object_wrapper *) zend_list_find((*args[0])->value.lval, &type); + value = (swig_object_wrapper *) Z_RES_VAL(args[0]); RETVAL_LONG(value->newobject); return; @@ -1140,418 +1113,416 @@ ZEND_NAMED_FUNCTION(_wrap_wiringPiFailure) { int arg1 ; char *arg2 = (char *) 0 ; void *arg3 = 0 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,62,CONVERT_STRING_IN@*/ - if ((*args[1])->type==IS_NULL) { + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,57,CONVERT_STRING_IN@*/ + if (Z_ISNULL(args[1])) { arg2 = (char *) 0; } else { - convert_to_string_ex(args[1]); - arg2 = (char *) Z_STRVAL_PP(args[1]); + convert_to_string(&args[1]); + arg2 = (char *) Z_STRVAL(args[1]); } /*@SWIG@*/; result = (int)wiringPiFailure(arg1,(char const *)arg2,arg3); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_wiringPiFindNode) { int arg1 ; - zval **args[1]; + zval args[1]; struct wiringPiNodeStruct *result = 0 ; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (struct wiringPiNodeStruct *)wiringPiFindNode(arg1); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_wiringPiNodeStruct, 0); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_wiringPiNewNode) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; struct wiringPiNodeStruct *result = 0 ; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (struct wiringPiNodeStruct *)wiringPiNewNode(arg1,arg2); SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_wiringPiNodeStruct, 0); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_wiringPiSetup) { int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (int)wiringPiSetup(); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_wiringPiSetupSys) { int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (int)wiringPiSetupSys(); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_wiringPiSetupGpio) { int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (int)wiringPiSetupGpio(); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_wiringPiSetupPhys) { int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (int)wiringPiSetupPhys(); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_pinModeAlt) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; pinModeAlt(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_pinMode) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; pinMode(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_pullUpDnControl) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; pullUpDnControl(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_digitalRead) { int arg1 ; - zval **args[1]; + zval args[1]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (int)digitalRead(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_digitalWrite) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; digitalWrite(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_pwmWrite) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; pwmWrite(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_analogRead) { int arg1 ; - zval **args[1]; + zval args[1]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (int)analogRead(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_analogWrite) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; analogWrite(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_piBoardRev) { int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (int)piBoardRev(); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -1561,658 +1532,656 @@ ZEND_NAMED_FUNCTION(_wrap_piBoardId) { int *arg3 = (int *) 0 ; int *arg4 = (int *) 0 ; int *arg5 = (int *) 0 ; - zval **args[5]; + zval args[5]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 5 || zend_get_parameters_array_ex(5, args) != SUCCESS) { WRONG_PARAM_COUNT; } - { - if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_int, 0) < 0) { - SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of piBoardId. Expected SWIGTYPE_p_int"); - } + + if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_int, 0) < 0) { + SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of piBoardId. Expected SWIGTYPE_p_int"); } - { - if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_int, 0) < 0) { - SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of piBoardId. Expected SWIGTYPE_p_int"); - } + + + if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_int, 0) < 0) { + SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of piBoardId. Expected SWIGTYPE_p_int"); } - { - if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_int, 0) < 0) { - SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of piBoardId. Expected SWIGTYPE_p_int"); - } + + + if (SWIG_ConvertPtr(&args[2], (void **) &arg3, SWIGTYPE_p_int, 0) < 0) { + SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of piBoardId. Expected SWIGTYPE_p_int"); } - { - if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_int, 0) < 0) { - SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of piBoardId. Expected SWIGTYPE_p_int"); - } + + + if (SWIG_ConvertPtr(&args[3], (void **) &arg4, SWIGTYPE_p_int, 0) < 0) { + SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of piBoardId. Expected SWIGTYPE_p_int"); } - { - if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_int, 0) < 0) { - SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of piBoardId. Expected SWIGTYPE_p_int"); - } + + + if (SWIG_ConvertPtr(&args[4], (void **) &arg5, SWIGTYPE_p_int, 0) < 0) { + SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of piBoardId. Expected SWIGTYPE_p_int"); } + piBoardId(arg1,arg2,arg3,arg4,arg5); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_wpiPinToGpio) { int arg1 ; - zval **args[1]; + zval args[1]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (int)wpiPinToGpio(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_physPinToGpio) { int arg1 ; - zval **args[1]; + zval args[1]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (int)physPinToGpio(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_setPadDrive) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; setPadDrive(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_getAlt) { int arg1 ; - zval **args[1]; + zval args[1]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (int)getAlt(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_pwmToneWrite) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; pwmToneWrite(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_digitalWriteByte) { int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; digitalWriteByte(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_digitalReadByte) { unsigned int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (unsigned int)digitalReadByte(); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_pwmSetMode) { int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; pwmSetMode(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_pwmSetRange) { unsigned int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (unsigned int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (unsigned int) zval_get_long(&args[0]); /*@SWIG@*/; pwmSetRange(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_pwmSetClock) { int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; pwmSetClock(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_gpioClockSet) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; gpioClockSet(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_waitForInterrupt) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)waitForInterrupt(arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_piThreadCreate) { void *(*arg1)(void *) = (void *(*)(void *)) 0 ; - zval **args[1]; + zval args[1]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); 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_f_p_void__p_void, 0) < 0) { - SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of piThreadCreate. Expected SWIGTYPE_p_f_p_void__p_void"); - } + + if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_f_p_void__p_void, 0) < 0) { + SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of piThreadCreate. Expected SWIGTYPE_p_f_p_void__p_void"); } + result = (int)piThreadCreate(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_piLock) { int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; piLock(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_piUnlock) { int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; piUnlock(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_piHiPri) { int arg1 ; - zval **args[1]; + zval args[1]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (int)piHiPri(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_delay) { unsigned int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (unsigned int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (unsigned int) zval_get_long(&args[0]); /*@SWIG@*/; delay(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_delayMicroseconds) { unsigned int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (unsigned int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (unsigned int) zval_get_long(&args[0]); /*@SWIG@*/; delayMicroseconds(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_millis) { unsigned int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (unsigned int)millis(); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_micros) { unsigned int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (unsigned int)micros(); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_wiringPiI2CRead) { int arg1 ; - zval **args[1]; + zval args[1]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (int)wiringPiI2CRead(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_wiringPiI2CReadReg8) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)wiringPiI2CReadReg8(arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_wiringPiI2CReadReg16) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)wiringPiI2CReadReg16(arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_wiringPiI2CWrite) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)wiringPiI2CWrite(arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -2220,39 +2189,37 @@ ZEND_NAMED_FUNCTION(_wrap_wiringPiI2CWriteReg8) { int arg1 ; int arg2 ; int arg3 ; - zval **args[3]; + zval args[3]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; result = (int)wiringPiI2CWriteReg8(arg1,arg2,arg3); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -2260,128 +2227,126 @@ ZEND_NAMED_FUNCTION(_wrap_wiringPiI2CWriteReg16) { int arg1 ; int arg2 ; int arg3 ; - zval **args[3]; + zval args[3]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; result = (int)wiringPiI2CWriteReg16(arg1,arg2,arg3); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_wiringPiI2CSetupInterface) { char *arg1 = (char *) 0 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,62,CONVERT_STRING_IN@*/ - if ((*args[0])->type==IS_NULL) { + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,57,CONVERT_STRING_IN@*/ + if (Z_ISNULL(args[0])) { arg1 = (char *) 0; } else { - convert_to_string_ex(args[0]); - arg1 = (char *) Z_STRVAL_PP(args[0]); + convert_to_string(&args[0]); + arg1 = (char *) Z_STRVAL(args[0]); } /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)wiringPiI2CSetupInterface((char const *)arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_wiringPiI2CSetup) { int arg1 ; - zval **args[1]; + zval args[1]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (int)wiringPiI2CSetup(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_wiringPiSPIGetFd) { int arg1 ; - zval **args[1]; + zval args[1]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (int)wiringPiSPIGetFd(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -2389,38 +2354,37 @@ ZEND_NAMED_FUNCTION(_wrap_wiringPiSPIDataRW) { int arg1 ; unsigned char *arg2 = (unsigned char *) 0 ; int arg3 ; - zval **args[3]; + zval args[3]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - { - if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_unsigned_char, 0) < 0) { - SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of wiringPiSPIDataRW. Expected SWIGTYPE_p_unsigned_char"); - } + + if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_unsigned_char, 0) < 0) { + SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of wiringPiSPIDataRW. Expected SWIGTYPE_p_unsigned_char"); } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; result = (int)wiringPiSPIDataRW(arg1,arg2,arg3); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -2428,219 +2392,215 @@ ZEND_NAMED_FUNCTION(_wrap_wiringPiSPISetupMode) { int arg1 ; int arg2 ; int arg3 ; - zval **args[3]; + zval args[3]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; result = (int)wiringPiSPISetupMode(arg1,arg2,arg3); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_wiringPiSPISetup) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)wiringPiSPISetup(arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_serialOpen) { char *arg1 = (char *) 0 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,62,CONVERT_STRING_IN@*/ - if ((*args[0])->type==IS_NULL) { + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,57,CONVERT_STRING_IN@*/ + if (Z_ISNULL(args[0])) { arg1 = (char *) 0; } else { - convert_to_string_ex(args[0]); - arg1 = (char *) Z_STRVAL_PP(args[0]); + convert_to_string(&args[0]); + arg1 = (char *) Z_STRVAL(args[0]); } /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)serialOpen((char const *)arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_serialClose) { int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; serialClose(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_serialFlush) { int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; serialFlush(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_serialPutchar) { int arg1 ; unsigned char arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (unsigned char) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (unsigned char) zval_get_long(&args[1]); /*@SWIG@*/; serialPutchar(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_serialPuts) { int arg1 ; char *arg2 = (char *) 0 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,62,CONVERT_STRING_IN@*/ - if ((*args[1])->type==IS_NULL) { + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,57,CONVERT_STRING_IN@*/ + if (Z_ISNULL(args[1])) { arg2 = (char *) 0; } else { - convert_to_string_ex(args[1]); - arg2 = (char *) Z_STRVAL_PP(args[1]); + convert_to_string(&args[1]); + arg2 = (char *) Z_STRVAL(args[1]); } /*@SWIG@*/; serialPuts(arg1,(char const *)arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -2648,86 +2608,86 @@ ZEND_NAMED_FUNCTION(_wrap_serialPrintf) { int arg1 ; char *arg2 = (char *) 0 ; void *arg3 = 0 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,62,CONVERT_STRING_IN@*/ - if ((*args[1])->type==IS_NULL) { + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,57,CONVERT_STRING_IN@*/ + if (Z_ISNULL(args[1])) { arg2 = (char *) 0; } else { - convert_to_string_ex(args[1]); - arg2 = (char *) Z_STRVAL_PP(args[1]); + convert_to_string(&args[1]); + arg2 = (char *) Z_STRVAL(args[1]); } /*@SWIG@*/; serialPrintf(arg1,(char const *)arg2,arg3); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_serialDataAvail) { int arg1 ; - zval **args[1]; + zval args[1]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (int)serialDataAvail(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_serialGetchar) { int arg1 ; - zval **args[1]; + zval args[1]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (int)serialGetchar(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -2735,39 +2695,37 @@ ZEND_NAMED_FUNCTION(_wrap_shiftIn) { uint8_t arg1 ; uint8_t arg2 ; uint8_t arg3 ; - zval **args[3]; + zval args[3]; uint8_t result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (uint8_t) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (uint8_t) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (uint8_t) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (uint8_t) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (uint8_t) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (uint8_t) zval_get_long(&args[2]); /*@SWIG@*/; result = shiftIn(arg1,arg2,arg3); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -2776,42 +2734,39 @@ ZEND_NAMED_FUNCTION(_wrap_shiftOut) { uint8_t arg2 ; uint8_t arg3 ; uint8_t arg4 ; - zval **args[4]; + zval args[4]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (uint8_t) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (uint8_t) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (uint8_t) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (uint8_t) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (uint8_t) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (uint8_t) zval_get_long(&args[2]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[3]); - arg4 = (uint8_t) Z_LVAL_PP(args[3]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg4 = (uint8_t) zval_get_long(&args[3]); /*@SWIG@*/; shiftOut(arg1,arg2,arg3,arg4); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -2820,247 +2775,239 @@ ZEND_NAMED_FUNCTION(_wrap_drcSetupSerial) { int arg2 ; char *arg3 = (char *) 0 ; int arg4 ; - zval **args[4]; + zval args[4]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,62,CONVERT_STRING_IN@*/ - if ((*args[2])->type==IS_NULL) { + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,57,CONVERT_STRING_IN@*/ + if (Z_ISNULL(args[2])) { arg3 = (char *) 0; } else { - convert_to_string_ex(args[2]); - arg3 = (char *) Z_STRVAL_PP(args[2]); + convert_to_string(&args[2]); + arg3 = (char *) Z_STRVAL(args[2]); } /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[3]); - arg4 = (int) Z_LVAL_PP(args[3]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg4 = (int) zval_get_long(&args[3]); /*@SWIG@*/; result = (int)drcSetupSerial(arg1,arg2,(char const *)arg3,arg4); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_ads1115Setup) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)ads1115Setup(arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_max31855Setup) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)max31855Setup(arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_max5322Setup) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)max5322Setup(arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_mcp23008Setup) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)mcp23008Setup(arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_mcp23016Setup) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)mcp23016Setup(arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_mcp23017Setup) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)mcp23017Setup(arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -3068,39 +3015,37 @@ ZEND_NAMED_FUNCTION(_wrap_mcp23s08Setup) { int arg1 ; int arg2 ; int arg3 ; - zval **args[3]; + zval args[3]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; result = (int)mcp23s08Setup(arg1,arg2,arg3); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -3108,105 +3053,101 @@ ZEND_NAMED_FUNCTION(_wrap_mcp23s17Setup) { int arg1 ; int arg2 ; int arg3 ; - zval **args[3]; + zval args[3]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; result = (int)mcp23s17Setup(arg1,arg2,arg3); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_mcp3002Setup) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)mcp3002Setup(arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_mcp3004Setup) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)mcp3004Setup(arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -3215,170 +3156,164 @@ ZEND_NAMED_FUNCTION(_wrap_mcp3422Setup) { int arg2 ; int arg3 ; int arg4 ; - zval **args[4]; + zval args[4]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[3]); - arg4 = (int) Z_LVAL_PP(args[3]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg4 = (int) zval_get_long(&args[3]); /*@SWIG@*/; result = (int)mcp3422Setup(arg1,arg2,arg3,arg4); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_mcp4802Setup) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)mcp4802Setup(arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_pcf8574Setup) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)pcf8574Setup(arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_pcf8591Setup) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; result = (int)pcf8591Setup(arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_sn3218Setup) { int arg1 ; - zval **args[1]; + zval args[1]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (int)sn3218Setup(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -3386,122 +3321,118 @@ ZEND_NAMED_FUNCTION(_wrap_softPwmCreate) { int arg1 ; int arg2 ; int arg3 ; - zval **args[3]; + zval args[3]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; result = (int)softPwmCreate(arg1,arg2,arg3); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_softPwmWrite) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; softPwmWrite(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_softPwmStop) { int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; softPwmStop(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_softServoWrite) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; softServoWrite(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -3514,148 +3445,140 @@ ZEND_NAMED_FUNCTION(_wrap_softServoSetup) { int arg6 ; int arg7 ; int arg8 ; - zval **args[8]; + zval args[8]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 8 || zend_get_parameters_array_ex(8, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[3]); - arg4 = (int) Z_LVAL_PP(args[3]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg4 = (int) zval_get_long(&args[3]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[4]); - arg5 = (int) Z_LVAL_PP(args[4]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg5 = (int) zval_get_long(&args[4]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[5]); - arg6 = (int) Z_LVAL_PP(args[5]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg6 = (int) zval_get_long(&args[5]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[6]); - arg7 = (int) Z_LVAL_PP(args[6]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg7 = (int) zval_get_long(&args[6]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[7]); - arg8 = (int) Z_LVAL_PP(args[7]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg8 = (int) zval_get_long(&args[7]); /*@SWIG@*/; result = (int)softServoSetup(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_softToneCreate) { int arg1 ; - zval **args[1]; + zval args[1]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (int)softToneCreate(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_softToneStop) { int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; softToneStop(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_softToneWrite) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; softToneWrite(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -3665,237 +3588,232 @@ ZEND_NAMED_FUNCTION(_wrap_sr595Setup) { int arg3 ; int arg4 ; int arg5 ; - zval **args[5]; + zval args[5]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 5 || zend_get_parameters_array_ex(5, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[3]); - arg4 = (int) Z_LVAL_PP(args[3]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg4 = (int) zval_get_long(&args[3]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[4]); - arg5 = (int) Z_LVAL_PP(args[4]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg5 = (int) zval_get_long(&args[4]); /*@SWIG@*/; result = (int)sr595Setup(arg1,arg2,arg3,arg4,arg5); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_ds1302rtcRead) { int arg1 ; - zval **args[1]; + zval args[1]; unsigned int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (unsigned int)ds1302rtcRead(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_ds1302rtcWrite) { int arg1 ; unsigned int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (unsigned int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (unsigned int) zval_get_long(&args[1]); /*@SWIG@*/; ds1302rtcWrite(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_ds1302ramRead) { int arg1 ; - zval **args[1]; + zval args[1]; unsigned int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (unsigned int)ds1302ramRead(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_ds1302ramWrite) { int arg1 ; unsigned int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (unsigned int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (unsigned int) zval_get_long(&args[1]); /*@SWIG@*/; ds1302ramWrite(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_ds1302clockRead) { int *arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); 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_int, 0) < 0) { - SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ds1302clockRead. Expected SWIGTYPE_p_int"); - } + + if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_int, 0) < 0) { + SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ds1302clockRead. Expected SWIGTYPE_p_int"); } + ds1302clockRead(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_ds1302clockWrite) { int *arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); 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_int, 0) < 0) { - SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ds1302clockWrite. Expected SWIGTYPE_p_int"); - } + + if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_int, 0) < 0) { + SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of ds1302clockWrite. Expected SWIGTYPE_p_int"); } + ds1302clockWrite((int const (*))arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_ds1302trickleCharge) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; ds1302trickleCharge(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -3903,245 +3821,244 @@ ZEND_NAMED_FUNCTION(_wrap_ds1302setup) { int arg1 ; int arg2 ; int arg3 ; - zval **args[3]; + zval args[3]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; ds1302setup(arg1,arg2,arg3); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_gertboardAnalogWrite) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; gertboardAnalogWrite(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_gertboardAnalogRead) { int arg1 ; - zval **args[1]; + zval args[1]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (int)gertboardAnalogRead(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_gertboardSPISetup) { int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (int)gertboardSPISetup(); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_gertboardAnalogSetup) { int arg1 ; - zval **args[1]; + zval args[1]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (int)gertboardAnalogSetup(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_lcd128x64setOrigin) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; lcd128x64setOrigin(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_lcd128x64setOrientation) { int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; lcd128x64setOrientation(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_lcd128x64orientCoordinates) { int *arg1 = (int *) 0 ; int *arg2 = (int *) 0 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - { - if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_int, 0) < 0) { - SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of lcd128x64orientCoordinates. Expected SWIGTYPE_p_int"); - } + + if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_int, 0) < 0) { + SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of lcd128x64orientCoordinates. Expected SWIGTYPE_p_int"); } - { - if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_int, 0) < 0) { - SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of lcd128x64orientCoordinates. Expected SWIGTYPE_p_int"); - } + + + if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_int, 0) < 0) { + SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of lcd128x64orientCoordinates. Expected SWIGTYPE_p_int"); } + lcd128x64orientCoordinates(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_lcd128x64getScreenSize) { int *arg1 = (int *) 0 ; int *arg2 = (int *) 0 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - { - if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_int, 0) < 0) { - SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of lcd128x64getScreenSize. Expected SWIGTYPE_p_int"); - } + + if (SWIG_ConvertPtr(&args[0], (void **) &arg1, SWIGTYPE_p_int, 0) < 0) { + SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of lcd128x64getScreenSize. Expected SWIGTYPE_p_int"); } - { - if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_int, 0) < 0) { - SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of lcd128x64getScreenSize. Expected SWIGTYPE_p_int"); - } + + + if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_int, 0) < 0) { + SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of lcd128x64getScreenSize. Expected SWIGTYPE_p_int"); } + lcd128x64getScreenSize(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -4149,36 +4066,34 @@ ZEND_NAMED_FUNCTION(_wrap_lcd128x64point) { int arg1 ; int arg2 ; int arg3 ; - zval **args[3]; + zval args[3]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; lcd128x64point(arg1,arg2,arg3); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -4188,48 +4103,44 @@ ZEND_NAMED_FUNCTION(_wrap_lcd128x64line) { int arg3 ; int arg4 ; int arg5 ; - zval **args[5]; + zval args[5]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 5 || zend_get_parameters_array_ex(5, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[3]); - arg4 = (int) Z_LVAL_PP(args[3]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg4 = (int) zval_get_long(&args[3]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[4]); - arg5 = (int) Z_LVAL_PP(args[4]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg5 = (int) zval_get_long(&args[4]); /*@SWIG@*/; lcd128x64line(arg1,arg2,arg3,arg4,arg5); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -4237,36 +4148,34 @@ ZEND_NAMED_FUNCTION(_wrap_lcd128x64lineTo) { int arg1 ; int arg2 ; int arg3 ; - zval **args[3]; + zval args[3]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; lcd128x64lineTo(arg1,arg2,arg3); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -4277,54 +4186,49 @@ ZEND_NAMED_FUNCTION(_wrap_lcd128x64rectangle) { int arg4 ; int arg5 ; int arg6 ; - zval **args[6]; + zval args[6]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 6 || zend_get_parameters_array_ex(6, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[3]); - arg4 = (int) Z_LVAL_PP(args[3]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg4 = (int) zval_get_long(&args[3]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[4]); - arg5 = (int) Z_LVAL_PP(args[4]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg5 = (int) zval_get_long(&args[4]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[5]); - arg6 = (int) Z_LVAL_PP(args[5]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg6 = (int) zval_get_long(&args[5]); /*@SWIG@*/; lcd128x64rectangle(arg1,arg2,arg3,arg4,arg5,arg6); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -4334,48 +4238,44 @@ ZEND_NAMED_FUNCTION(_wrap_lcd128x64circle) { int arg3 ; int arg4 ; int arg5 ; - zval **args[5]; + zval args[5]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 5 || zend_get_parameters_array_ex(5, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[3]); - arg4 = (int) Z_LVAL_PP(args[3]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg4 = (int) zval_get_long(&args[3]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[4]); - arg5 = (int) Z_LVAL_PP(args[4]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg5 = (int) zval_get_long(&args[4]); /*@SWIG@*/; lcd128x64circle(arg1,arg2,arg3,arg4,arg5); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -4386,54 +4286,49 @@ ZEND_NAMED_FUNCTION(_wrap_lcd128x64ellipse) { int arg4 ; int arg5 ; int arg6 ; - zval **args[6]; + zval args[6]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 6 || zend_get_parameters_array_ex(6, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[3]); - arg4 = (int) Z_LVAL_PP(args[3]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg4 = (int) zval_get_long(&args[3]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[4]); - arg5 = (int) Z_LVAL_PP(args[4]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg5 = (int) zval_get_long(&args[4]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[5]); - arg6 = (int) Z_LVAL_PP(args[5]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg6 = (int) zval_get_long(&args[5]); /*@SWIG@*/; lcd128x64ellipse(arg1,arg2,arg3,arg4,arg5,arg6); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -4443,48 +4338,44 @@ ZEND_NAMED_FUNCTION(_wrap_lcd128x64putchar) { int arg3 ; int arg4 ; int arg5 ; - zval **args[5]; + zval args[5]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 5 || zend_get_parameters_array_ex(5, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[3]); - arg4 = (int) Z_LVAL_PP(args[3]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg4 = (int) zval_get_long(&args[3]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[4]); - arg5 = (int) Z_LVAL_PP(args[4]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg5 = (int) zval_get_long(&args[4]); /*@SWIG@*/; lcd128x64putchar(arg1,arg2,arg3,arg4,arg5); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -4494,273 +4385,268 @@ ZEND_NAMED_FUNCTION(_wrap_lcd128x64puts) { char *arg3 = (char *) 0 ; int arg4 ; int arg5 ; - zval **args[5]; + zval args[5]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 5 || zend_get_parameters_array_ex(5, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,62,CONVERT_STRING_IN@*/ - if ((*args[2])->type==IS_NULL) { + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,57,CONVERT_STRING_IN@*/ + if (Z_ISNULL(args[2])) { arg3 = (char *) 0; } else { - convert_to_string_ex(args[2]); - arg3 = (char *) Z_STRVAL_PP(args[2]); + convert_to_string(&args[2]); + arg3 = (char *) Z_STRVAL(args[2]); } /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[3]); - arg4 = (int) Z_LVAL_PP(args[3]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg4 = (int) zval_get_long(&args[3]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[4]); - arg5 = (int) Z_LVAL_PP(args[4]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg5 = (int) zval_get_long(&args[4]); /*@SWIG@*/; lcd128x64puts(arg1,arg2,(char const *)arg3,arg4,arg5); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_lcd128x64update) { - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } lcd128x64update(); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_lcd128x64clear) { int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; lcd128x64clear(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_lcd128x64setup) { int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (int)lcd128x64setup(); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_lcdHome) { int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; lcdHome(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_lcdClear) { int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; lcdClear(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_lcdDisplay) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; lcdDisplay(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_lcdCursor) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; lcdCursor(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_lcdCursorBlink) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; lcdCursorBlink(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_lcdSendCommand) { int arg1 ; unsigned char arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (unsigned char) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (unsigned char) zval_get_long(&args[1]); /*@SWIG@*/; lcdSendCommand(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -4768,36 +4654,34 @@ ZEND_NAMED_FUNCTION(_wrap_lcdPosition) { int arg1 ; int arg2 ; int arg3 ; - zval **args[3]; + zval args[3]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; lcdPosition(arg1,arg2,arg3); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -4805,99 +4689,97 @@ ZEND_NAMED_FUNCTION(_wrap_lcdCharDef) { int arg1 ; int arg2 ; unsigned char *arg3 ; - zval **args[3]; + zval args[3]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - { - if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_unsigned_char, 0) < 0) { - SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of lcdCharDef. Expected SWIGTYPE_p_unsigned_char"); - } + + if (SWIG_ConvertPtr(&args[2], (void **) &arg3, SWIGTYPE_p_unsigned_char, 0) < 0) { + SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of lcdCharDef. Expected SWIGTYPE_p_unsigned_char"); } + lcdCharDef(arg1,arg2,arg3); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_lcdPutchar) { int arg1 ; unsigned char arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (unsigned char) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (unsigned char) zval_get_long(&args[1]); /*@SWIG@*/; lcdPutchar(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_lcdPuts) { int arg1 ; char *arg2 = (char *) 0 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,62,CONVERT_STRING_IN@*/ - if ((*args[1])->type==IS_NULL) { + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,57,CONVERT_STRING_IN@*/ + if (Z_ISNULL(args[1])) { arg2 = (char *) 0; } else { - convert_to_string_ex(args[1]); - arg2 = (char *) Z_STRVAL_PP(args[1]); + convert_to_string(&args[1]); + arg2 = (char *) Z_STRVAL(args[1]); } /*@SWIG@*/; lcdPuts(arg1,(char const *)arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -4905,34 +4787,34 @@ ZEND_NAMED_FUNCTION(_wrap_lcdPrintf) { int arg1 ; char *arg2 = (char *) 0 ; void *arg3 = 0 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,62,CONVERT_STRING_IN@*/ - if ((*args[1])->type==IS_NULL) { + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,57,CONVERT_STRING_IN@*/ + if (Z_ISNULL(args[1])) { arg2 = (char *) 0; } else { - convert_to_string_ex(args[1]); - arg2 = (char *) Z_STRVAL_PP(args[1]); + convert_to_string(&args[1]); + arg2 = (char *) Z_STRVAL(args[1]); } /*@SWIG@*/; lcdPrintf(arg1,(char const *)arg2,arg3); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -4950,131 +4832,119 @@ ZEND_NAMED_FUNCTION(_wrap_lcdInit) { int arg11 ; int arg12 ; int arg13 ; - zval **args[13]; + zval args[13]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 13 || zend_get_parameters_array_ex(13, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[3]); - arg4 = (int) Z_LVAL_PP(args[3]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg4 = (int) zval_get_long(&args[3]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[4]); - arg5 = (int) Z_LVAL_PP(args[4]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg5 = (int) zval_get_long(&args[4]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[5]); - arg6 = (int) Z_LVAL_PP(args[5]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg6 = (int) zval_get_long(&args[5]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[6]); - arg7 = (int) Z_LVAL_PP(args[6]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg7 = (int) zval_get_long(&args[6]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[7]); - arg8 = (int) Z_LVAL_PP(args[7]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg8 = (int) zval_get_long(&args[7]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[8]); - arg9 = (int) Z_LVAL_PP(args[8]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg9 = (int) zval_get_long(&args[8]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[9]); - arg10 = (int) Z_LVAL_PP(args[9]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg10 = (int) zval_get_long(&args[9]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[10]); - arg11 = (int) Z_LVAL_PP(args[10]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg11 = (int) zval_get_long(&args[10]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[11]); - arg12 = (int) Z_LVAL_PP(args[11]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg12 = (int) zval_get_long(&args[11]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[12]); - arg13 = (int) Z_LVAL_PP(args[12]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg13 = (int) zval_get_long(&args[12]); /*@SWIG@*/; result = (int)lcdInit(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_maxDetectRead) { int arg1 ; unsigned char *arg2 ; - zval **args[2]; + zval args[2]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - { - if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_unsigned_char, 0) < 0) { - SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of maxDetectRead. Expected SWIGTYPE_p_unsigned_char"); - } + + if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_unsigned_char, 0) < 0) { + SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of maxDetectRead. Expected SWIGTYPE_p_unsigned_char"); } + result = (int)maxDetectRead(arg1,arg2); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -5082,37 +4952,37 @@ ZEND_NAMED_FUNCTION(_wrap_readRHT03) { int arg1 ; int *arg2 = (int *) 0 ; int *arg3 = (int *) 0 ; - zval **args[3]; + zval args[3]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - { - if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_int, 0) < 0) { - SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of readRHT03. Expected SWIGTYPE_p_int"); - } + + if (SWIG_ConvertPtr(&args[1], (void **) &arg2, SWIGTYPE_p_int, 0) < 0) { + SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of readRHT03. Expected SWIGTYPE_p_int"); } - { - if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_int, 0) < 0) { - SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of readRHT03. Expected SWIGTYPE_p_int"); - } + + + if (SWIG_ConvertPtr(&args[2], (void **) &arg3, SWIGTYPE_p_int, 0) < 0) { + SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of readRHT03. Expected SWIGTYPE_p_int"); } + result = (int)readRHT03(arg1,arg2,arg3); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -5120,119 +4990,115 @@ ZEND_NAMED_FUNCTION(_wrap_piGlow1) { int arg1 ; int arg2 ; int arg3 ; - zval **args[3]; + zval args[3]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; piGlow1(arg1,arg2,arg3); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_piGlowLeg) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; piGlowLeg(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_piGlowRing) { int arg1 ; int arg2 ; - zval **args[2]; + zval args[2]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; piGlowRing(arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_piGlowSetup) { int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; piGlowSetup(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -5240,65 +5106,63 @@ ZEND_NAMED_FUNCTION(_wrap_setupNesJoystick) { int arg1 ; int arg2 ; int arg3 ; - zval **args[3]; + zval args[3]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; result = (int)setupNesJoystick(arg1,arg2,arg3); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_readNesJoystick) { int arg1 ; - zval **args[1]; + zval args[1]; unsigned int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (unsigned int)readNesJoystick(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -5306,36 +5170,34 @@ ZEND_NAMED_FUNCTION(_wrap_scrollPhatPoint) { int arg1 ; int arg2 ; int arg3 ; - zval **args[3]; + zval args[3]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; scrollPhatPoint(arg1,arg2,arg3); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -5345,48 +5207,44 @@ ZEND_NAMED_FUNCTION(_wrap_scrollPhatLine) { int arg3 ; int arg4 ; int arg5 ; - zval **args[5]; + zval args[5]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 5 || zend_get_parameters_array_ex(5, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[3]); - arg4 = (int) Z_LVAL_PP(args[3]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg4 = (int) zval_get_long(&args[3]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[4]); - arg5 = (int) Z_LVAL_PP(args[4]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg5 = (int) zval_get_long(&args[4]); /*@SWIG@*/; scrollPhatLine(arg1,arg2,arg3,arg4,arg5); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -5394,36 +5252,34 @@ ZEND_NAMED_FUNCTION(_wrap_scrollPhatLineTo) { int arg1 ; int arg2 ; int arg3 ; - zval **args[3]; + zval args[3]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; scrollPhatLineTo(arg1,arg2,arg3); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } @@ -5434,996 +5290,461 @@ ZEND_NAMED_FUNCTION(_wrap_scrollPhatRectangle) { int arg4 ; int arg5 ; int arg6 ; - zval **args[6]; + zval args[6]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 6 || zend_get_parameters_array_ex(6, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[1]); - arg2 = (int) Z_LVAL_PP(args[1]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg2 = (int) zval_get_long(&args[1]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[2]); - arg3 = (int) Z_LVAL_PP(args[2]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg3 = (int) zval_get_long(&args[2]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[3]); - arg4 = (int) Z_LVAL_PP(args[3]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg4 = (int) zval_get_long(&args[3]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[4]); - arg5 = (int) Z_LVAL_PP(args[4]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg5 = (int) zval_get_long(&args[4]); /*@SWIG@*/; - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[5]); - arg6 = (int) Z_LVAL_PP(args[5]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg6 = (int) zval_get_long(&args[5]); /*@SWIG@*/; scrollPhatRectangle(arg1,arg2,arg3,arg4,arg5,arg6); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_scrollPhatUpdate) { - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } scrollPhatUpdate(); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_scrollPhatClear) { - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } scrollPhatClear(); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_scrollPhatPutchar) { int arg1 ; - zval **args[1]; + zval args[1]; int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; result = (int)scrollPhatPutchar(arg1); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_scrollPhatPuts) { char *arg1 = (char *) 0 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,62,CONVERT_STRING_IN@*/ - if ((*args[0])->type==IS_NULL) { + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,57,CONVERT_STRING_IN@*/ + if (Z_ISNULL(args[0])) { arg1 = (char *) 0; } else { - convert_to_string_ex(args[0]); - arg1 = (char *) Z_STRVAL_PP(args[0]); + convert_to_string(&args[0]); + arg1 = (char *) Z_STRVAL(args[0]); } /*@SWIG@*/; scrollPhatPuts((char const *)arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_scrollPhatPrintf) { char *arg1 = (char *) 0 ; void *arg2 = 0 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,62,CONVERT_STRING_IN@*/ - if ((*args[0])->type==IS_NULL) { + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,57,CONVERT_STRING_IN@*/ + if (Z_ISNULL(args[0])) { arg1 = (char *) 0; } else { - convert_to_string_ex(args[0]); - arg1 = (char *) Z_STRVAL_PP(args[0]); + convert_to_string(&args[0]); + arg1 = (char *) Z_STRVAL(args[0]); } /*@SWIG@*/; scrollPhatPrintf((char const *)arg1,arg2); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_scrollPhatPrintSpeed) { int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; scrollPhatPrintSpeed(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_scrollPhatIntensity) { int arg1 ; - zval **args[1]; + zval args[1]; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) { WRONG_PARAM_COUNT; } - /*@SWIG:/usr/share/swig3.0/php/utils.i,7,CONVERT_INT_IN@*/ - convert_to_long_ex(args[0]); - arg1 = (int) Z_LVAL_PP(args[0]); + /*@SWIG:/usr/local/share/swig/4.0.0/php/utils.i,6,CONVERT_INT_IN@*/ + arg1 = (int) zval_get_long(&args[0]); /*@SWIG@*/; scrollPhatIntensity(arg1); +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } ZEND_NAMED_FUNCTION(_wrap_scrollPhatSetup) { int result; - SWIG_ResetError(TSRMLS_C); + SWIG_ResetError(); if(ZEND_NUM_ARGS() != 0) { WRONG_PARAM_COUNT; } result = (int)scrollPhatSetup(); - { - ZVAL_LONG(return_value,result); - } + + RETVAL_LONG(result); + +thrown: return; fail: - SWIG_FAIL(TSRMLS_C); + SWIG_FAIL(); } -static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_unsigned_char) { - /* No destructor for simple type _p_unsigned_char */ - efree(rsrc->ptr); -} -static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_wiringPiNodeStruct) { - /* No destructor for simple type _p_wiringPiNodeStruct */ - efree(rsrc->ptr); -} -static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_f_p_void__p_void) { - /* No destructor for simple type _p_f_p_void__p_void */ - efree(rsrc->ptr); -} -static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_int) { - /* No destructor for simple type _p_int */ - efree(rsrc->ptr); +static ZEND_RSRC_DTOR_FUNC(_swig_default_rsrc_destroy) { + efree(res->ptr); } /* end wrapper section */ /* class entry subsection */ /* arginfo subsection */ -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpifailure, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpifindnode, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpinewnode, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpisetup, 0, 0, 0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpisetupsys, 0, 0, 0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpisetupgpio, 0, 0, 0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpisetupphys, 0, 0, 0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_pinmodealt, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_pinmode, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_pullupdncontrol, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_digitalread, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_digitalwrite, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) +ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_000, 0, 0, 0) ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_pwmwrite, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_analogread, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_analogwrite, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_piboardrev, 0, 0, 0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_piboardid, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wpipintogpio, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_physpintogpio, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_setpaddrive, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_getalt, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_pwmtonewrite, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_digitalwritebyte, 0, 0, 0) ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_digitalreadbyte, 0, 0, 0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_pwmsetmode, 0, 0, 0) ZEND_ARG_PASS_INFO(0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_pwmsetrange, 0, 0, 0) +ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_0, 0, 0, 0) ZEND_ARG_PASS_INFO(0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_pwmsetclock, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_gpioclockset, 0, 0, 0) +ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_00, 0, 0, 0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_waitforinterrupt, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) +ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_, 0, 0, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_pithreadcreate, 0, 0, 0) +ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_00000, 0, 0, 0) ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_pilock, 0, 0, 0) ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_piunlock, 0, 0, 0) ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_pihipri, 0, 0, 0) ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_delay, 0, 0, 0) ZEND_ARG_PASS_INFO(0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_delaymicroseconds, 0, 0, 0) +ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_0000, 0, 0, 0) ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_millis, 0, 0, 0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_micros, 0, 0, 0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpii2cread, 0, 0, 0) ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpii2creadreg8, 0, 0, 0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpii2creadreg16, 0, 0, 0) +ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_00000000, 0, 0, 0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpii2cwrite, 0, 0, 0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpii2cwritereg8, 0, 0, 0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpii2cwritereg16, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpii2csetupinterface, 0, 0, 0) +ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_000000, 0, 0, 0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpii2csetup, 0, 0, 0) ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpispigetfd, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpispidatarw, 0, 0, 0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpispisetupmode, 0, 0, 0) +ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_0000000000000, 0, 0, 0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_wiringpispisetup, 0, 0, 0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_serialopen, 0, 0, 0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_serialclose, 0, 0, 0) ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_serialflush, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_serialputchar, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_serialputs, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_serialprintf, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_serialdataavail, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_serialgetchar, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_shiftin, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_shiftout, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_drcsetupserial, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_ads1115setup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_max31855setup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_max5322setup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_mcp23008setup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_mcp23016setup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_mcp23017setup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_mcp23s08setup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_mcp23s17setup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_mcp3002setup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_mcp3004setup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_mcp3422setup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_mcp4802setup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_pcf8574setup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_pcf8591setup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_sn3218setup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_softpwmcreate, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_softpwmwrite, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_softpwmstop, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_softservowrite, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_softservosetup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_softtonecreate, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_softtonestop, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_softtonewrite, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_sr595setup, 0, 0, 0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_ds1302rtcread, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_ds1302rtcwrite, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_ds1302ramread, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_ds1302ramwrite, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_ds1302clockread, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_ds1302clockwrite, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_ds1302tricklecharge, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_ds1302setup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_gertboardanalogwrite, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_gertboardanalogread, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_gertboardspisetup, 0, 0, 0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_gertboardanalogsetup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcd128x64setorigin, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcd128x64setorientation, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcd128x64orientcoordinates, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcd128x64getscreensize, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcd128x64point, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcd128x64line, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcd128x64lineto, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcd128x64rectangle, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcd128x64circle, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcd128x64ellipse, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcd128x64putchar, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcd128x64puts, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcd128x64update, 0, 0, 0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcd128x64clear, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcd128x64setup, 0, 0, 0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcdhome, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcdclear, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcddisplay, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcdcursor, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcdcursorblink, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcdsendcommand, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcdposition, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcdchardef, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcdputchar, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcdputs, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcdprintf, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_lcdinit, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_maxdetectread, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_readrht03, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_piglow1, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_piglowleg, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_piglowring, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_piglowsetup, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_setupnesjoystick, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_readnesjoystick, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_scrollphatpoint, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_scrollphatline, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_scrollphatlineto, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_scrollphatrectangle, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_scrollphatupdate, 0, 0, 0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_scrollphatclear, 0, 0, 0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_scrollphatputchar, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_scrollphatputs, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_scrollphatprintf, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_scrollphatprintspeed, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_scrollphatintensity, 0, 0, 0) - ZEND_ARG_PASS_INFO(0) -ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(swig_arginfo_scrollphatsetup, 0, 0, 0) -ZEND_END_ARG_INFO() /* entry subsection */ /* Every non-class user visible function must have an entry here */ static zend_function_entry wiringpi_functions[] = { - SWIG_ZEND_NAMED_FE(wiringpifailure,_wrap_wiringPiFailure,swig_arginfo_wiringpifailure) - SWIG_ZEND_NAMED_FE(wiringpifindnode,_wrap_wiringPiFindNode,swig_arginfo_wiringpifindnode) - SWIG_ZEND_NAMED_FE(wiringpinewnode,_wrap_wiringPiNewNode,swig_arginfo_wiringpinewnode) - SWIG_ZEND_NAMED_FE(wiringpisetup,_wrap_wiringPiSetup,swig_arginfo_wiringpisetup) - SWIG_ZEND_NAMED_FE(wiringpisetupsys,_wrap_wiringPiSetupSys,swig_arginfo_wiringpisetupsys) - SWIG_ZEND_NAMED_FE(wiringpisetupgpio,_wrap_wiringPiSetupGpio,swig_arginfo_wiringpisetupgpio) - SWIG_ZEND_NAMED_FE(wiringpisetupphys,_wrap_wiringPiSetupPhys,swig_arginfo_wiringpisetupphys) - SWIG_ZEND_NAMED_FE(pinmodealt,_wrap_pinModeAlt,swig_arginfo_pinmodealt) - SWIG_ZEND_NAMED_FE(pinmode,_wrap_pinMode,swig_arginfo_pinmode) - SWIG_ZEND_NAMED_FE(pullupdncontrol,_wrap_pullUpDnControl,swig_arginfo_pullupdncontrol) - SWIG_ZEND_NAMED_FE(digitalread,_wrap_digitalRead,swig_arginfo_digitalread) - SWIG_ZEND_NAMED_FE(digitalwrite,_wrap_digitalWrite,swig_arginfo_digitalwrite) - SWIG_ZEND_NAMED_FE(pwmwrite,_wrap_pwmWrite,swig_arginfo_pwmwrite) - SWIG_ZEND_NAMED_FE(analogread,_wrap_analogRead,swig_arginfo_analogread) - SWIG_ZEND_NAMED_FE(analogwrite,_wrap_analogWrite,swig_arginfo_analogwrite) - SWIG_ZEND_NAMED_FE(piboardrev,_wrap_piBoardRev,swig_arginfo_piboardrev) - SWIG_ZEND_NAMED_FE(piboardid,_wrap_piBoardId,swig_arginfo_piboardid) - SWIG_ZEND_NAMED_FE(wpipintogpio,_wrap_wpiPinToGpio,swig_arginfo_wpipintogpio) - SWIG_ZEND_NAMED_FE(physpintogpio,_wrap_physPinToGpio,swig_arginfo_physpintogpio) - SWIG_ZEND_NAMED_FE(setpaddrive,_wrap_setPadDrive,swig_arginfo_setpaddrive) - SWIG_ZEND_NAMED_FE(getalt,_wrap_getAlt,swig_arginfo_getalt) - SWIG_ZEND_NAMED_FE(pwmtonewrite,_wrap_pwmToneWrite,swig_arginfo_pwmtonewrite) - SWIG_ZEND_NAMED_FE(digitalwritebyte,_wrap_digitalWriteByte,swig_arginfo_digitalwritebyte) - SWIG_ZEND_NAMED_FE(digitalreadbyte,_wrap_digitalReadByte,swig_arginfo_digitalreadbyte) - SWIG_ZEND_NAMED_FE(pwmsetmode,_wrap_pwmSetMode,swig_arginfo_pwmsetmode) - SWIG_ZEND_NAMED_FE(pwmsetrange,_wrap_pwmSetRange,swig_arginfo_pwmsetrange) - SWIG_ZEND_NAMED_FE(pwmsetclock,_wrap_pwmSetClock,swig_arginfo_pwmsetclock) - SWIG_ZEND_NAMED_FE(gpioclockset,_wrap_gpioClockSet,swig_arginfo_gpioclockset) - SWIG_ZEND_NAMED_FE(waitforinterrupt,_wrap_waitForInterrupt,swig_arginfo_waitforinterrupt) - SWIG_ZEND_NAMED_FE(pithreadcreate,_wrap_piThreadCreate,swig_arginfo_pithreadcreate) - SWIG_ZEND_NAMED_FE(pilock,_wrap_piLock,swig_arginfo_pilock) - SWIG_ZEND_NAMED_FE(piunlock,_wrap_piUnlock,swig_arginfo_piunlock) - SWIG_ZEND_NAMED_FE(pihipri,_wrap_piHiPri,swig_arginfo_pihipri) - SWIG_ZEND_NAMED_FE(delay,_wrap_delay,swig_arginfo_delay) - SWIG_ZEND_NAMED_FE(delaymicroseconds,_wrap_delayMicroseconds,swig_arginfo_delaymicroseconds) - SWIG_ZEND_NAMED_FE(millis,_wrap_millis,swig_arginfo_millis) - SWIG_ZEND_NAMED_FE(micros,_wrap_micros,swig_arginfo_micros) - SWIG_ZEND_NAMED_FE(wiringpii2cread,_wrap_wiringPiI2CRead,swig_arginfo_wiringpii2cread) - SWIG_ZEND_NAMED_FE(wiringpii2creadreg8,_wrap_wiringPiI2CReadReg8,swig_arginfo_wiringpii2creadreg8) - SWIG_ZEND_NAMED_FE(wiringpii2creadreg16,_wrap_wiringPiI2CReadReg16,swig_arginfo_wiringpii2creadreg16) - SWIG_ZEND_NAMED_FE(wiringpii2cwrite,_wrap_wiringPiI2CWrite,swig_arginfo_wiringpii2cwrite) - SWIG_ZEND_NAMED_FE(wiringpii2cwritereg8,_wrap_wiringPiI2CWriteReg8,swig_arginfo_wiringpii2cwritereg8) - SWIG_ZEND_NAMED_FE(wiringpii2cwritereg16,_wrap_wiringPiI2CWriteReg16,swig_arginfo_wiringpii2cwritereg16) - SWIG_ZEND_NAMED_FE(wiringpii2csetupinterface,_wrap_wiringPiI2CSetupInterface,swig_arginfo_wiringpii2csetupinterface) - SWIG_ZEND_NAMED_FE(wiringpii2csetup,_wrap_wiringPiI2CSetup,swig_arginfo_wiringpii2csetup) - SWIG_ZEND_NAMED_FE(wiringpispigetfd,_wrap_wiringPiSPIGetFd,swig_arginfo_wiringpispigetfd) - SWIG_ZEND_NAMED_FE(wiringpispidatarw,_wrap_wiringPiSPIDataRW,swig_arginfo_wiringpispidatarw) - SWIG_ZEND_NAMED_FE(wiringpispisetupmode,_wrap_wiringPiSPISetupMode,swig_arginfo_wiringpispisetupmode) - SWIG_ZEND_NAMED_FE(wiringpispisetup,_wrap_wiringPiSPISetup,swig_arginfo_wiringpispisetup) - SWIG_ZEND_NAMED_FE(serialopen,_wrap_serialOpen,swig_arginfo_serialopen) - SWIG_ZEND_NAMED_FE(serialclose,_wrap_serialClose,swig_arginfo_serialclose) - SWIG_ZEND_NAMED_FE(serialflush,_wrap_serialFlush,swig_arginfo_serialflush) - SWIG_ZEND_NAMED_FE(serialputchar,_wrap_serialPutchar,swig_arginfo_serialputchar) - SWIG_ZEND_NAMED_FE(serialputs,_wrap_serialPuts,swig_arginfo_serialputs) - SWIG_ZEND_NAMED_FE(serialprintf,_wrap_serialPrintf,swig_arginfo_serialprintf) - SWIG_ZEND_NAMED_FE(serialdataavail,_wrap_serialDataAvail,swig_arginfo_serialdataavail) - SWIG_ZEND_NAMED_FE(serialgetchar,_wrap_serialGetchar,swig_arginfo_serialgetchar) - SWIG_ZEND_NAMED_FE(shiftin,_wrap_shiftIn,swig_arginfo_shiftin) - SWIG_ZEND_NAMED_FE(shiftout,_wrap_shiftOut,swig_arginfo_shiftout) - SWIG_ZEND_NAMED_FE(drcsetupserial,_wrap_drcSetupSerial,swig_arginfo_drcsetupserial) - SWIG_ZEND_NAMED_FE(ads1115setup,_wrap_ads1115Setup,swig_arginfo_ads1115setup) - SWIG_ZEND_NAMED_FE(max31855setup,_wrap_max31855Setup,swig_arginfo_max31855setup) - SWIG_ZEND_NAMED_FE(max5322setup,_wrap_max5322Setup,swig_arginfo_max5322setup) - SWIG_ZEND_NAMED_FE(mcp23008setup,_wrap_mcp23008Setup,swig_arginfo_mcp23008setup) - SWIG_ZEND_NAMED_FE(mcp23016setup,_wrap_mcp23016Setup,swig_arginfo_mcp23016setup) - SWIG_ZEND_NAMED_FE(mcp23017setup,_wrap_mcp23017Setup,swig_arginfo_mcp23017setup) - SWIG_ZEND_NAMED_FE(mcp23s08setup,_wrap_mcp23s08Setup,swig_arginfo_mcp23s08setup) - SWIG_ZEND_NAMED_FE(mcp23s17setup,_wrap_mcp23s17Setup,swig_arginfo_mcp23s17setup) - SWIG_ZEND_NAMED_FE(mcp3002setup,_wrap_mcp3002Setup,swig_arginfo_mcp3002setup) - SWIG_ZEND_NAMED_FE(mcp3004setup,_wrap_mcp3004Setup,swig_arginfo_mcp3004setup) - SWIG_ZEND_NAMED_FE(mcp3422setup,_wrap_mcp3422Setup,swig_arginfo_mcp3422setup) - SWIG_ZEND_NAMED_FE(mcp4802setup,_wrap_mcp4802Setup,swig_arginfo_mcp4802setup) - SWIG_ZEND_NAMED_FE(pcf8574setup,_wrap_pcf8574Setup,swig_arginfo_pcf8574setup) - SWIG_ZEND_NAMED_FE(pcf8591setup,_wrap_pcf8591Setup,swig_arginfo_pcf8591setup) - SWIG_ZEND_NAMED_FE(sn3218setup,_wrap_sn3218Setup,swig_arginfo_sn3218setup) - SWIG_ZEND_NAMED_FE(softpwmcreate,_wrap_softPwmCreate,swig_arginfo_softpwmcreate) - SWIG_ZEND_NAMED_FE(softpwmwrite,_wrap_softPwmWrite,swig_arginfo_softpwmwrite) - SWIG_ZEND_NAMED_FE(softpwmstop,_wrap_softPwmStop,swig_arginfo_softpwmstop) - SWIG_ZEND_NAMED_FE(softservowrite,_wrap_softServoWrite,swig_arginfo_softservowrite) - SWIG_ZEND_NAMED_FE(softservosetup,_wrap_softServoSetup,swig_arginfo_softservosetup) - SWIG_ZEND_NAMED_FE(softtonecreate,_wrap_softToneCreate,swig_arginfo_softtonecreate) - SWIG_ZEND_NAMED_FE(softtonestop,_wrap_softToneStop,swig_arginfo_softtonestop) - SWIG_ZEND_NAMED_FE(softtonewrite,_wrap_softToneWrite,swig_arginfo_softtonewrite) - SWIG_ZEND_NAMED_FE(sr595setup,_wrap_sr595Setup,swig_arginfo_sr595setup) - SWIG_ZEND_NAMED_FE(ds1302rtcread,_wrap_ds1302rtcRead,swig_arginfo_ds1302rtcread) - SWIG_ZEND_NAMED_FE(ds1302rtcwrite,_wrap_ds1302rtcWrite,swig_arginfo_ds1302rtcwrite) - SWIG_ZEND_NAMED_FE(ds1302ramread,_wrap_ds1302ramRead,swig_arginfo_ds1302ramread) - SWIG_ZEND_NAMED_FE(ds1302ramwrite,_wrap_ds1302ramWrite,swig_arginfo_ds1302ramwrite) - SWIG_ZEND_NAMED_FE(ds1302clockread,_wrap_ds1302clockRead,swig_arginfo_ds1302clockread) - SWIG_ZEND_NAMED_FE(ds1302clockwrite,_wrap_ds1302clockWrite,swig_arginfo_ds1302clockwrite) - SWIG_ZEND_NAMED_FE(ds1302tricklecharge,_wrap_ds1302trickleCharge,swig_arginfo_ds1302tricklecharge) - SWIG_ZEND_NAMED_FE(ds1302setup,_wrap_ds1302setup,swig_arginfo_ds1302setup) - SWIG_ZEND_NAMED_FE(gertboardanalogwrite,_wrap_gertboardAnalogWrite,swig_arginfo_gertboardanalogwrite) - SWIG_ZEND_NAMED_FE(gertboardanalogread,_wrap_gertboardAnalogRead,swig_arginfo_gertboardanalogread) - SWIG_ZEND_NAMED_FE(gertboardspisetup,_wrap_gertboardSPISetup,swig_arginfo_gertboardspisetup) - SWIG_ZEND_NAMED_FE(gertboardanalogsetup,_wrap_gertboardAnalogSetup,swig_arginfo_gertboardanalogsetup) - SWIG_ZEND_NAMED_FE(lcd128x64setorigin,_wrap_lcd128x64setOrigin,swig_arginfo_lcd128x64setorigin) - SWIG_ZEND_NAMED_FE(lcd128x64setorientation,_wrap_lcd128x64setOrientation,swig_arginfo_lcd128x64setorientation) - SWIG_ZEND_NAMED_FE(lcd128x64orientcoordinates,_wrap_lcd128x64orientCoordinates,swig_arginfo_lcd128x64orientcoordinates) - SWIG_ZEND_NAMED_FE(lcd128x64getscreensize,_wrap_lcd128x64getScreenSize,swig_arginfo_lcd128x64getscreensize) - SWIG_ZEND_NAMED_FE(lcd128x64point,_wrap_lcd128x64point,swig_arginfo_lcd128x64point) - SWIG_ZEND_NAMED_FE(lcd128x64line,_wrap_lcd128x64line,swig_arginfo_lcd128x64line) - SWIG_ZEND_NAMED_FE(lcd128x64lineto,_wrap_lcd128x64lineTo,swig_arginfo_lcd128x64lineto) - SWIG_ZEND_NAMED_FE(lcd128x64rectangle,_wrap_lcd128x64rectangle,swig_arginfo_lcd128x64rectangle) - SWIG_ZEND_NAMED_FE(lcd128x64circle,_wrap_lcd128x64circle,swig_arginfo_lcd128x64circle) - SWIG_ZEND_NAMED_FE(lcd128x64ellipse,_wrap_lcd128x64ellipse,swig_arginfo_lcd128x64ellipse) - SWIG_ZEND_NAMED_FE(lcd128x64putchar,_wrap_lcd128x64putchar,swig_arginfo_lcd128x64putchar) - SWIG_ZEND_NAMED_FE(lcd128x64puts,_wrap_lcd128x64puts,swig_arginfo_lcd128x64puts) - SWIG_ZEND_NAMED_FE(lcd128x64update,_wrap_lcd128x64update,swig_arginfo_lcd128x64update) - SWIG_ZEND_NAMED_FE(lcd128x64clear,_wrap_lcd128x64clear,swig_arginfo_lcd128x64clear) - SWIG_ZEND_NAMED_FE(lcd128x64setup,_wrap_lcd128x64setup,swig_arginfo_lcd128x64setup) - SWIG_ZEND_NAMED_FE(lcdhome,_wrap_lcdHome,swig_arginfo_lcdhome) - SWIG_ZEND_NAMED_FE(lcdclear,_wrap_lcdClear,swig_arginfo_lcdclear) - SWIG_ZEND_NAMED_FE(lcddisplay,_wrap_lcdDisplay,swig_arginfo_lcddisplay) - SWIG_ZEND_NAMED_FE(lcdcursor,_wrap_lcdCursor,swig_arginfo_lcdcursor) - SWIG_ZEND_NAMED_FE(lcdcursorblink,_wrap_lcdCursorBlink,swig_arginfo_lcdcursorblink) - SWIG_ZEND_NAMED_FE(lcdsendcommand,_wrap_lcdSendCommand,swig_arginfo_lcdsendcommand) - SWIG_ZEND_NAMED_FE(lcdposition,_wrap_lcdPosition,swig_arginfo_lcdposition) - SWIG_ZEND_NAMED_FE(lcdchardef,_wrap_lcdCharDef,swig_arginfo_lcdchardef) - SWIG_ZEND_NAMED_FE(lcdputchar,_wrap_lcdPutchar,swig_arginfo_lcdputchar) - SWIG_ZEND_NAMED_FE(lcdputs,_wrap_lcdPuts,swig_arginfo_lcdputs) - SWIG_ZEND_NAMED_FE(lcdprintf,_wrap_lcdPrintf,swig_arginfo_lcdprintf) - SWIG_ZEND_NAMED_FE(lcdinit,_wrap_lcdInit,swig_arginfo_lcdinit) - SWIG_ZEND_NAMED_FE(maxdetectread,_wrap_maxDetectRead,swig_arginfo_maxdetectread) - SWIG_ZEND_NAMED_FE(readrht03,_wrap_readRHT03,swig_arginfo_readrht03) - SWIG_ZEND_NAMED_FE(piglow1,_wrap_piGlow1,swig_arginfo_piglow1) - SWIG_ZEND_NAMED_FE(piglowleg,_wrap_piGlowLeg,swig_arginfo_piglowleg) - SWIG_ZEND_NAMED_FE(piglowring,_wrap_piGlowRing,swig_arginfo_piglowring) - SWIG_ZEND_NAMED_FE(piglowsetup,_wrap_piGlowSetup,swig_arginfo_piglowsetup) - SWIG_ZEND_NAMED_FE(setupnesjoystick,_wrap_setupNesJoystick,swig_arginfo_setupnesjoystick) - SWIG_ZEND_NAMED_FE(readnesjoystick,_wrap_readNesJoystick,swig_arginfo_readnesjoystick) - SWIG_ZEND_NAMED_FE(scrollphatpoint,_wrap_scrollPhatPoint,swig_arginfo_scrollphatpoint) - SWIG_ZEND_NAMED_FE(scrollphatline,_wrap_scrollPhatLine,swig_arginfo_scrollphatline) - SWIG_ZEND_NAMED_FE(scrollphatlineto,_wrap_scrollPhatLineTo,swig_arginfo_scrollphatlineto) - SWIG_ZEND_NAMED_FE(scrollphatrectangle,_wrap_scrollPhatRectangle,swig_arginfo_scrollphatrectangle) - SWIG_ZEND_NAMED_FE(scrollphatupdate,_wrap_scrollPhatUpdate,swig_arginfo_scrollphatupdate) - SWIG_ZEND_NAMED_FE(scrollphatclear,_wrap_scrollPhatClear,swig_arginfo_scrollphatclear) - SWIG_ZEND_NAMED_FE(scrollphatputchar,_wrap_scrollPhatPutchar,swig_arginfo_scrollphatputchar) - SWIG_ZEND_NAMED_FE(scrollphatputs,_wrap_scrollPhatPuts,swig_arginfo_scrollphatputs) - SWIG_ZEND_NAMED_FE(scrollphatprintf,_wrap_scrollPhatPrintf,swig_arginfo_scrollphatprintf) - SWIG_ZEND_NAMED_FE(scrollphatprintspeed,_wrap_scrollPhatPrintSpeed,swig_arginfo_scrollphatprintspeed) - SWIG_ZEND_NAMED_FE(scrollphatintensity,_wrap_scrollPhatIntensity,swig_arginfo_scrollphatintensity) - SWIG_ZEND_NAMED_FE(scrollphatsetup,_wrap_scrollPhatSetup,swig_arginfo_scrollphatsetup) + SWIG_ZEND_NAMED_FE(wiringpifailure,_wrap_wiringPiFailure,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(wiringpifindnode,_wrap_wiringPiFindNode,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(wiringpinewnode,_wrap_wiringPiNewNode,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(wiringpisetup,_wrap_wiringPiSetup,swig_arginfo_) + SWIG_ZEND_NAMED_FE(wiringpisetupsys,_wrap_wiringPiSetupSys,swig_arginfo_) + SWIG_ZEND_NAMED_FE(wiringpisetupgpio,_wrap_wiringPiSetupGpio,swig_arginfo_) + SWIG_ZEND_NAMED_FE(wiringpisetupphys,_wrap_wiringPiSetupPhys,swig_arginfo_) + SWIG_ZEND_NAMED_FE(pinmodealt,_wrap_pinModeAlt,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(pinmode,_wrap_pinMode,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(pullupdncontrol,_wrap_pullUpDnControl,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(digitalread,_wrap_digitalRead,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(digitalwrite,_wrap_digitalWrite,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(pwmwrite,_wrap_pwmWrite,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(analogread,_wrap_analogRead,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(analogwrite,_wrap_analogWrite,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(piboardrev,_wrap_piBoardRev,swig_arginfo_) + SWIG_ZEND_NAMED_FE(piboardid,_wrap_piBoardId,swig_arginfo_00000) + SWIG_ZEND_NAMED_FE(wpipintogpio,_wrap_wpiPinToGpio,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(physpintogpio,_wrap_physPinToGpio,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(setpaddrive,_wrap_setPadDrive,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(getalt,_wrap_getAlt,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(pwmtonewrite,_wrap_pwmToneWrite,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(digitalwritebyte,_wrap_digitalWriteByte,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(digitalreadbyte,_wrap_digitalReadByte,swig_arginfo_) + SWIG_ZEND_NAMED_FE(pwmsetmode,_wrap_pwmSetMode,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(pwmsetrange,_wrap_pwmSetRange,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(pwmsetclock,_wrap_pwmSetClock,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(gpioclockset,_wrap_gpioClockSet,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(waitforinterrupt,_wrap_waitForInterrupt,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(pithreadcreate,_wrap_piThreadCreate,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(pilock,_wrap_piLock,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(piunlock,_wrap_piUnlock,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(pihipri,_wrap_piHiPri,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(delay,_wrap_delay,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(delaymicroseconds,_wrap_delayMicroseconds,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(millis,_wrap_millis,swig_arginfo_) + SWIG_ZEND_NAMED_FE(micros,_wrap_micros,swig_arginfo_) + SWIG_ZEND_NAMED_FE(wiringpii2cread,_wrap_wiringPiI2CRead,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(wiringpii2creadreg8,_wrap_wiringPiI2CReadReg8,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(wiringpii2creadreg16,_wrap_wiringPiI2CReadReg16,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(wiringpii2cwrite,_wrap_wiringPiI2CWrite,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(wiringpii2cwritereg8,_wrap_wiringPiI2CWriteReg8,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(wiringpii2cwritereg16,_wrap_wiringPiI2CWriteReg16,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(wiringpii2csetupinterface,_wrap_wiringPiI2CSetupInterface,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(wiringpii2csetup,_wrap_wiringPiI2CSetup,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(wiringpispigetfd,_wrap_wiringPiSPIGetFd,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(wiringpispidatarw,_wrap_wiringPiSPIDataRW,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(wiringpispisetupmode,_wrap_wiringPiSPISetupMode,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(wiringpispisetup,_wrap_wiringPiSPISetup,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(serialopen,_wrap_serialOpen,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(serialclose,_wrap_serialClose,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(serialflush,_wrap_serialFlush,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(serialputchar,_wrap_serialPutchar,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(serialputs,_wrap_serialPuts,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(serialprintf,_wrap_serialPrintf,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(serialdataavail,_wrap_serialDataAvail,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(serialgetchar,_wrap_serialGetchar,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(shiftin,_wrap_shiftIn,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(shiftout,_wrap_shiftOut,swig_arginfo_0000) + SWIG_ZEND_NAMED_FE(drcsetupserial,_wrap_drcSetupSerial,swig_arginfo_0000) + SWIG_ZEND_NAMED_FE(ads1115setup,_wrap_ads1115Setup,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(max31855setup,_wrap_max31855Setup,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(max5322setup,_wrap_max5322Setup,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(mcp23008setup,_wrap_mcp23008Setup,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(mcp23016setup,_wrap_mcp23016Setup,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(mcp23017setup,_wrap_mcp23017Setup,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(mcp23s08setup,_wrap_mcp23s08Setup,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(mcp23s17setup,_wrap_mcp23s17Setup,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(mcp3002setup,_wrap_mcp3002Setup,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(mcp3004setup,_wrap_mcp3004Setup,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(mcp3422setup,_wrap_mcp3422Setup,swig_arginfo_0000) + SWIG_ZEND_NAMED_FE(mcp4802setup,_wrap_mcp4802Setup,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(pcf8574setup,_wrap_pcf8574Setup,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(pcf8591setup,_wrap_pcf8591Setup,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(sn3218setup,_wrap_sn3218Setup,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(softpwmcreate,_wrap_softPwmCreate,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(softpwmwrite,_wrap_softPwmWrite,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(softpwmstop,_wrap_softPwmStop,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(softservowrite,_wrap_softServoWrite,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(softservosetup,_wrap_softServoSetup,swig_arginfo_00000000) + SWIG_ZEND_NAMED_FE(softtonecreate,_wrap_softToneCreate,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(softtonestop,_wrap_softToneStop,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(softtonewrite,_wrap_softToneWrite,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(sr595setup,_wrap_sr595Setup,swig_arginfo_00000) + SWIG_ZEND_NAMED_FE(ds1302rtcread,_wrap_ds1302rtcRead,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(ds1302rtcwrite,_wrap_ds1302rtcWrite,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(ds1302ramread,_wrap_ds1302ramRead,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(ds1302ramwrite,_wrap_ds1302ramWrite,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(ds1302clockread,_wrap_ds1302clockRead,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(ds1302clockwrite,_wrap_ds1302clockWrite,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(ds1302tricklecharge,_wrap_ds1302trickleCharge,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(ds1302setup,_wrap_ds1302setup,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(gertboardanalogwrite,_wrap_gertboardAnalogWrite,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(gertboardanalogread,_wrap_gertboardAnalogRead,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(gertboardspisetup,_wrap_gertboardSPISetup,swig_arginfo_) + SWIG_ZEND_NAMED_FE(gertboardanalogsetup,_wrap_gertboardAnalogSetup,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(lcd128x64setorigin,_wrap_lcd128x64setOrigin,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(lcd128x64setorientation,_wrap_lcd128x64setOrientation,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(lcd128x64orientcoordinates,_wrap_lcd128x64orientCoordinates,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(lcd128x64getscreensize,_wrap_lcd128x64getScreenSize,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(lcd128x64point,_wrap_lcd128x64point,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(lcd128x64line,_wrap_lcd128x64line,swig_arginfo_00000) + SWIG_ZEND_NAMED_FE(lcd128x64lineto,_wrap_lcd128x64lineTo,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(lcd128x64rectangle,_wrap_lcd128x64rectangle,swig_arginfo_000000) + SWIG_ZEND_NAMED_FE(lcd128x64circle,_wrap_lcd128x64circle,swig_arginfo_00000) + SWIG_ZEND_NAMED_FE(lcd128x64ellipse,_wrap_lcd128x64ellipse,swig_arginfo_000000) + SWIG_ZEND_NAMED_FE(lcd128x64putchar,_wrap_lcd128x64putchar,swig_arginfo_00000) + SWIG_ZEND_NAMED_FE(lcd128x64puts,_wrap_lcd128x64puts,swig_arginfo_00000) + SWIG_ZEND_NAMED_FE(lcd128x64update,_wrap_lcd128x64update,swig_arginfo_) + SWIG_ZEND_NAMED_FE(lcd128x64clear,_wrap_lcd128x64clear,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(lcd128x64setup,_wrap_lcd128x64setup,swig_arginfo_) + SWIG_ZEND_NAMED_FE(lcdhome,_wrap_lcdHome,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(lcdclear,_wrap_lcdClear,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(lcddisplay,_wrap_lcdDisplay,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(lcdcursor,_wrap_lcdCursor,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(lcdcursorblink,_wrap_lcdCursorBlink,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(lcdsendcommand,_wrap_lcdSendCommand,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(lcdposition,_wrap_lcdPosition,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(lcdchardef,_wrap_lcdCharDef,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(lcdputchar,_wrap_lcdPutchar,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(lcdputs,_wrap_lcdPuts,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(lcdprintf,_wrap_lcdPrintf,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(lcdinit,_wrap_lcdInit,swig_arginfo_0000000000000) + SWIG_ZEND_NAMED_FE(maxdetectread,_wrap_maxDetectRead,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(readrht03,_wrap_readRHT03,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(piglow1,_wrap_piGlow1,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(piglowleg,_wrap_piGlowLeg,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(piglowring,_wrap_piGlowRing,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(piglowsetup,_wrap_piGlowSetup,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(setupnesjoystick,_wrap_setupNesJoystick,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(readnesjoystick,_wrap_readNesJoystick,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(scrollphatpoint,_wrap_scrollPhatPoint,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(scrollphatline,_wrap_scrollPhatLine,swig_arginfo_00000) + SWIG_ZEND_NAMED_FE(scrollphatlineto,_wrap_scrollPhatLineTo,swig_arginfo_000) + SWIG_ZEND_NAMED_FE(scrollphatrectangle,_wrap_scrollPhatRectangle,swig_arginfo_000000) + SWIG_ZEND_NAMED_FE(scrollphatupdate,_wrap_scrollPhatUpdate,swig_arginfo_) + SWIG_ZEND_NAMED_FE(scrollphatclear,_wrap_scrollPhatClear,swig_arginfo_) + SWIG_ZEND_NAMED_FE(scrollphatputchar,_wrap_scrollPhatPutchar,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(scrollphatputs,_wrap_scrollPhatPuts,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(scrollphatprintf,_wrap_scrollPhatPrintf,swig_arginfo_00) + SWIG_ZEND_NAMED_FE(scrollphatprintspeed,_wrap_scrollPhatPrintSpeed,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(scrollphatintensity,_wrap_scrollPhatIntensity,swig_arginfo_0) + SWIG_ZEND_NAMED_FE(scrollphatsetup,_wrap_scrollPhatSetup,swig_arginfo_) SWIG_ZEND_NAMED_FE(swig_wiringpi_alter_newobject,_wrap_swig_wiringpi_alter_newobject,NULL) SWIG_ZEND_NAMED_FE(swig_wiringpi_get_newobject,_wrap_swig_wiringpi_get_newobject,NULL) -{NULL, NULL, NULL} + ZEND_FE_END }; /* init section */ -#if ZEND_MODULE_API_NO <= 20090626 -#undef ZEND_MODULE_BUILD_ID -#define ZEND_MODULE_BUILD_ID (char*)"API" ZEND_TOSTR(ZEND_MODULE_API_NO) ZEND_BUILD_TS ZEND_BUILD_DEBUG ZEND_BUILD_SYSTEM ZEND_BUILD_EXTRA -#endif zend_module_entry wiringpi_module_entry = { STANDARD_MODULE_HEADER, - (char*)"wiringpi", + "wiringpi", wiringpi_functions, PHP_MINIT(wiringpi), - PHP_MSHUTDOWN(wiringpi), - PHP_RINIT(wiringpi), - PHP_RSHUTDOWN(wiringpi), - PHP_MINFO(wiringpi), + NULL, /* No MSHUTDOWN code */ + NULL, /* No RINIT code */ + NULL, /* No RSHUTDOWN code */ + NULL, /* No MINFO code */ NO_VERSION_YET, STANDARD_MODULE_PROPERTIES }; @@ -6438,6 +5759,7 @@ SWIGEXPORT zend_module_entry *get_module(void) { return &wiringpi_module_entry; #endif #define SWIG_php_minit PHP_MINIT_FUNCTION(wiringpi) + /* ----------------------------------------------------------------------------- * Type initialization: * This problem is tough by the requirement that no dynamic @@ -6495,7 +5817,7 @@ SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; - int found, init; + int init; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { @@ -6514,22 +5836,18 @@ SWIG_InitializeModule(void *clientdata) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); - module_head = &swig_module; } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - found=0; iter=module_head; do { if (iter==&swig_module) { - found=1; - break; + /* Our module is already in the list, so there's nothing more to do. */ + return; } iter=iter->next; } while (iter!= module_head); - /* if the is found in the list, then all is done and we may leave */ - if (found) return; - /* otherwise we must add out module into the list */ + /* otherwise we must add our module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } @@ -6674,20 +5992,20 @@ SWIG_PropagateClientData(void) { #endif - SWIG_php_minit { +SWIG_php_minit { SWIG_InitializeModule(0); /* oinit subsection */ -ZEND_INIT_MODULE_GLOBALS(wiringpi, wiringpi_init_globals, wiringpi_destroy_globals); +ZEND_INIT_MODULE_GLOBALS(wiringpi, wiringpi_init_globals, NULL); /* Register resource destructors for pointer types */ -le_swig__p_unsigned_char=zend_register_list_destructors_ex(_wrap_destroy_p_unsigned_char,NULL,(char *)(SWIGTYPE_p_unsigned_char->name),module_number); +le_swig__p_unsigned_char=zend_register_list_destructors_ex(_swig_default_rsrc_destroy, NULL, SWIGTYPE_p_unsigned_char->name, module_number); SWIG_TypeClientData(SWIGTYPE_p_unsigned_char,&le_swig__p_unsigned_char); -le_swig__p_wiringPiNodeStruct=zend_register_list_destructors_ex(_wrap_destroy_p_wiringPiNodeStruct,NULL,(char *)(SWIGTYPE_p_wiringPiNodeStruct->name),module_number); +le_swig__p_wiringPiNodeStruct=zend_register_list_destructors_ex(_swig_default_rsrc_destroy, NULL, SWIGTYPE_p_wiringPiNodeStruct->name, module_number); SWIG_TypeClientData(SWIGTYPE_p_wiringPiNodeStruct,&le_swig__p_wiringPiNodeStruct); -le_swig__p_f_p_void__p_void=zend_register_list_destructors_ex(_wrap_destroy_p_f_p_void__p_void,NULL,(char *)(SWIGTYPE_p_f_p_void__p_void->name),module_number); +le_swig__p_f_p_void__p_void=zend_register_list_destructors_ex(_swig_default_rsrc_destroy, NULL, SWIGTYPE_p_f_p_void__p_void->name, module_number); SWIG_TypeClientData(SWIGTYPE_p_f_p_void__p_void,&le_swig__p_f_p_void__p_void); -le_swig__p_int=zend_register_list_destructors_ex(_wrap_destroy_p_int,NULL,(char *)(SWIGTYPE_p_int->name),module_number); +le_swig__p_int=zend_register_list_destructors_ex(_swig_default_rsrc_destroy, NULL, SWIGTYPE_p_int->name, module_number); SWIG_TypeClientData(SWIGTYPE_p_int,&le_swig__p_int); CG(active_class_entry) = NULL; /* end oinit subsection */ @@ -6698,33 +6016,4 @@ CG(active_class_entry) = NULL; return SUCCESS; } -PHP_RINIT_FUNCTION(wiringpi) -{ -/* rinit section */ - -/* vinit subsection */ -/* end vinit subsection */ - - return SUCCESS; -} - -PHP_MSHUTDOWN_FUNCTION(wiringpi) -{ -/* shutdown section */ -#ifdef ZTS - ts_free_id(wiringpi_globals_id); -#endif - return SUCCESS; -} - -PHP_RSHUTDOWN_FUNCTION(wiringpi) -{ -/* rshutdown section */ - - return SUCCESS; -} - -PHP_MINFO_FUNCTION(wiringpi) -{ -} /* end init section */