[PHP4BETA] CVS update: php4/ext/fdf

From: Date: Fri, 21 May 1999 10:05:49 +0000
Subject: [PHP4BETA] CVS update: php4/ext/fdf
Groups: php.version4 
Request: Send a blank email to php-version4+get-938@lists.php.net to get a copy of this message
Date: Friday May 21, 1999 @ 6:05 Author: sas Update of /repository/php4/ext/fdf In directory php:/tmp/cvs-serv14196/ext/fdf Modified Files: fdf.c php3_fdf.h Log Message: - run ext sources through conv_proto - add necessary phpext_*_ptr Index: php4/ext/fdf/fdf.c diff -u php4/ext/fdf/fdf.c:1.2 php4/ext/fdf/fdf.c:1.3 --- php4/ext/fdf/fdf.c:1.2 Sun May 9 04:47:51 1999 +++ php4/ext/fdf/fdf.c Fri May 21 06:05:47 1999 @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: fdf.c,v 1.2 1999/05/09 08:47:51 zeev Exp $ */ +/* $Id: fdf.c,v 1.3 1999/05/21 10:05:47 sas Exp $ */ /* FdfTk lib 2.0 is a Complete C/C++ FDF Toolkit available from http://beta1.adobe.com/ada/acrosdk/forms.html. */ @@ -124,7 +124,7 @@ /* {{{ proto int fdf_open(string filename) Opens a new fdf document */ -void php3_fdf_open(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(fdf_open) { pval *file; int id, type; FDFDoc fdf; @@ -150,7 +150,7 @@ /* {{{ proto void fdf_close(int fdfdoc) Closes the fdf document */ -void php3_fdf_close(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(fdf_close) { pval *arg1; int id, type; FDFDoc fdf; @@ -176,7 +176,7 @@ /* {{{ proto void fdf_create(void) Creates a new fdf document */ -void php3_fdf_create(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(fdf_create) { int id, type; FDFDoc fdf; FDFErc err; @@ -195,7 +195,7 @@ /* {{{ proto void fdf_get_value(int fdfdoc, string fieldname) Gets the value of a field as string */ -void php3_fdf_get_value(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(fdf_get_value) { pval *arg1, *arg2; int id, type; ASInt32 nr; @@ -231,7 +231,7 @@ /* {{{ proto void fdf_set_value(int fdfdoc, string fieldname, string value, int isName) Sets the value of a field */ -void php3_fdf_set_value(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(fdf_set_value) { pval *arg1, *arg2, *arg3, *arg4; int id, type; FDFDoc fdf; @@ -263,7 +263,7 @@ /* {{{ proto void fdf_next_field_name(int fdfdoc [, string fieldname]) Gets the name of the next field name or the first field name */ -void php3_fdf_next_field_name(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(fdf_next_field_name) { pval *argv[2]; int id, type, argc; ASInt32 nr; @@ -311,7 +311,7 @@ /* {{{ proto void fdf_set_ap(int fdfdoc, string fieldname, int face, string filename, int pagenr) Sets the value of a field */ -void php3_fdf_set_ap(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(fdf_set_ap) { pval *arg1, *arg2, *arg3, *arg4, *arg5; int id, type; FDFDoc fdf; @@ -359,7 +359,7 @@ /* {{{ proto void fdf_set_status(int fdfdoc, string status) Sets the value in the /Status key. */ -void php3_fdf_set_status(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(fdf_set_status) { pval *arg1, *arg2; int id, type; ASInt32 nr; @@ -390,7 +390,7 @@ /* {{{ proto void fdf_get_status(int fdfdoc) Gets the value in the /Status key. */ -void php3_fdf_get_status(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(fdf_get_status) { pval *arg1; int id, type; ASInt32 nr; @@ -427,7 +427,7 @@ /* {{{ proto void fdf_set_file(int fdfdoc, string filename) Sets the value of the FDF's /F key */ -void php3_fdf_set_file(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(fdf_set_file) { pval *arg1, *arg2; int id, type; FDFDoc fdf; @@ -457,7 +457,7 @@ /* {{{ proto void fdf_get_file(int fdfdoc) Gets the value in the /F key. */ -void php3_fdf_get_file(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(fdf_get_file) { pval *arg1; int id, type; ASInt32 nr; @@ -494,7 +494,7 @@ /* {{{ proto void fdf_save(int fdfdoc, string filename) Writes out an FDF file. */ -void php3_fdf_save(INTERNAL_FUNCTION_PARAMETERS) { +PHP_FUNCTION(fdf_save) { pval *arg1, *arg2; int id, type; FDFDoc fdf; Index: php4/ext/fdf/php3_fdf.h diff -u php4/ext/fdf/php3_fdf.h:1.2 php4/ext/fdf/php3_fdf.h:1.3 --- php4/ext/fdf/php3_fdf.h:1.2 Sun May 9 04:47:51 1999 +++ php4/ext/fdf/php3_fdf.h Fri May 21 06:05:48 1999 @@ -26,7 +26,7 @@ | Authors: Uwe Steinmann | +----------------------------------------------------------------------+ */ -/* $Id: php3_fdf.h,v 1.2 1999/05/09 08:47:51 zeev Exp $ */ +/* $Id: php3_fdf.h,v 1.3 1999/05/21 10:05:48 sas Exp $ */ #ifndef _PHP3_FDF_H #define _PHP3_FDF_H @@ -40,24 +40,24 @@ #include <FdfTk.h> extern php3_module_entry fdf_module_entry; -#define fdf_module_ptr &fdf_module_entry +#define phpext_fdf_ptr &fdf_module_entry extern int php3_minit_fdf(INIT_FUNC_ARGS); extern int php3_mend_fdf(void); -extern void php3_info_fdf(ZEND_MODULE_INFO_FUNC_ARGS); -extern void php3_fdf_open(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_fdf_close(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_fdf_create(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_fdf_save(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_fdf_get_value(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_fdf_set_value(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_fdf_next_field_name(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_fdf_set_ap(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_fdf_get_status(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_fdf_set_status(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_fdf_set_file(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_fdf_get_file(INTERNAL_FUNCTION_PARAMETERS); +void php3_info_fdf(ZEND_MODULE_INFO_FUNC_ARGS); +PHP_FUNCTION(fdf_open); +PHP_FUNCTION(fdf_close); +PHP_FUNCTION(fdf_create); +PHP_FUNCTION(fdf_save); +PHP_FUNCTION(fdf_get_value); +PHP_FUNCTION(fdf_set_value); +PHP_FUNCTION(fdf_next_field_name); +PHP_FUNCTION(fdf_set_ap); +PHP_FUNCTION(fdf_get_status); +PHP_FUNCTION(fdf_set_status); +PHP_FUNCTION(fdf_set_file); +PHP_FUNCTION(fdf_get_file); #else -#define fdf_module_ptr NULL +#define phpext_fdf_ptr NULL #endif #endif /* _PHP3_FDF_H */ -- PHP 4 Beta

« previous php.version4 (#938) next »