CVS update: php3/functions
| From: | jim | Date: | Thu, 05 Nov 1998 23:52:08 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-2236@lists.php.net to get a copy of this message | ||
Date: Thursday November 5, 1998 @ 18:52
Author: jim
Update of /repository/php3/functions
In directory asf:/u2/tmp/cvs-serv29350
Modified Files:
dbase.c
Log Message:
Add function prototypes for dbase functions.
Index: php3/functions/dbase.c
diff -c php3/functions/dbase.c:1.66 php3/functions/dbase.c:1.67
*** php3/functions/dbase.c:1.66 Sat Sep 19 16:17:16 1998
--- php3/functions/dbase.c Thu Nov 5 18:52:07 1998
***************
*** 117,122 ****
--- 117,123 ----
return SUCCESS;
}
+ /* {{{ proto int dbase_open(string name, int mode) */
void php3_dbase_open(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbf_name, *options;
dbhead_t *dbh;
***************
*** 146,152 ****
--- 147,155 ----
handle = php3_list_insert(dbh, DBase_GLOBAL(le_dbhead));
RETURN_LONG(handle);
}
+ /* }}} */
+ /* {{{ proto bool dbase_close(int identifier) */
void php3_dbase_close(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id;
dbhead_t *dbh;
***************
*** 166,172 ****
--- 169,177 ----
php3_list_delete(dbh_id->value.lval);
RETURN_TRUE;
}
+ /* }}} */
+ /* {{{ proto int dbase_numrecords(int identifier) */
void php3_dbase_numrecords(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id;
dbhead_t *dbh;
***************
*** 185,191 ****
--- 190,198 ----
RETURN_LONG(dbh->db_records);
}
+ /* }}} */
+ /* {{{ proto int dbase_numfields(int identifier) */
void php3_dbase_numfields(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id;
dbhead_t *dbh;
***************
*** 204,210 ****
--- 211,219 ----
RETURN_LONG(dbh->db_nfields);
}
+ /* }}} */
+ /* {{{ proto bool dbase_pack(int identifier) */
void php3_dbase_pack(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id;
dbhead_t *dbh;
***************
*** 225,231 ****
--- 234,242 ----
put_dbf_info(dbh);
RETURN_TRUE;
}
+ /* }}} */
+ /* {{{ proto bool dbase_add_record(int identifier, array data) */
void php3_dbase_add_record(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id, *fields, *field;
dbhead_t *dbh;
***************
*** 290,296 ****
--- 301,309 ----
RETURN_TRUE;
}
+ /* }}} */
+ /* {{{ proto bool dbase_delete_record(int identifier, int record) */
void php3_dbase_delete_record(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id, *record;
dbhead_t *dbh;
***************
*** 321,327 ****
--- 334,342 ----
put_dbf_info(dbh);
RETURN_TRUE;
}
+ /* }}} */
+ /* {{{ proto array dbase_get_record(int identifier, int record) */
void php3_dbase_get_record(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id, *record;
dbhead_t *dbh;
***************
*** 395,402 ****
--- 410,419 ----
free(data);
}
+ /* }}} */
/* From Martin Kuba <makub@aida.inet.cz> */
+ /* {{{ proto array dbase_get_record_with_names(int identifier, int record) */
void php3_dbase_get_record_with_names(INTERNAL_FUNCTION_PARAMETERS) {
pval *dbh_id, *record;
dbhead_t *dbh;
***************
*** 468,474 ****
--- 485,493 ----
free(data);
}
+ /* }}} */
+ /* {{{ proto bool dbase_create(string filename, array fields) */
void php3_dbase_create(INTERNAL_FUNCTION_PARAMETERS) {
pval *filename, *fields, *field, *value;
int fd;
***************
*** 611,616 ****
--- 630,636 ----
handle = php3_list_insert(dbh, DBase_GLOBAL(le_dbhead));
RETURN_LONG(handle);
}
+ /* }}} */
function_entry dbase_functions[] = {
{"dbase_open", php3_dbase_open, NULL},
***************
*** 620,626 ****
{"dbase_numfields", php3_dbase_numfields, NULL},
{"dbase_add_record", php3_dbase_add_record, NULL},
{"dbase_get_record", php3_dbase_get_record, NULL},
! {"dbase_get_record_with_names", php3_dbase_get_record_with_names,
NULL},
{"dbase_delete_record", php3_dbase_delete_record, NULL},
{"dbase_pack", php3_dbase_pack, NULL},
{NULL, NULL, NULL}
--- 640,646 ----
{"dbase_numfields", php3_dbase_numfields, NULL},
{"dbase_add_record", php3_dbase_add_record, NULL},
{"dbase_get_record", php3_dbase_get_record, NULL},
! {"dbase_get_record_with_names", php3_dbase_get_record_with_names, NULL},
{"dbase_delete_record", php3_dbase_delete_record, NULL},
{"dbase_pack", php3_dbase_pack, NULL},
{NULL, NULL, NULL}
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net