diff options
author | Zeev Suraski <zeev@php.net> | 2003-08-03 17:44:39 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2003-08-03 17:44:39 +0000 |
commit | 538d58dd5f13a3ffda958ec002733dcbbc965352 (patch) | |
tree | 6d82510f96846c52de5ca250ddb337e1a21918c7 /ext/sqlite/sqlite.c | |
parent | 4e796a70802e42ed03b12a18375b0f446a251e59 (diff) | |
download | php-git-538d58dd5f13a3ffda958ec002733dcbbc965352.tar.gz |
Use new infrastructure.
There are bound to be some messups, please report build/runtime bugs!
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r-- | ext/sqlite/sqlite.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c index 15dbf1c007..2c4b69b175 100644 --- a/ext/sqlite/sqlite.c +++ b/ext/sqlite/sqlite.c @@ -66,8 +66,6 @@ extern ps_module ps_mod_sqlite; extern int sqlite_encode_binary(const unsigned char *in, int n, unsigned char *out); extern int sqlite_decode_binary(const unsigned char *in, unsigned char *out); -static unsigned char arg3_force_ref[] = {3, BYREF_NONE, BYREF_NONE, BYREF_FORCE }; - static int le_sqlite_db, le_sqlite_result, le_sqlite_pdb; static inline void php_sqlite_strtoupper(char *s) @@ -165,8 +163,8 @@ struct php_sqlite_agg_functions { enum { PHPSQLITE_ASSOC = 1, PHPSQLITE_NUM = 2, PHPSQLITE_BOTH = PHPSQLITE_ASSOC|PHPSQLITE_NUM }; function_entry sqlite_functions[] = { - PHP_FE(sqlite_open, arg3_force_ref) - PHP_FE(sqlite_popen, arg3_force_ref) + PHP_FE(sqlite_open, third_arg_force_ref) + PHP_FE(sqlite_popen, third_arg_force_ref) PHP_FE(sqlite_close, NULL) PHP_FE(sqlite_query, NULL) PHP_FE(sqlite_array_query, NULL) @@ -197,7 +195,7 @@ function_entry sqlite_functions[] = { PHP_FE(sqlite_unbuffered_query, NULL) PHP_FE(sqlite_create_aggregate, NULL) PHP_FE(sqlite_create_function, NULL) - PHP_FE(sqlite_factory, arg3_force_ref) + PHP_FE(sqlite_factory, third_arg_force_ref) PHP_FE(sqlite_udf_encode_binary, NULL) PHP_FE(sqlite_udf_decode_binary, NULL) {NULL, NULL, NULL} |