[PHP4BETA] CVS update: php4/ext/dbase

From: Date: Fri, 21 May 1999 10:05:47 +0000
Subject: [PHP4BETA] CVS update: php4/ext/dbase
Groups: php.version4 
Request: Send a blank email to php-version4+get-937@lists.php.net to get a copy of this message
Date: Friday May 21, 1999 @ 6:05 Author: sas Update of /repository/php4/ext/dbase In directory php:/tmp/cvs-serv14196/ext/dbase Modified Files: dbase.c dbf_head.h dbf_misc.h dbf_rec.h php_dbase.h Log Message: - run ext sources through conv_proto - add necessary phpext_*_ptr Index: php4/ext/dbase/dbase.c diff -u php4/ext/dbase/dbase.c:1.3 php4/ext/dbase/dbase.c:1.4 --- php4/ext/dbase/dbase.c:1.3 Fri May 21 04:20:11 1999 +++ php4/ext/dbase/dbase.c Fri May 21 06:05:47 1999 @@ -116,7 +116,7 @@ /* {{{ proto int dbase_open(string name, int mode) Opens a dBase-format database file */ -void php3_dbase_open(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(dbase_open) { pval *dbf_name, *options; dbhead_t *dbh; int handle; @@ -149,7 +149,7 @@ /* {{{ proto bool dbase_close(int identifier) Closes an open dBase-format database file */ -void php3_dbase_close(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(dbase_close) { pval *dbh_id; dbhead_t *dbh; int dbh_type; @@ -172,7 +172,7 @@ /* {{{ proto int dbase_numrecords(int identifier) Returns the number of records in the database */ -void php3_dbase_numrecords(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(dbase_numrecords) { pval *dbh_id; dbhead_t *dbh; int dbh_type; @@ -194,7 +194,7 @@ /* {{{ proto int dbase_numfields(int identifier) Returns the number of fields (columns) in the database */ -void php3_dbase_numfields(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(dbase_numfields) { pval *dbh_id; dbhead_t *dbh; int dbh_type; @@ -216,7 +216,7 @@ /* {{{ proto bool dbase_pack(int identifier) Packs the database (deletes records marked for deletion) */ -void php3_dbase_pack(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(dbase_pack) { pval *dbh_id; dbhead_t *dbh; int dbh_type; @@ -240,7 +240,7 @@ /* {{{ proto bool dbase_add_record(int identifier, array data) Adds a record to the database */ -void php3_dbase_add_record(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(dbase_add_record) { pval *dbh_id, *fields, *field; dbhead_t *dbh; int dbh_type; @@ -308,7 +308,7 @@ /* {{{ proto bool dbase_delete_record(int identifier, int record) Marks a record to be deleted */ -void php3_dbase_delete_record(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(dbase_delete_record) { pval *dbh_id, *record; dbhead_t *dbh; int dbh_type; @@ -342,7 +342,7 @@ /* {{{ proto array dbase_get_record(int identifier, int record) Returns an array representing a record from the database */ -void php3_dbase_get_record(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(dbase_get_record) { pval *dbh_id, *record; dbhead_t *dbh; int dbh_type; @@ -420,7 +420,7 @@ /* From Martin Kuba <makub@aida.inet.cz> */ /* {{{ proto array dbase_get_record_with_names(int identifier, int record) Returns an associative array representing a record from the database */ -void php3_dbase_get_record_with_names(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(dbase_get_record_with_names) { pval *dbh_id, *record; dbhead_t *dbh; int dbh_type; @@ -495,7 +495,7 @@ /* {{{ proto bool dbase_create(string filename, array fields) Creates a new dBase-format database file */ -void php3_dbase_create(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(dbase_create) { pval *filename, *fields, *field, *value; int fd; dbhead_t *dbh; Index: php4/ext/dbase/dbf_head.h diff -u php4/ext/dbase/dbf_head.h:1.1 php4/ext/dbase/dbf_head.h:1.2 --- php4/ext/dbase/dbf_head.h:1.1 Mon Apr 19 09:56:50 1999 +++ php4/ext/dbase/dbf_head.h Fri May 21 06:05:47 1999 @@ -1,9 +1,9 @@ extern dbhead_t *get_dbf_head(int fd); -extern void free_dbf_head(dbhead_t *dbh); +void free_dbf_head(dbhead_t *dbh); extern int put_dbf_head(dbhead_t *dbh); extern int get_dbf_field(dbhead_t *dbh, dbfield_t *dbf); extern int put_dbf_field(dbhead_t *dbh, dbfield_t *dbf); -extern void put_dbf_info(dbhead_t *dbh); +void put_dbf_info(dbhead_t *dbh); extern char *get_dbf_f_fmt(dbfield_t *dbf); extern dbhead_t *dbf_open(char *dp, int o_flags); -extern void dbf_head_info(dbhead_t *dbh); +void dbf_head_info(dbhead_t *dbh); Index: php4/ext/dbase/dbf_misc.h diff -u php4/ext/dbase/dbf_misc.h:1.1 php4/ext/dbase/dbf_misc.h:1.2 --- php4/ext/dbase/dbf_misc.h:1.1 Mon Apr 19 09:56:50 1999 +++ php4/ext/dbase/dbf_misc.h Fri May 21 06:05:47 1999 @@ -1,12 +1,12 @@ -extern void put_long(char *cp, long lval); +void put_long(char *cp, long lval); extern long get_long(char *cp); extern int get_short(char *cp); -extern void put_short(char *cp, int sval); -extern void put_double(char *cp, double fval); +void put_short(char *cp, int sval); +void put_double(char *cp, double fval); extern double get_double(char *cp); -extern void copy_fill(char *dp, char *sp, int len); -extern void copy_crimp(char *dp, char *sp, int len); -extern void db_set_date(char *cp, int year, int month, int day); +void copy_fill(char *dp, char *sp, int len); +void copy_crimp(char *dp, char *sp, int len); +void db_set_date(char *cp, int year, int month, int day); extern int db_date_year(char *cp); extern int db_date_month(char *cp); extern int db_date_day(char *cp); Index: php4/ext/dbase/dbf_rec.h diff -u php4/ext/dbase/dbf_rec.h:1.1 php4/ext/dbase/dbf_rec.h:1.2 --- php4/ext/dbase/dbf_rec.h:1.1 Mon Apr 19 09:56:50 1999 +++ php4/ext/dbase/dbf_rec.h Fri May 21 06:05:47 1999 @@ -2,9 +2,9 @@ extern long put_dbf_record(dbhead_t *dbh, long rec_num, char *cp); extern int put_piece(dbhead_t *dbh, long offset, char *cp, int len); extern int del_dbf_record(dbhead_t *dbh, long rec_num); -extern void pack_dbf(dbhead_t *dbh); +void pack_dbf(dbhead_t *dbh); extern char *get_field_val(char *rp, dbfield_t *fldp, char *cp); -extern void put_field_val(char *rp, dbfield_t *fldp, char *cp); -extern void out_rec(dbhead_t *dbh, dbfield_t *dbf, char *cp); +void put_field_val(char *rp, dbfield_t *fldp, char *cp); +void out_rec(dbhead_t *dbh, dbfield_t *dbf, char *cp); extern int is_valid_rec(char *cp); extern char *dbf_get_next(dbhead_t *dbh); Index: php4/ext/dbase/php_dbase.h diff -u php4/ext/dbase/php_dbase.h:1.1 php4/ext/dbase/php_dbase.h:1.2 --- php4/ext/dbase/php_dbase.h:1.1 Fri May 21 04:20:11 1999 +++ php4/ext/dbase/php_dbase.h Fri May 21 06:05:47 1999 @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_dbase.h,v 1.1 1999/05/21 08:20:11 sas Exp $ */ +/* $Id: php_dbase.h,v 1.2 1999/05/21 10:05:47 sas Exp $ */ #ifndef _DBASE_H #define _DBASE_H @@ -36,16 +36,16 @@ #define dbase_module_ptr &dbase_module_entry extern int php3_minit_dbase(INIT_FUNC_ARGS); -extern void php3_dbase_open(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_dbase_create(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_dbase_close(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_dbase_numrecords(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_dbase_numfields(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_dbase_add_record(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_dbase_get_record(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_dbase_delete_record(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_dbase_pack(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_dbase_get_record_with_names(INTERNAL_FUNCTION_PARAMETERS); +PHP_FUNCTION(dbase_open); +PHP_FUNCTION(dbase_create); +PHP_FUNCTION(dbase_close); +PHP_FUNCTION(dbase_numrecords); +PHP_FUNCTION(dbase_numfields); +PHP_FUNCTION(dbase_add_record); +PHP_FUNCTION(dbase_get_record); +PHP_FUNCTION(dbase_delete_record); +PHP_FUNCTION(dbase_pack); +PHP_FUNCTION(dbase_get_record_with_names); #else #define dbase_module_ptr NULL #endif -- PHP 4 Beta

« previous php.version4 (#937) next »