summaryrefslogtreecommitdiff
path: root/ext/fdf/fdf.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2001-06-05 13:12:10 +0000
committerRasmus Lerdorf <rasmus@php.net>2001-06-05 13:12:10 +0000
commit25c3a3a39d7aebdce95825e6af2ad8c62905b7cc (patch)
tree4d8f1ff9644c880e3b7a63a361a0db2280d8058f /ext/fdf/fdf.c
parent4efe6f7e6b53496fb1c4f6990b3ad0771bd9be67 (diff)
downloadphp-git-25c3a3a39d7aebdce95825e6af2ad8c62905b7cc.tar.gz
vim-6 does folding - clean up a bunch of missing folding tags plus
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
Diffstat (limited to 'ext/fdf/fdf.c')
-rw-r--r--ext/fdf/fdf.c35
1 files changed, 16 insertions, 19 deletions
diff --git a/ext/fdf/fdf.c b/ext/fdf/fdf.c
index 2a003130c7..7629c6e87f 100644
--- a/ext/fdf/fdf.c
+++ b/ext/fdf/fdf.c
@@ -42,6 +42,8 @@ static int le_fdf;
SAPI_POST_HANDLER_FUNC(fdf_post_handler);
+/* {{{ fdf_functions[]
+ */
function_entry fdf_functions[] = {
PHP_FE(fdf_open, NULL)
PHP_FE(fdf_create, NULL)
@@ -62,6 +64,7 @@ function_entry fdf_functions[] = {
PHP_FE(fdf_set_javascript_action, NULL)
{NULL, NULL, NULL}
};
+/* }}} */
zend_module_entry fdf_module_entry = {
"fdf",
@@ -95,7 +98,8 @@ static sapi_post_entry php_fdf_post_entry = {
fdf_post_handler
};
-
+/* {{{ PHP_MINIT_FUNCTION
+ */
PHP_MINIT_FUNCTION(fdf)
{
FDFErc err;
@@ -140,7 +144,10 @@ PHP_MINIT_FUNCTION(fdf)
if((err = FDFInitialize()) == FDFErcOK) return SUCCESS;
return FAILURE;
}
+/* }}} */
+/* {{{ PHP_MINFO_FUNCTION
+ */
PHP_MINFO_FUNCTION(fdf)
{
/* need to use a PHPAPI function here because it is external module in windows */
@@ -149,7 +156,10 @@ PHP_MINFO_FUNCTION(fdf)
php_info_print_table_row(2, "FdfTk Version", FDFGetVersion() );
php_info_print_table_end();
}
+/* }}} */
+/* {{{ PHP_MSHUTDOWN_FUNCTION
+ */
PHP_MSHUTDOWN_FUNCTION(fdf)
{
FDFErc err;
@@ -163,7 +173,7 @@ PHP_MSHUTDOWN_FUNCTION(fdf)
if((err = FDFFinalize()) == FDFErcOK) return SUCCESS;
return FAILURE;
}
-
+/* }}} */
/* {{{ proto int fdf_open(string filename)
Opens a new FDF document */
@@ -190,7 +200,6 @@ PHP_FUNCTION(fdf_open)
}
/* }}} */
-
/* {{{ proto int fdf_create(void)
Creates a new FDF document */
PHP_FUNCTION(fdf_create)
@@ -209,7 +218,6 @@ PHP_FUNCTION(fdf_create)
}
/* }}} */
-
/* {{{ proto bool fdf_close(int fdfdoc)
Closes the FDF document */
PHP_FUNCTION(fdf_close)
@@ -226,7 +234,6 @@ PHP_FUNCTION(fdf_close)
}
/* }}} */
-
/* {{{ proto string fdf_get_value(int fdfdoc, string fieldname)
Gets the value of a field as string */
PHP_FUNCTION(fdf_get_value)
@@ -263,7 +270,6 @@ PHP_FUNCTION(fdf_get_value)
}
/* }}} */
-
/* {{{ proto bool fdf_set_value(int fdfdoc, string fieldname, string value, int isname)
Sets the value of a field */
PHP_FUNCTION(fdf_set_value)
@@ -291,7 +297,6 @@ PHP_FUNCTION(fdf_set_value)
}
/* }}} */
-
/* {{{ proto string fdf_next_field_name(int fdfdoc [, string fieldname])
Gets the name of the next field name or the first field name */
PHP_FUNCTION(fdf_next_field_name)
@@ -333,7 +338,6 @@ PHP_FUNCTION(fdf_next_field_name)
}
/* }}} */
-
/* {{{ proto bool fdf_set_ap(int fdfdoc, string fieldname, int face, string filename, int pagenr)
Sets the appearence of a field */
PHP_FUNCTION(fdf_set_ap)
@@ -383,7 +387,6 @@ PHP_FUNCTION(fdf_set_ap)
}
/* }}} */
-
/* {{{ proto bool fdf_set_status(int fdfdoc, string status)
Sets the value of /Status key */
PHP_FUNCTION(fdf_set_status)
@@ -410,7 +413,6 @@ PHP_FUNCTION(fdf_set_status)
}
/* }}} */
-
/* {{{ proto string fdf_get_status(int fdfdoc)
Gets the value of /Status key */
PHP_FUNCTION(fdf_get_status)
@@ -446,7 +448,6 @@ PHP_FUNCTION(fdf_get_status)
}
/* }}} */
-
/* {{{ proto bool fdf_set_file(int fdfdoc, string filename)
Sets the value of /F key */
PHP_FUNCTION(fdf_set_file)
@@ -473,7 +474,6 @@ PHP_FUNCTION(fdf_set_file)
}
/* }}} */
-
/* {{{ proto string fdf_get_file(int fdfdoc)
Gets the value of /F key */
PHP_FUNCTION(fdf_get_file)
@@ -509,7 +509,6 @@ PHP_FUNCTION(fdf_get_file)
}
/* }}} */
-
/* {{{ proto bool fdf_save(int fdfdoc, string filename)
Writes out the FDF file */
PHP_FUNCTION(fdf_save)
@@ -536,7 +535,6 @@ PHP_FUNCTION(fdf_save)
}
/* }}} */
-
/* {{{ proto bool fdf_add_template(int fdfdoc, int newpage, string filename, string template, int rename)
Adds a template into the FDF document */
PHP_FUNCTION(fdf_add_template)
@@ -576,7 +574,6 @@ PHP_FUNCTION(fdf_add_template)
}
/* }}} */
-
/* {{{ proto bool fdf_set_flags(int fdfdoc, string fieldname, int whichflags, int newflags)
Sets flags for a field in the FDF document */
PHP_FUNCTION(fdf_set_flags)
@@ -605,7 +602,6 @@ PHP_FUNCTION(fdf_set_flags)
}
/* }}} */
-
/* {{{ proto bool fdf_set_opt(int fdfdoc, string fieldname, int element, string value, string name)
Sets a value in the opt array for a field */
PHP_FUNCTION(fdf_set_opt)
@@ -634,7 +630,6 @@ PHP_FUNCTION(fdf_set_opt)
}
/* }}} */
-
/* {{{ proto bool fdf_set_submit_form_action(int fdfdoc, string fieldname, int whichtrigger, string url, int flags)
Sets the submit form action for a field */
PHP_FUNCTION(fdf_set_submit_form_action)
@@ -663,7 +658,6 @@ PHP_FUNCTION(fdf_set_submit_form_action)
}
/* }}} */
-
/* {{{ proto bool fdf_set_javascript_action(int fdfdoc, string fieldname, int whichtrigger, string script)
Sets the javascript action for a field */
PHP_FUNCTION(fdf_set_javascript_action)
@@ -691,7 +685,8 @@ PHP_FUNCTION(fdf_set_javascript_action)
}
/* }}} */
-/* SAPI post handler for FDF forms */
+/* {{{ SAPI_POST_HANDLER_FUNC
+ * SAPI post handler for FDF forms */
SAPI_POST_HANDLER_FUNC(fdf_post_handler)
{
FILE *fp;
@@ -760,6 +755,7 @@ SAPI_POST_HANDLER_FUNC(fdf_post_handler)
if(lastfieldname) efree(lastfieldname);
}
}
+/* }}} */
#endif
@@ -768,4 +764,5 @@ SAPI_POST_HANDLER_FUNC(fdf_post_handler)
* tab-width: 4
* c-basic-offset: 4
* End:
+ * vim: sw=4 ts=4 tw=78 fdm=marker
*/