diff options
author | Jani Taskinen <jani@php.net> | 2008-07-26 23:58:06 +0000 |
---|---|---|
committer | Jani Taskinen <jani@php.net> | 2008-07-26 23:58:06 +0000 |
commit | 921815754826974fc68ec73c2c445f35a904398a (patch) | |
tree | 8f051eec7c9c5568692562199e37b73d0c1a3cb8 /ext/sqlite3/php_sqlite3.h | |
parent | 96ea7313a65ea068b8e70332ec057de5046452fd (diff) | |
download | php-git-921815754826974fc68ec73c2c445f35a904398a.tar.gz |
MFH: fix build
Diffstat (limited to 'ext/sqlite3/php_sqlite3.h')
-rw-r--r-- | ext/sqlite3/php_sqlite3.h | 104 |
1 files changed, 0 insertions, 104 deletions
diff --git a/ext/sqlite3/php_sqlite3.h b/ext/sqlite3/php_sqlite3.h index f40143ed84..ec2a92c698 100644 --- a/ext/sqlite3/php_sqlite3.h +++ b/ext/sqlite3/php_sqlite3.h @@ -21,20 +21,6 @@ #ifndef PHP_SQLITE_H #define PHP_SQLITE_H -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#ifdef ZTS -#include "TSRM.h" -#endif - -/* Include PHP Standard Header */ -#include "php.h" - -/* Include headers */ -#include <sqlite3.h> - #define PHP_SQLITE3_VERSION "0.7-dev" extern zend_module_entry sqlite3_module_entry; @@ -54,98 +40,8 @@ ZEND_END_MODULE_GLOBALS(sqlite3) #define PHP_SQLITE3_NUM 1<<1 #define PHP_SQLITE3_BOTH (PHP_SQLITE3_ASSOC|PHP_SQLITE3_NUM) -/* for backwards compatability reasons */ -#ifndef SQLITE_OPEN_READONLY -#define SQLITE_OPEN_READONLY 0x00000001 -#endif - -#ifndef SQLITE_OPEN_READWRITE -#define SQLITE_OPEN_READWRITE 0x00000002 -#endif - -#ifndef SQLITE_OPEN_CREATE -#define SQLITE_OPEN_CREATE 0x00000004 -#endif - -/* Structure for SQLite Statement Parameter. */ -struct php_sqlite3_bound_param { - long param_number; - char *name; - int name_len; - int type; - - zval *parameter; -}; - -struct php_sqlite3_fci { - zend_fcall_info fci; - zend_fcall_info_cache fcc; -}; - -/* Structure for SQLite function. */ -typedef struct _php_sqlite3_func { - struct _php_sqlite3_func *next; - - const char *func_name; - int argc; - - zval *func, *step, *fini; - struct php_sqlite3_fci afunc, astep, afini; -} php_sqlite3_func; - -/* Structure for SQLite Database object. */ -typedef struct _php_sqlite3_db_object { - zend_object zo; - int initialised; - sqlite3 *db; - php_sqlite3_func *funcs; -} php_sqlite3_db_object; - -/*typedef struct _php_sqlite3_stmt { - sqlite3_stmt *stmt; - int initialised; -} php_sqlite3_stmt;*/ - -typedef struct _php_sqlite3_stmt_object php_sqlite3_stmt; -typedef struct _php_sqlite3_result_object php_sqlite3_result; - -/* sqlite3 objects to be destroyed */ -typedef struct _php_sqlite3_stmt_free_list { - sqlite3_stmt *stmt; - - zval *statement_object; - zval *result_object; -} php_sqlite3_stmt_free_list; - -/* Structure for SQLite Result object. */ -struct _php_sqlite3_result_object { - zend_object zo; - php_sqlite3_db_object *db_obj; - php_sqlite3_stmt *stmt_obj; - zval *stmt_obj_zval; - - int initialised; - - int is_prepared_statement; - int complete; -}; - -/* Structure for SQLite Statement object. */ -struct _php_sqlite3_stmt_object { - zend_object zo; - sqlite3_stmt *stmt; - php_sqlite3_db_object *db_obj; - zval *db_obj_zval; - - int initialised; - - /* Keep track of the zvals for bound parameters */ - HashTable *bound_params; -}; - #endif - /* * Local variables: * tab-width: 4 |