[PHP4BETA] CVS update: php4/ext/interbase
| From: | sas | Date: | Fri, 21 May 1999 10:05:58 +0000 |
| Subject: | [PHP4BETA] CVS update: php4/ext/interbase | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-949@lists.php.net to get a copy of this message | ||
Date: Friday May 21, 1999 @ 6:05
Author: sas
Update of /repository/php4/ext/interbase
In directory php:/tmp/cvs-serv14196/ext/interbase
Modified Files:
interbase.c php3_interbase.h
Log Message:
- run ext sources through conv_proto
- add necessary phpext_*_ptr
Index: php4/ext/interbase/interbase.c
diff -u php4/ext/interbase/interbase.c:1.3 php4/ext/interbase/interbase.c:1.4
--- php4/ext/interbase/interbase.c:1.3 Mon May 10 20:01:43 1999
+++ php4/ext/interbase/interbase.c Fri May 21 06:05:57 1999
@@ -28,7 +28,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: interbase.c,v 1.3 1999/05/11 00:01:43 zeev Exp $ */
+/* $Id: interbase.c,v 1.4 1999/05/21 10:05:57 sas Exp $ */
/* TODO: A lot... */
@@ -432,7 +432,7 @@
/* {{{ proto int ibase_connect(string database [, string username] [, string password])
Open a connection to an InterBase database */
-void php3_ibase_connect(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(ibase_connect)
{
_php3_ibase_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
}
@@ -440,7 +440,7 @@
/* {{{ proto int ibase_pconnect(string database [, string username] [, string password])
Open a persistent connection to an InterBase database */
-void php3_ibase_pconnect(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(ibase_pconnect)
{
_php3_ibase_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
}
@@ -448,7 +448,7 @@
/* {{{ proto int ibase_close([int link_identifier])
Close an InterBase connection */
-void php3_ibase_close(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(ibase_close)
{
pval *ibase_link;
int id, type;
@@ -642,7 +642,7 @@
/* {{{ proto int ibase_query([int link_identifier, ]string query)
Execute a query (without parameter placeholders). */
-void php3_ibase_query(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(ibase_query)
{
pval *query, *ibase_link;
int id, type;
@@ -725,7 +725,7 @@
/* {{{ proto int ibase_fetch_row(int result)
Fetch a row from the results of a query. */
-void php3_ibase_fetch_row(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(ibase_fetch_row)
{
pval *result;
pval *pval_ptr;
@@ -886,7 +886,7 @@
/* {{{ proto int ibase_free_result(int result)
Free the memory used by a result. */
-void php3_ibase_free_result(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(ibase_free_result)
{
pval *result;
ibase_result_handle *ibase_result;
@@ -915,7 +915,7 @@
/* {{{ proto int ibase_prepare([int link_identifier, ]string query)
Prepare a query for later binding of parameter placeholders and execution. */
-void php3_ibase_prepare(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(ibase_prepare)
{
pval *query, *ibase_link;
int id, type;
@@ -974,7 +974,7 @@
/* {{{ proto int ibase_bind (int query)
Bind parameter placeholders in a previously prepared query. Still nonfunctional. */
-void php3_ibase_bind(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(ibase_bind)
{
pval *query;
ibase_query_handle *ibase_query;
@@ -1034,7 +1034,7 @@
/* {{{ proto int ibase_execute(int query)
Execute a previously prepared (and possibly binded) query. */
-void php3_ibase_execute(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(ibase_execute)
{
pval *query;
ibase_query_handle *ibase_query;
@@ -1071,7 +1071,7 @@
/* {{{ proto int ibase_free_query(int query)
Free memory used by a query */
-void php3_ibase_free_query(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(ibase_free_query)
{
pval *query;
ibase_query_handle *ibase_query;
@@ -1100,7 +1100,7 @@
/* {{{ proto int ibase_timefmt(string format)
Sets the format of datetime columns returned from queries. Still nonfunctional. */
-void php3_ibase_timefmt(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(ibase_timefmt)
{
pval *pmode;
IBASE_TLS_VARS;
Index: php4/ext/interbase/php3_interbase.h
diff -u php4/ext/interbase/php3_interbase.h:1.2 php4/ext/interbase/php3_interbase.h:1.3
--- php4/ext/interbase/php3_interbase.h:1.2 Sun May 9 04:47:54 1999
+++ php4/ext/interbase/php3_interbase.h Fri May 21 06:05:58 1999
@@ -28,7 +28,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php3_interbase.h,v 1.2 1999/05/09 08:47:54 zeev Exp $ */
+/* $Id: php3_interbase.h,v 1.3 1999/05/21 10:05:58 sas Exp $ */
#ifndef _PHP3_IBASE_H
#define _PHP3_IBASE_H
@@ -47,18 +47,18 @@
extern int php3_minit_ibase(INIT_FUNC_ARGS);
extern int php3_rinit_ibase(INIT_FUNC_ARGS);
extern int php3_mfinish_ibase(void);
-extern void php3_info_ibase(ZEND_MODULE_INFO_FUNC_ARGS);
-extern void php3_ibase_connect(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_ibase_pconnect(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_ibase_close(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_ibase_query(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_ibase_fetch_row(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_ibase_free_result(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_ibase_prepare(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_ibase_bind(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_ibase_execute(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_ibase_free_query(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_ibase_timefmt(INTERNAL_FUNCTION_PARAMETERS);
+void php3_info_ibase(ZEND_MODULE_INFO_FUNC_ARGS);
+PHP_FUNCTION(ibase_connect);
+PHP_FUNCTION(ibase_pconnect);
+PHP_FUNCTION(ibase_close);
+PHP_FUNCTION(ibase_query);
+PHP_FUNCTION(ibase_fetch_row);
+PHP_FUNCTION(ibase_free_result);
+PHP_FUNCTION(ibase_prepare);
+PHP_FUNCTION(ibase_bind);
+PHP_FUNCTION(ibase_execute);
+PHP_FUNCTION(ibase_free_query);
+PHP_FUNCTION(ibase_timefmt);
typedef struct {
long default_link;
@@ -97,6 +97,8 @@
#define php3_ibase_module_ptr NULL
#endif /* HAVE_IBASE */
+
+#define phpext_interbase_ptr php3_ibase_module_ptr
#endif /* _PHP3_IBASE_H */
--
PHP 4 Beta