mirror of
https://github.com/php/php-src.git
synced 2026-04-27 18:23:26 +02:00
MFB (move static keywording from .h to .c)
This commit is contained in:
@@ -40,6 +40,17 @@
|
||||
#define PHP_BZ_ERRSTR 1
|
||||
#define PHP_BZ_ERRBOTH 2
|
||||
|
||||
static PHP_MINIT_FUNCTION(bz2);
|
||||
static PHP_MSHUTDOWN_FUNCTION(bz2);
|
||||
static PHP_MINFO_FUNCTION(bz2);
|
||||
static PHP_FUNCTION(bzopen);
|
||||
static PHP_FUNCTION(bzread);
|
||||
static PHP_FUNCTION(bzerrno);
|
||||
static PHP_FUNCTION(bzerrstr);
|
||||
static PHP_FUNCTION(bzerror);
|
||||
static PHP_FUNCTION(bzcompress);
|
||||
static PHP_FUNCTION(bzdecompress);
|
||||
|
||||
/* {{{ arginfo */
|
||||
static
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_bzread, 0, 0, 1)
|
||||
|
||||
@@ -29,17 +29,6 @@ extern zend_module_entry bz2_module_entry;
|
||||
/* Bzip2 includes */
|
||||
#include <bzlib.h>
|
||||
|
||||
static PHP_MINIT_FUNCTION(bz2);
|
||||
static PHP_MSHUTDOWN_FUNCTION(bz2);
|
||||
static PHP_MINFO_FUNCTION(bz2);
|
||||
static PHP_FUNCTION(bzopen);
|
||||
static PHP_FUNCTION(bzread);
|
||||
static PHP_FUNCTION(bzerrno);
|
||||
static PHP_FUNCTION(bzerrstr);
|
||||
static PHP_FUNCTION(bzerror);
|
||||
static PHP_FUNCTION(bzcompress);
|
||||
static PHP_FUNCTION(bzdecompress);
|
||||
|
||||
#else
|
||||
#define phpext_bz2_ptr NULL
|
||||
#endif
|
||||
|
||||
@@ -40,6 +40,20 @@ ZEND_DECLARE_MODULE_GLOBALS(ctype)
|
||||
/* True global resources - no need for thread safety here */
|
||||
/* static int le_ctype; */
|
||||
|
||||
static PHP_MINFO_FUNCTION(ctype);
|
||||
|
||||
static PHP_FUNCTION(ctype_alnum);
|
||||
static PHP_FUNCTION(ctype_alpha);
|
||||
static PHP_FUNCTION(ctype_cntrl);
|
||||
static PHP_FUNCTION(ctype_digit);
|
||||
static PHP_FUNCTION(ctype_lower);
|
||||
static PHP_FUNCTION(ctype_graph);
|
||||
static PHP_FUNCTION(ctype_print);
|
||||
static PHP_FUNCTION(ctype_punct);
|
||||
static PHP_FUNCTION(ctype_space);
|
||||
static PHP_FUNCTION(ctype_upper);
|
||||
static PHP_FUNCTION(ctype_xdigit);
|
||||
|
||||
/* {{{ arginfo */
|
||||
static
|
||||
ZEND_BEGIN_ARG_INFO(arginfo_ctype_alnum, 0)
|
||||
|
||||
@@ -33,24 +33,6 @@ extern zend_module_entry ctype_module_entry;
|
||||
#define PHP_CTYPE_API
|
||||
#endif
|
||||
|
||||
static PHP_MINIT_FUNCTION(ctype);
|
||||
static PHP_MSHUTDOWN_FUNCTION(ctype);
|
||||
static PHP_RINIT_FUNCTION(ctype);
|
||||
static PHP_RSHUTDOWN_FUNCTION(ctype);
|
||||
static PHP_MINFO_FUNCTION(ctype);
|
||||
|
||||
static PHP_FUNCTION(ctype_alnum);
|
||||
static PHP_FUNCTION(ctype_alpha);
|
||||
static PHP_FUNCTION(ctype_cntrl);
|
||||
static PHP_FUNCTION(ctype_digit);
|
||||
static PHP_FUNCTION(ctype_lower);
|
||||
static PHP_FUNCTION(ctype_graph);
|
||||
static PHP_FUNCTION(ctype_print);
|
||||
static PHP_FUNCTION(ctype_punct);
|
||||
static PHP_FUNCTION(ctype_space);
|
||||
static PHP_FUNCTION(ctype_upper);
|
||||
static PHP_FUNCTION(ctype_xdigit);
|
||||
|
||||
/*
|
||||
Declare any global variables you may need between the BEGIN
|
||||
and END macros here:
|
||||
|
||||
@@ -23,28 +23,6 @@
|
||||
#if HAVE_PSPELL
|
||||
extern zend_module_entry pspell_module_entry;
|
||||
#define pspell_module_ptr &pspell_module_entry
|
||||
|
||||
static PHP_MINIT_FUNCTION(pspell);
|
||||
static PHP_MINFO_FUNCTION(pspell);
|
||||
static PHP_FUNCTION(pspell_new);
|
||||
static PHP_FUNCTION(pspell_new_personal);
|
||||
static PHP_FUNCTION(pspell_new_config);
|
||||
static PHP_FUNCTION(pspell_check);
|
||||
static PHP_FUNCTION(pspell_suggest);
|
||||
static PHP_FUNCTION(pspell_store_replacement);
|
||||
static PHP_FUNCTION(pspell_add_to_personal);
|
||||
static PHP_FUNCTION(pspell_add_to_session);
|
||||
static PHP_FUNCTION(pspell_clear_session);
|
||||
static PHP_FUNCTION(pspell_save_wordlist);
|
||||
static PHP_FUNCTION(pspell_config_create);
|
||||
static PHP_FUNCTION(pspell_config_runtogether);
|
||||
static PHP_FUNCTION(pspell_config_mode);
|
||||
static PHP_FUNCTION(pspell_config_ignore);
|
||||
static PHP_FUNCTION(pspell_config_personal);
|
||||
static PHP_FUNCTION(pspell_config_dict_dir);
|
||||
static PHP_FUNCTION(pspell_config_data_dir);
|
||||
static PHP_FUNCTION(pspell_config_repl);
|
||||
static PHP_FUNCTION(pspell_config_save_repl);
|
||||
#else
|
||||
#define pspell_module_ptr NULL
|
||||
#endif
|
||||
|
||||
@@ -50,6 +50,28 @@
|
||||
*/
|
||||
#define PSPELL_LARGEST_WORD 3
|
||||
|
||||
static PHP_MINIT_FUNCTION(pspell);
|
||||
static PHP_MINFO_FUNCTION(pspell);
|
||||
static PHP_FUNCTION(pspell_new);
|
||||
static PHP_FUNCTION(pspell_new_personal);
|
||||
static PHP_FUNCTION(pspell_new_config);
|
||||
static PHP_FUNCTION(pspell_check);
|
||||
static PHP_FUNCTION(pspell_suggest);
|
||||
static PHP_FUNCTION(pspell_store_replacement);
|
||||
static PHP_FUNCTION(pspell_add_to_personal);
|
||||
static PHP_FUNCTION(pspell_add_to_session);
|
||||
static PHP_FUNCTION(pspell_clear_session);
|
||||
static PHP_FUNCTION(pspell_save_wordlist);
|
||||
static PHP_FUNCTION(pspell_config_create);
|
||||
static PHP_FUNCTION(pspell_config_runtogether);
|
||||
static PHP_FUNCTION(pspell_config_mode);
|
||||
static PHP_FUNCTION(pspell_config_ignore);
|
||||
static PHP_FUNCTION(pspell_config_personal);
|
||||
static PHP_FUNCTION(pspell_config_dict_dir);
|
||||
static PHP_FUNCTION(pspell_config_data_dir);
|
||||
static PHP_FUNCTION(pspell_config_repl);
|
||||
static PHP_FUNCTION(pspell_config_save_repl);
|
||||
|
||||
/* {{{ pspell_functions[]
|
||||
*/
|
||||
zend_function_entry pspell_functions[] = {
|
||||
|
||||
Reference in New Issue
Block a user