summaryrefslogtreecommitdiff
path: root/ext/interbase
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2001-06-06 13:06:12 +0000
committerRasmus Lerdorf <rasmus@php.net>2001-06-06 13:06:12 +0000
commit81e2cf03ac62c29c6bb365c31b9229aa3b4deff8 (patch)
treea0680a82219899445723cc36b058d9c4d263e17f /ext/interbase
parent3bfd50f4f1dedb756c4e45566e2f8e172ab435ec (diff)
downloadphp-git-81e2cf03ac62c29c6bb365c31b9229aa3b4deff8.tar.gz
Fix folding and clean up some extensions
Diffstat (limited to 'ext/interbase')
-rw-r--r--ext/interbase/interbase.c51
1 files changed, 3 insertions, 48 deletions
diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c
index 3e7d8e4360..f3ff1049f0 100644
--- a/ext/interbase/interbase.c
+++ b/ext/interbase/interbase.c
@@ -134,7 +134,6 @@ ZEND_DECLARE_MODULE_GLOBALS(ibase)
/* }}} */
-
/* {{{ internal macros, functions and structures */
#define IB_STATUS (IBG(status))
@@ -247,7 +246,6 @@ PHP_FUNCTION(ibase_errmsg)
}
/* }}} */
-
/* {{{ _php_ibase_error()
print interbase error and save it for ibase_errmsg() */
static void _php_ibase_error(void)
@@ -266,7 +264,6 @@ static void _php_ibase_error(void)
}
/* }}} */
-
/* {{{ _php_ibase_module_error()
print php interbase module error and save it for ibase_errmsg() */
static void _php_ibase_module_error(char *msg, ...)
@@ -287,7 +284,6 @@ static void _php_ibase_module_error(char *msg, ...)
/* destructors ---------------------- */
-
/* {{{ _php_ibase_free_xsqlda() */
/* not actual destructor ... */
static void _php_ibase_free_xsqlda(XSQLDA *sqlda)
@@ -309,7 +305,6 @@ static void _php_ibase_free_xsqlda(XSQLDA *sqlda)
}
/* }}} */
-
/* {{{ _php_ibase_commit_link() */
static void _php_ibase_commit_link(ibase_db_link *link)
{
@@ -356,7 +351,6 @@ static void _php_ibase_close_link(zend_rsrc_list_entry *rsrc)
}
/* }}} */
-
/* {{{ _php_ibase_close_plink() */
static void _php_ibase_close_plink(zend_rsrc_list_entry *rsrc)
{
@@ -372,7 +366,6 @@ static void _php_ibase_close_plink(zend_rsrc_list_entry *rsrc)
}
/* }}} */
-
/* {{{ _php_ibase_free_result() */
static void _php_ibase_free_result(zend_rsrc_list_entry *rsrc)
{
@@ -407,7 +400,6 @@ static void _php_ibase_free_result(zend_rsrc_list_entry *rsrc)
}
/* }}} */
-
/* {{{ _php_ibase_free_query() */
static void _php_ibase_free_query(ibase_query *ib_query)
{
@@ -459,7 +451,6 @@ static void _php_ibase_free_blob(zend_rsrc_list_entry *rsrc)
}
/* }}} */
-
/* {{{ _php_ibase_free_trans() */
static void _php_ibase_free_trans(zend_rsrc_list_entry *rsrc)
{
@@ -483,7 +474,6 @@ static void _php_ibase_free_trans(zend_rsrc_list_entry *rsrc)
}
/* }}} */
-
/* {{{ startup, shutdown and info functions */
PHP_INI_BEGIN()
STD_PHP_INI_BOOLEAN("ibase.allow_persistent", "1", PHP_INI_SYSTEM, OnUpdateInt, allow_persistent, zend_ibase_globals, ibase_globals)
@@ -630,7 +620,6 @@ PHP_MINFO_FUNCTION(ibase)
}
/* }}} */
-
/* {{{ _php_ibase_attach_db() */
static int _php_ibase_attach_db(char *server, char *uname, char *passwd, char *charset, int buffers, char *role, isc_db_handle *db)
{
@@ -692,7 +681,6 @@ static int _php_ibase_attach_db(char *server, char *uname, char *passwd, char *c
}
/* }}} */
-
/* {{{ _php_ibase_connect() */
static void _php_ibase_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
{
@@ -891,7 +879,6 @@ static void _php_ibase_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
}
/* }}} */
-
/* {{{ proto int ibase_connect(string database [, string username] [, string password] [, string charset] [, int buffers] [, int dialect] [, string role])
Open a connection to an InterBase database */
PHP_FUNCTION(ibase_connect)
@@ -900,7 +887,6 @@ PHP_FUNCTION(ibase_connect)
}
/* }}} */
-
/* {{{ proto int ibase_pconnect(string database [, string username] [, string password] [, string charset] [, int buffers] [, int dialect] [, string role])
Open a persistent connection to an InterBase database */
PHP_FUNCTION(ibase_pconnect)
@@ -909,7 +895,6 @@ PHP_FUNCTION(ibase_pconnect)
}
/* }}} */
-
/* {{{ proto int ibase_close([int link_identifier])
Close an InterBase connection */
PHP_FUNCTION(ibase_close)
@@ -1039,7 +1024,6 @@ static int _php_ibase_alloc_array(ibase_array **ib_arrayp, int *array_cntp,
}
/* }}} */
-
/* {{{ _php_ibase_alloc_query() */
/* allocate and prepare query */
static int _php_ibase_alloc_query(ibase_query **ib_queryp, isc_db_handle link, isc_tr_handle trans, char *query, unsigned short dialect)
@@ -1144,7 +1128,6 @@ _php_ibase_alloc_query_error:
}
/* }}} */
-
/* {{{ _php_ibase_bind()
Bind parameter placeholders in a previously prepared query */
static int _php_ibase_bind(XSQLDA *sqlda, pval **b_vars, BIND_BUF *buf)
@@ -1313,7 +1296,6 @@ static int _php_ibase_bind(XSQLDA *sqlda, pval **b_vars, BIND_BUF *buf)
}
/* }}} */
-
/* {{{ _php_ibase_alloc_xsqlda() */
static void _php_ibase_alloc_xsqlda(XSQLDA *sqlda)
{
@@ -1372,7 +1354,6 @@ static void _php_ibase_alloc_xsqlda(XSQLDA *sqlda)
}
/* }}} */
-
/* {{{ _php_ibase_exec() */
static int _php_ibase_exec(ibase_result **ib_resultp, ibase_query *ib_query, int argc, pval **args)
{
@@ -1450,7 +1431,6 @@ _php_ibase_exec_error: /* I'm a bad boy... */
}
/* }}} */
-
/* {{{ proto int ibase_trans([int trans_args [, int link_identifier]])
Start transaction */
PHP_FUNCTION(ibase_trans)
@@ -1542,7 +1522,6 @@ PHP_FUNCTION(ibase_trans)
}
/* }}} */
-
/* {{{ _php_ibase_def_trans() */
/* open default transaction */
static int _php_ibase_def_trans(ibase_db_link * ib_link, int trans_n)
@@ -1559,7 +1538,6 @@ static int _php_ibase_def_trans(ibase_db_link * ib_link, int trans_n)
}
/*}}}*/
-
/* {{{ _php_ibase_trans_end() */
#define COMMIT 1
#define ROLLBACK 0
@@ -1615,7 +1593,6 @@ static void _php_ibase_trans_end(INTERNAL_FUNCTION_PARAMETERS, int commit)
}
/* }}} */
-
/* {{{ proto int ibase_commit([int link_identifier,] int trans_number)
Commit transaction */
PHP_FUNCTION(ibase_commit)
@@ -1624,7 +1601,6 @@ PHP_FUNCTION(ibase_commit)
}
/* }}} */
-
/* {{{ proto int ibase_rollback([int link_identifier,] int trans_number)
Roolback transaction */
PHP_FUNCTION(ibase_rollback)
@@ -1633,7 +1609,6 @@ PHP_FUNCTION(ibase_rollback)
}
/* }}} */
-
/* {{{ proto int ibase_query([int link_identifier,] string query [, int bind_args])
Execute a query */
PHP_FUNCTION(ibase_query)
@@ -1716,7 +1691,6 @@ PHP_FUNCTION(ibase_query)
}
/* }}} */
-
/* {{{ _php_ibase_var_pval() */
static int _php_ibase_var_pval(pval *val, void *data, int type, int len, int scale, int flag)
{
@@ -1899,7 +1873,7 @@ static int _php_ibase_arr_pval(pval *ar_pval, char **datap, ibase_array *ib_arra
}
return SUCCESS;
}
-
+/* }}} */
/* {{{ _php_ibase_fetch_hash() */
@@ -2120,7 +2094,6 @@ break;
}
/* }}} */
-
/* {{{ proto array ibase_fetch_row(int result [, int blob_flag])
Fetch a row from the results of a query */
PHP_FUNCTION(ibase_fetch_row)
@@ -2129,7 +2102,6 @@ PHP_FUNCTION(ibase_fetch_row)
}
/* }}} */
-
/* {{{ proto object ibase_fetch_object(int result [, int blob_flag])
Fetch a object from the results of a query */
PHP_FUNCTION(ibase_fetch_object)
@@ -2138,7 +2110,6 @@ PHP_FUNCTION(ibase_fetch_object)
}
/* }}} */
-
/* {{{ proto int ibase_free_result(int result)
Free the memory used by a result */
PHP_FUNCTION(ibase_free_result)
@@ -2159,7 +2130,6 @@ PHP_FUNCTION(ibase_free_result)
}
/* }}} */
-
/* {{{ proto int ibase_prepare([int link_identifier,] string query)
Prepare a query for later execution */
PHP_FUNCTION(ibase_prepare)
@@ -2212,7 +2182,6 @@ PHP_FUNCTION(ibase_prepare)
}
/* }}} */
-
/* {{{ proto int ibase_execute(int query [, int bind_args [, int ...]])
Execute a previously prepared query */
PHP_FUNCTION(ibase_execute)
@@ -2266,7 +2235,6 @@ PHP_FUNCTION(ibase_execute)
}
/* }}} */
-
/* {{{ proto int ibase_free_query(int query)
Free memory used by a query */
PHP_FUNCTION(ibase_free_query)
@@ -2287,7 +2255,6 @@ PHP_FUNCTION(ibase_free_query)
}
/* }}} */
-
/* {{{ proto int ibase_timefmt(string format)
Sets the format of timestamp, date and time columns returned from queries */
PHP_FUNCTION(ibase_timefmt)
@@ -2347,7 +2314,6 @@ PHP_FUNCTION(ibase_timefmt)
}
/* }}} */
-
/* {{{ proto int ibase_num_fields(int result)
Get the number of fields in result */
PHP_FUNCTION(ibase_num_fields)
@@ -2373,7 +2339,6 @@ PHP_FUNCTION(ibase_num_fields)
}
/* }}} */
-
/* {{{ proto array ibase_field_info(int result, int field_number)
Get information about a field */
PHP_FUNCTION(ibase_field_info)
@@ -2453,10 +2418,8 @@ PHP_FUNCTION(ibase_field_info)
}
/* }}} */
-
/* blobs ----------------------------------- */
-
/* {{{ _php_ibase_blob_info(isc_blob_handle bl_handle,IBASE_BLOBINFO *bl_info) */
static int _php_ibase_blob_info(isc_blob_handle bl_handle,IBASE_BLOBINFO *bl_info)
{
@@ -2513,7 +2476,6 @@ static int _php_ibase_blob_info(isc_blob_handle bl_handle,IBASE_BLOBINFO *bl_inf
}
/* }}} */
-
/* {{{ proto int ibase_blob_create([int link_identifier])
Create blob for adding data */
PHP_FUNCTION(ibase_blob_create)
@@ -2562,7 +2524,6 @@ PHP_FUNCTION(ibase_blob_create)
}
/* }}} */
-
/* {{{ proto int ibase_blob_open(string blob_id)
Open blob for retriving data parts */
PHP_FUNCTION(ibase_blob_open)
@@ -2600,7 +2561,6 @@ PHP_FUNCTION(ibase_blob_open)
}
/* }}} */
-
/* {{{ proto int ibase_blob_add(int blob_id, string data)
Add data into created blob */
PHP_FUNCTION(ibase_blob_add)
@@ -2627,7 +2587,6 @@ PHP_FUNCTION(ibase_blob_add)
}
/* }}} */
-
/* {{{ proto string ibase_blob_get(int blob_id, int len)
Get len bytes data from open blob */
PHP_FUNCTION(ibase_blob_get)
@@ -2677,7 +2636,6 @@ PHP_FUNCTION(ibase_blob_get)
}
/* }}} */
-
#define BLOB_CLOSE 1
#define BLOB_CANCEL 2
@@ -2719,7 +2677,6 @@ static void _php_ibase_blob_end(INTERNAL_FUNCTION_PARAMETERS, int bl_end)
}
/* }}} */
-
/* {{{ proto int ibase_blob_close(int blob_id)
Close blob */
PHP_FUNCTION(ibase_blob_close)
@@ -2728,7 +2685,6 @@ PHP_FUNCTION(ibase_blob_close)
}
/* }}} */
-
/* {{{ proto int ibase_blob_cancel(int blob_id)
Cancel creating blob */
PHP_FUNCTION(ibase_blob_cancel)
@@ -2737,7 +2693,6 @@ PHP_FUNCTION(ibase_blob_cancel)
}
/* }}} */
-
/* {{{ proto object ibase_blob_info(string blob_id_str)
Return blob length and other useful info */
PHP_FUNCTION(ibase_blob_info)
@@ -2812,7 +2767,6 @@ PHP_FUNCTION(ibase_blob_info)
}
/* }}} */
-
/* {{{ proto int ibase_blob_echo(string blob_id_str)
Output blob contents to browser */
PHP_FUNCTION(ibase_blob_echo)
@@ -2971,5 +2925,6 @@ PHP_FUNCTION(ibase_blob_import)
* tab-width: 4
* c-basic-offset: 4
* End:
+ * vim600: sw=4 ts=4 tw=78 fdm=marker
+ * vim<600: sw=4 ts=4 tw=78
*/
-