summaryrefslogtreecommitdiff
path: root/ext/interbase/php_ibase_includes.h
diff options
context:
space:
mode:
authorArd Biesheuvel <abies@php.net>2004-03-08 10:32:26 +0000
committerArd Biesheuvel <abies@php.net>2004-03-08 10:32:26 +0000
commit48d16437d66c32a9fc68204adb7249c6f46290ed (patch)
tree0a990465f020914c5d02106ac57dcedba2e1c2f2 /ext/interbase/php_ibase_includes.h
parent0d4352ced8d291b406722926eca346f13dbd4644 (diff)
downloadphp-git-48d16437d66c32a9fc68204adb7249c6f46290ed.tar.gz
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
Diffstat (limited to 'ext/interbase/php_ibase_includes.h')
-rwxr-xr-xext/interbase/php_ibase_includes.h9
1 files changed, 8 insertions, 1 deletions
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 <jouni.ahto@exdec.fi> |
| Andrew Avdeev <andy@simgts.mv.ru> |
- | Ard Biesheuvel <a.k.biesheuvel@its.tudelft.nl> |
+ | Ard Biesheuvel <a.k.biesheuvel@ewi.tudelft.nl> |
+----------------------------------------------------------------------+
*/
@@ -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 */
/*