summaryrefslogtreecommitdiff
path: root/ext/odbc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/odbc')
-rw-r--r--ext/odbc/odbc.c4
-rw-r--r--ext/odbc/php3_odbc.h62
-rw-r--r--ext/odbc/php3_velocis.h26
-rw-r--r--ext/odbc/velocis.c24
4 files changed, 59 insertions, 57 deletions
diff --git a/ext/odbc/odbc.c b/ext/odbc/odbc.c
index e78a6d4b91..06d1358c98 100644
--- a/ext/odbc/odbc.c
+++ b/ext/odbc/odbc.c
@@ -592,7 +592,7 @@ PHP_FUNCTION(odbc_prepare)
*/
/* {{{ proto odbc_execute(int result_id [, array parameters_array])
Execute a prepared statement */
-extern PHP_FUNCTION(odbc_execute)
+PHP_FUNCTION(odbc_execute)
{
pval *arg1, *arg2, arr, *tmp;
typedef struct params_t {
@@ -1074,7 +1074,7 @@ PHP_FUNCTION(odbc_fetch_into)
/* }}} */
#if HAVE_SOLID
-void php3_solid_fetch_prev(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(solid_fetch_prev)
{
int res_ind;
odbc_result *result;
diff --git a/ext/odbc/php3_odbc.h b/ext/odbc/php3_odbc.h
index 295f6b4fb8..c7794410be 100644
--- a/ext/odbc/php3_odbc.h
+++ b/ext/odbc/php3_odbc.h
@@ -46,7 +46,7 @@
# include <cli0core.h>
# include <cli0ext1.h>
# define HAVE_SQL_EXTENDED_FETCH 0
-extern void php3_solid_fetch_prev(INTERNAL_FUNCTION_PARAMETERS);
+PHP_FUNCTION(solid_fetch_prev);
# elif HAVE_EMPRESS /* Empress */
@@ -120,35 +120,35 @@ extern php3_module_entry odbc_module_entry;
extern int php3_minit_odbc(INIT_FUNC_ARGS);
extern int php3_mshutdown_odbc(SHUTDOWN_FUNC_ARGS);
extern int php3_rinit_odbc(INIT_FUNC_ARGS);
-extern void php3_info_odbc(ZEND_MODULE_INFO_FUNC_ARGS);
-extern PHP_FUNCTION(odbc_setoption);
-extern PHP_FUNCTION(odbc_autocommit);
-extern PHP_FUNCTION(odbc_close);
-extern PHP_FUNCTION(odbc_close_all);
-extern PHP_FUNCTION(odbc_commit);
-extern PHP_FUNCTION(odbc_connect);
-extern PHP_FUNCTION(odbc_pconnect);
-extern void php3_odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int);
-extern PHP_FUNCTION(odbc_cursor);
-extern PHP_FUNCTION(odbc_exec);
-extern PHP_FUNCTION(odbc_do);
-extern PHP_FUNCTION(odbc_execute);
-extern PHP_FUNCTION(odbc_fetch_into);
-extern PHP_FUNCTION(odbc_fetch_row);
-extern PHP_FUNCTION(odbc_field_len);
-extern PHP_FUNCTION(odbc_field_name);
-extern PHP_FUNCTION(odbc_field_type);
-extern PHP_FUNCTION(odbc_field_num);
-extern PHP_FUNCTION(odbc_free_result);
-extern PHP_FUNCTION(odbc_num_fields);
-extern PHP_FUNCTION(odbc_num_rows);
-extern PHP_FUNCTION(odbc_prepare);
-extern PHP_FUNCTION(odbc_result);
-extern PHP_FUNCTION(odbc_result_all);
-extern PHP_FUNCTION(odbc_rollback);
-extern void php3_odbc_transact(INTERNAL_FUNCTION_PARAMETERS, int);
-extern PHP_FUNCTION(odbc_binmode);
-extern PHP_FUNCTION(odbc_longreadlen);
+void php3_info_odbc(ZEND_MODULE_INFO_FUNC_ARGS);
+PHP_FUNCTION(odbc_setoption);
+PHP_FUNCTION(odbc_autocommit);
+PHP_FUNCTION(odbc_close);
+PHP_FUNCTION(odbc_close_all);
+PHP_FUNCTION(odbc_commit);
+PHP_FUNCTION(odbc_connect);
+PHP_FUNCTION(odbc_pconnect);
+void php3_odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int);
+PHP_FUNCTION(odbc_cursor);
+PHP_FUNCTION(odbc_exec);
+PHP_FUNCTION(odbc_do);
+PHP_FUNCTION(odbc_execute);
+PHP_FUNCTION(odbc_fetch_into);
+PHP_FUNCTION(odbc_fetch_row);
+PHP_FUNCTION(odbc_field_len);
+PHP_FUNCTION(odbc_field_name);
+PHP_FUNCTION(odbc_field_type);
+PHP_FUNCTION(odbc_field_num);
+PHP_FUNCTION(odbc_free_result);
+PHP_FUNCTION(odbc_num_fields);
+PHP_FUNCTION(odbc_num_rows);
+PHP_FUNCTION(odbc_prepare);
+PHP_FUNCTION(odbc_result);
+PHP_FUNCTION(odbc_result_all);
+PHP_FUNCTION(odbc_rollback);
+void php3_odbc_transact(INTERNAL_FUNCTION_PARAMETERS, int);
+PHP_FUNCTION(odbc_binmode);
+PHP_FUNCTION(odbc_longreadlen);
typedef struct odbc_connection {
#if HAVE_DB2
@@ -251,6 +251,8 @@ extern ZEND_API php_odbc_globals odbc_globals;
#endif /* HAVE_UODBC */
+#define phpext_odbc_ptr odbc_module_ptr
+
#endif /* _PHP_ODBC_H */
/*
diff --git a/ext/odbc/php3_velocis.h b/ext/odbc/php3_velocis.h
index dd114ceec6..b5f91a62e3 100644
--- a/ext/odbc/php3_velocis.h
+++ b/ext/odbc/php3_velocis.h
@@ -76,20 +76,20 @@ extern php3_module_entry velocis_module_entry;
/* velocis.c functions */
extern int php3_minit_velocis(INIT_FUNC_ARGS);
extern int php3_rinit_velocis(INIT_FUNC_ARGS);
-extern void php3_info_velocis(ZEND_MODULE_INFO_FUNC_ARGS);
+void php3_info_velocis(ZEND_MODULE_INFO_FUNC_ARGS);
extern int php3_shutdown_velocis(SHUTDOWN_FUNC_ARGS);
-extern void php3_velocis_connect(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_velocis_close(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_velocis_exec(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_velocis_fetch(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_velocis_result(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_velocis_freeresult(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_velocis_autocommit(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_velocis_off_autocommit(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_velocis_commit(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_velocis_rollback(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_velocis_fieldnum(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_velocis_fieldname(INTERNAL_FUNCTION_PARAMETERS);
+PHP_FUNCTION(velocis_connect);
+PHP_FUNCTION(velocis_close);
+PHP_FUNCTION(velocis_exec);
+PHP_FUNCTION(velocis_fetch);
+PHP_FUNCTION(velocis_result);
+PHP_FUNCTION(velocis_freeresult);
+PHP_FUNCTION(velocis_autocommit);
+PHP_FUNCTION(velocis_off_autocommit);
+PHP_FUNCTION(velocis_commit);
+PHP_FUNCTION(velocis_rollback);
+PHP_FUNCTION(velocis_fieldnum);
+PHP_FUNCTION(velocis_fieldname);
extern velocis_module php3_velocis_module;
diff --git a/ext/odbc/velocis.c b/ext/odbc/velocis.c
index 9e0de4dc90..16dc079704 100644
--- a/ext/odbc/velocis.c
+++ b/ext/odbc/velocis.c
@@ -188,7 +188,7 @@ velocis_del_result(HashTable *list,int ind)
/* Users functions */
-void php3_velocis_connect(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(velocis_connect)
{
pval *serv,*user,*pass;
char *Serv = NULL;
@@ -235,7 +235,7 @@ void php3_velocis_connect(INTERNAL_FUNCTION_PARAMETERS)
RETURN_LONG(ind);
}
-void php3_velocis_close(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(velocis_close)
{
pval *id;
VConn *conn;
@@ -256,7 +256,7 @@ void php3_velocis_close(INTERNAL_FUNCTION_PARAMETERS)
RETURN_TRUE;
}
-void php3_velocis_exec(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(velocis_exec)
{
pval *ind,*exec_str;
char *query = NULL;
@@ -354,7 +354,7 @@ void php3_velocis_exec(INTERNAL_FUNCTION_PARAMETERS)
RETURN_LONG(indx);
}
-void php3_velocis_fetch(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(velocis_fetch)
{
pval *ind;
Vresult *res;
@@ -387,7 +387,7 @@ void php3_velocis_fetch(INTERNAL_FUNCTION_PARAMETERS)
RETURN_TRUE;
}
-void php3_velocis_result(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(velocis_result)
{
pval *ind,*col;
Vresult *res;
@@ -484,7 +484,7 @@ l1:
}
}
-void php3_velocis_freeresult(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(velocis_freeresult)
{
pval *ind;
Vresult *res;
@@ -503,7 +503,7 @@ void php3_velocis_freeresult(INTERNAL_FUNCTION_PARAMETERS)
RETURN_TRUE;
}
-void php3_velocis_autocommit(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(velocis_autocommit)
{
pval *id;
RETCODE stat;
@@ -526,7 +526,7 @@ void php3_velocis_autocommit(INTERNAL_FUNCTION_PARAMETERS)
RETURN_TRUE;
}
-void php3_velocis_off_autocommit(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(velocis_off_autocommit)
{
pval *id;
RETCODE stat;
@@ -549,7 +549,7 @@ void php3_velocis_off_autocommit(INTERNAL_FUNCTION_PARAMETERS)
RETURN_TRUE;
}
-void php3_velocis_commit(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(velocis_commit)
{
pval *id;
RETCODE stat;
@@ -572,7 +572,7 @@ void php3_velocis_commit(INTERNAL_FUNCTION_PARAMETERS)
RETURN_TRUE;
}
-void php3_velocis_rollback(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(velocis_rollback)
{
pval *id;
RETCODE stat;
@@ -595,7 +595,7 @@ void php3_velocis_rollback(INTERNAL_FUNCTION_PARAMETERS)
RETURN_TRUE;
}
-void php3_velocis_fieldname(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(velocis_fieldname)
{
pval *ind,*col;
Vresult *res;
@@ -619,7 +619,7 @@ void php3_velocis_fieldname(INTERNAL_FUNCTION_PARAMETERS)
RETURN_STRING(res->values[indx].name,TRUE);
}
-void php3_velocis_fieldnum(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(velocis_fieldnum)
{
pval *ind;
Vresult *res;