cvs: /php3/functions dba.c
| From: | Egon Schmid | Date: | Mon, 22 Nov 1999 22:05:55 +0000 |
| Subject: | cvs: /php3/functions dba.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-12946@lists.php.net to get a copy of this message | ||
eschmid Mon Nov 22 17:05:55 1999 EDT
Modified files:
/php3/functions dba.c
Log:
Descriptions start now with a capital letter.
Index: php3/functions/dba.c
diff -u php3/functions/dba.c:1.20 php3/functions/dba.c:1.21
--- php3/functions/dba.c:1.20 Wed Jul 21 11:39:01 1999
+++ php3/functions/dba.c Mon Nov 22 17:05:54 1999
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dba.c,v 1.20 1999/07/21 15:39:01 sas Exp $ */
+/* $Id: dba.c,v 1.21 1999/11/22 22:05:54 eschmid Exp $ */
#include "php.h"
@@ -164,8 +164,9 @@
/* }}} */
/* {{{ helper routines */
- /* {{{ dba_close */
+/* {{{ dba_close */
+
static void dba_close(dba_info *info)
{
if(info->hnd) info->hnd->close(info);
@@ -173,7 +174,8 @@
free(info);
}
/* }}} */
- /* {{{ php3_minit_dba */
+
+/* {{{ php3_minit_dba */
static int php3_minit_dba(INIT_FUNC_ARGS)
{
@@ -183,7 +185,8 @@
return SUCCESS;
}
/* }}} */
- /* {{{ php3_mshutdown_dba */
+
+/* {{{ php3_mshutdown_dba */
static int php3_mshutdown_dba(void)
{
@@ -191,20 +194,22 @@
return SUCCESS;
}
/* }}} */
- /* {{{ php3_info_dba */
+/* {{{ php3_info_dba */
+
static void php3_info_dba(void)
{
dba_handler *hptr;
- PUTS("V1 ($Id: dba.c,v 1.20 1999/07/21 15:39:01 sas Exp $)");
+ PUTS("V1 ($Id: dba.c,v 1.21 1999/11/22 22:05:54 eschmid Exp $)");
for(hptr = handler; hptr->name; hptr++) {
PUTS(" ");
PUTS(hptr->name);
}
}
/* }}} */
- /* {{{ _php3_dba_update */
+
+/* {{{ _php3_dba_update */
static void _php3_dba_update(INTERNAL_FUNCTION_PARAMETERS, int mode)
{
@@ -225,7 +230,8 @@
RETURN_FALSE;
}
/* }}} */
- /* {{{ _php3_dba_open */
+
+/* {{{ _php3_dba_open */
#define FREENOW if(args) efree(args); if(key) efree(key)
@@ -333,16 +339,16 @@
/* }}} */
/* }}} */
-/* {{{ proto int dba_popen(string path, string mode, string handlername[, ...])
- opens path using the specified handler in mode persistently */
+/* {{{ proto int dba_popen(string path, string mode, string handlername [, string ...])
+ Opens path using the specified handler in mode persistently */
PHP_FUNCTION(dba_popen)
{
_php3_dba_open(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
}
/* }}} */
-/* {{{ proto int dba_open(string path, string mode, string handlername[, ...])
- opens path using the specified handler in mode*/
+/* {{{ proto int dba_open(string path, string mode, string handlername [, string ...])
+ Opens path using the specified handler in mode */
PHP_FUNCTION(dba_open)
{
_php3_dba_open(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
@@ -350,7 +356,7 @@
/* }}} */
/* {{{ proto void dba_close(int handle)
- closes database */
+ Closes database */
PHP_FUNCTION(dba_close)
{
DBA_ID_GET1;
@@ -360,7 +366,7 @@
/* }}} */
/* {{{ proto bool dba_exists(string key, int handle)
- checks, if the specified key exists */
+ Checks, if the specified key exists */
PHP_FUNCTION(dba_exists)
{
DBA_ID_GET2;
@@ -373,7 +379,7 @@
/* }}} */
/* {{{ proto string dba_fetch(string key, int handle)
- fetches the data associated with key */
+ Fetches the data associated with key */
PHP_FUNCTION(dba_fetch)
{
char *val;
@@ -388,7 +394,7 @@
/* }}} */
/* {{{ proto string dba_firstkey(int handle)
- resets the internal key pointer and returns the first key */
+ Resets the internal key pointer and returns the first key */
PHP_FUNCTION(dba_firstkey)
{
char *fkey;
@@ -403,7 +409,7 @@
/* }}} */
/* {{{ proto string dba_nextkey(int handle)
- returns the next key */
+ Returns the next key */
PHP_FUNCTION(dba_nextkey)
{
char *nkey;
@@ -418,7 +424,7 @@
/* }}} */
/* {{{ proto bool dba_delete(string key, int handle)
- deletes the entry associated with key */
+ Deletes the entry associated with key */
PHP_FUNCTION(dba_delete)
{
DBA_ID_GET2;
@@ -432,7 +438,7 @@
/* }}} */
/* {{{ proto bool dba_insert(string key, string value, int handle)
- inserts value as key, returns false, if key exists already */
+ Inserts value as key, returns false, if key exists already */
PHP_FUNCTION(dba_insert)
{
_php3_dba_update(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
@@ -440,7 +446,7 @@
/* }}} */
/* {{{ proto bool dba_replace(string key, string value, int handle)
- inserts value as key, replaces key, if key exists already */
+ Inserts value as key, replaces key, if key exists already */
PHP_FUNCTION(dba_replace)
{
_php3_dba_update(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
@@ -448,7 +454,7 @@
/* }}} */
/* {{{ proto bool dba_optimize(int handle)
- optimizes (e.g. clean up, vacuum) database */
+ Optimizes (e.g. clean up, vacuum) database */
PHP_FUNCTION(dba_optimize)
{
DBA_ID_GET1;
@@ -462,7 +468,7 @@
/* }}} */
/* {{{ proto bool dba_sync(int handle)
- synchronizes database */
+ Synchronizes database */
PHP_FUNCTION(dba_sync)
{
DBA_ID_GET1;