From 48d16437d66c32a9fc68204adb7249c6f46290ed Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Mon, 8 Mar 2004 10:32:26 +0000 Subject: Cleaned up array handling and optimize for the case where no array fields are used Fix timestamp binding for Win32 (which doesn't have gmtime_r()) CS --- ext/interbase/php_ibase_includes.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ext/interbase/php_ibase_includes.h') diff --git a/ext/interbase/php_ibase_includes.h b/ext/interbase/php_ibase_includes.h index 8ef59da46a..07902a7e69 100755 --- a/ext/interbase/php_ibase_includes.h +++ b/ext/interbase/php_ibase_includes.h @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ | Authors: Jouni Ahto | | Andrew Avdeev | - | Ard Biesheuvel | + | Ard Biesheuvel | +----------------------------------------------------------------------+ */ @@ -118,6 +118,7 @@ typedef struct { isc_stmt_handle stmt; XSQLDA *in_sqlda, *out_sqlda; ibase_array *in_array, *out_array; + unsigned short in_array_cnt, out_array_cnt; unsigned short dialect; char statement_type; char *query; @@ -182,9 +183,11 @@ enum php_interbase_option { #ifdef PHP_WIN32 #define LL_MASK "I64" #define LL_LIT(lit) lit ## I64 +typedef void (__stdcall *info_func_t)(char*); #else #define LL_MASK "ll" #define LL_LIT(lit) lit ## ll +typedef void (*info_func_t)(char*); #endif int _php_ibase_string_to_quad(char const *id, ISC_QUAD *qd); @@ -212,6 +215,10 @@ void _php_ibase_get_link_trans(INTERNAL_FUNCTION_PARAMETERS, zval **link_id, void _php_ibase_event_free(char *event_buf, char *result_buf); +#ifndef max +#define max(a,b) ((a)>(b)?(a):(b)) +#endif + #endif /* INTERBASE_H */ /* -- cgit v1.2.1