summaryrefslogtreecommitdiff
path: root/ext/db
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-05-21 10:06:25 +0000
committerSascha Schumann <sas@php.net>1999-05-21 10:06:25 +0000
commitb57dc275950b228f2399990471c4f22b7d154c6c (patch)
treea89fe99e356b218591b0b0b392862e0b9ddd4e7e /ext/db
parent4fe8fe715e4347a4063a57e1a9fd6dc013ca9ee0 (diff)
downloadphp-git-b57dc275950b228f2399990471c4f22b7d154c6c.tar.gz
- run ext sources through conv_proto
- add necessary phpext_*_ptr
Diffstat (limited to 'ext/db')
-rw-r--r--ext/db/db.c20
-rw-r--r--ext/db/php3_db.h26
2 files changed, 23 insertions, 23 deletions
diff --git a/ext/db/db.c b/ext/db/db.c
index ef1502a7f2..f00949a120 100644
--- a/ext/db/db.c
+++ b/ext/db/db.c
@@ -256,14 +256,14 @@ void php3_info_db(ZEND_MODULE_INFO_FUNC_ARGS)
php3_printf(php3_get_info_db());
}
-void php3_dblist(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(dblist)
{
char *str = php3_get_info_db();
RETURN_STRING(str,1);
}
-void php3_dbmopen(INTERNAL_FUNCTION_PARAMETERS) {
+PHP_FUNCTION(dbmopen) {
pval *filename, *mode;
dbm_info *info=NULL;
int ret;
@@ -421,7 +421,7 @@ dbm_info *_php3_dbmopen(char *filename, char *mode) {
return NULL;
}
-void php3_dbmclose(INTERNAL_FUNCTION_PARAMETERS) {
+PHP_FUNCTION(dbmclose) {
pval *id;
if (ARG_COUNT(ht) != 1 || getParameters(ht,1,&id)==FAILURE) {
@@ -469,7 +469,7 @@ int _php3_dbmclose(dbm_info *info) {
* ret = 0 success
* ret = 1 key already exists - nothing done
*/
-void php3_dbminsert(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(dbminsert)
{
pval *id, *key, *value;
dbm_info *info;
@@ -522,7 +522,7 @@ int _php3_dbminsert(dbm_info *info, char *key, char *value) {
return(ret);
}
-void php3_dbmreplace(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(dbmreplace)
{
pval *id, *key, *value;
dbm_info *info;
@@ -578,7 +578,7 @@ int _php3_dbmreplace(dbm_info *info, char *key, char *value) {
return(ret);
}
-void php3_dbmfetch(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(dbmfetch)
{
pval *id, *key;
dbm_info *info;
@@ -649,7 +649,7 @@ char *_php3_dbmfetch(dbm_info *info, char *key) {
}
-void php3_dbmexists(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(dbmexists)
{
pval *id, *key;
dbm_info *info;
@@ -692,7 +692,7 @@ int _php3_dbmexists(dbm_info *info, char *key) {
return(ret);
}
-void php3_dbmdelete(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(dbmdelete)
{
pval *id, *key;
dbm_info *info;
@@ -734,7 +734,7 @@ int _php3_dbmdelete(dbm_info *info, char *key) {
return(ret);
}
-void php3_dbmfirstkey(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(dbmfirstkey)
{
pval *id;
dbm_info *info;
@@ -791,7 +791,7 @@ char *_php3_dbmfirstkey(dbm_info *info) {
return (ret);
}
-void php3_dbmnextkey(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(dbmnextkey)
{
pval *id, *key;
dbm_info *info;
diff --git a/ext/db/php3_db.h b/ext/db/php3_db.h
index 08039d5640..dae46dc6bc 100644
--- a/ext/db/php3_db.h
+++ b/ext/db/php3_db.h
@@ -74,19 +74,19 @@ char *_php3_dbmfirstkey(dbm_info *info);
char *_php3_dbmnextkey(dbm_info *info, char *key);
/* db file functions */
-extern int php3_minit_db(INIT_FUNC_ARGS);
-extern int php3_rinit_db(INIT_FUNC_ARGS);
-extern void php3_info_db(ZEND_MODULE_INFO_FUNC_ARGS);
-extern void php3_dblist(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_dbmopen(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_dbmclose(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_dbminsert(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_dbmfetch(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_dbmreplace(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_dbmexists(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_dbmdelete(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_dbmfirstkey(INTERNAL_FUNCTION_PARAMETERS);
-extern void php3_dbmnextkey(INTERNAL_FUNCTION_PARAMETERS);
+int php3_minit_db(INIT_FUNC_ARGS);
+int php3_rinit_db(INIT_FUNC_ARGS);
+void php3_info_db(ZEND_MODULE_INFO_FUNC_ARGS);
+PHP_FUNCTION(dblist);
+PHP_FUNCTION(dbmopen);
+PHP_FUNCTION(dbmclose);
+PHP_FUNCTION(dbminsert);
+PHP_FUNCTION(dbmfetch);
+PHP_FUNCTION(dbmreplace);
+PHP_FUNCTION(dbmexists);
+PHP_FUNCTION(dbmdelete);
+PHP_FUNCTION(dbmfirstkey);
+PHP_FUNCTION(dbmnextkey);
#undef phpext_db_ptr
#define phpext_db_ptr NULL