diff options
author | Nuno Lopes <nlopess@php.net> | 2006-08-14 14:53:23 +0000 |
---|---|---|
committer | Nuno Lopes <nlopess@php.net> | 2006-08-14 14:53:23 +0000 |
commit | 615a15d5fa22b467af045702e19cfa9870a2e160 (patch) | |
tree | 03346f1dfa1ae05aa3b2b1be6e818b95f327db48 /ext/pspell | |
parent | c62d5fd1151a32fdb8cc6ae5fb66d83b10474977 (diff) | |
download | php-git-615a15d5fa22b467af045702e19cfa9870a2e160.tar.gz |
a few more static keywording
Diffstat (limited to 'ext/pspell')
-rw-r--r-- | ext/pspell/php_pspell.h | 42 | ||||
-rw-r--r-- | ext/pspell/pspell.c | 42 |
2 files changed, 42 insertions, 42 deletions
diff --git a/ext/pspell/php_pspell.h b/ext/pspell/php_pspell.h index 772d569ed6..5fb8447bbe 100644 --- a/ext/pspell/php_pspell.h +++ b/ext/pspell/php_pspell.h @@ -24,27 +24,27 @@ extern zend_module_entry pspell_module_entry; #define pspell_module_ptr &pspell_module_entry -PHP_MINIT_FUNCTION(pspell); -PHP_MINFO_FUNCTION(pspell); -PHP_FUNCTION(pspell_new); -PHP_FUNCTION(pspell_new_personal); -PHP_FUNCTION(pspell_new_config); -PHP_FUNCTION(pspell_check); -PHP_FUNCTION(pspell_suggest); -PHP_FUNCTION(pspell_store_replacement); -PHP_FUNCTION(pspell_add_to_personal); -PHP_FUNCTION(pspell_add_to_session); -PHP_FUNCTION(pspell_clear_session); -PHP_FUNCTION(pspell_save_wordlist); -PHP_FUNCTION(pspell_config_create); -PHP_FUNCTION(pspell_config_runtogether); -PHP_FUNCTION(pspell_config_mode); -PHP_FUNCTION(pspell_config_ignore); -PHP_FUNCTION(pspell_config_personal); -PHP_FUNCTION(pspell_config_dict_dir); -PHP_FUNCTION(pspell_config_data_dir); -PHP_FUNCTION(pspell_config_repl); -PHP_FUNCTION(pspell_config_save_repl); +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 diff --git a/ext/pspell/pspell.c b/ext/pspell/pspell.c index 8936527298..a0ddad4034 100644 --- a/ext/pspell/pspell.c +++ b/ext/pspell/pspell.c @@ -119,7 +119,7 @@ static void php_pspell_close_config(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ PHP_MINIT_FUNCTION */ -PHP_MINIT_FUNCTION(pspell) +static PHP_MINIT_FUNCTION(pspell) { REGISTER_LONG_CONSTANT("PSPELL_FAST", PSPELL_FAST, CONST_PERSISTENT | CONST_CS); REGISTER_LONG_CONSTANT("PSPELL_NORMAL", PSPELL_NORMAL, CONST_PERSISTENT | CONST_CS); @@ -133,7 +133,7 @@ PHP_MINIT_FUNCTION(pspell) /* {{{ proto int pspell_new(string language [, string spelling [, string jargon [, string encoding [, int mode]]]]) Load a dictionary */ -PHP_FUNCTION(pspell_new) +static PHP_FUNCTION(pspell_new) { zval **language,**spelling,**jargon,**encoding,**pmode; long mode = 0L, speed = 0L; @@ -236,7 +236,7 @@ PHP_FUNCTION(pspell_new) /* {{{ proto int pspell_new_personal(string personal, string language [, string spelling [, string jargon [, string encoding [, int mode]]]]) Load a dictionary with a personal wordlist*/ -PHP_FUNCTION(pspell_new_personal) +static PHP_FUNCTION(pspell_new_personal) { zval **personal, **language,**spelling,**jargon,**encoding,**pmode; long mode = 0L, speed = 0L; @@ -352,7 +352,7 @@ PHP_FUNCTION(pspell_new_personal) /* {{{ proto int pspell_new_config(int config) Load a dictionary based on the given config */ -PHP_FUNCTION(pspell_new_config) +static PHP_FUNCTION(pspell_new_config) { int type; zval **conf; @@ -385,7 +385,7 @@ PHP_FUNCTION(pspell_new_config) /* {{{ proto bool pspell_check(int pspell, string word) Returns true if word is valid */ -PHP_FUNCTION(pspell_check) +static PHP_FUNCTION(pspell_check) { int type; zval **scin,**word; @@ -411,7 +411,7 @@ PHP_FUNCTION(pspell_check) /* {{{ proto array pspell_suggest(int pspell, string word) Returns array of suggestions */ -PHP_FUNCTION(pspell_suggest) +static PHP_FUNCTION(pspell_suggest) { zval **scin, **word; int argc; @@ -446,7 +446,7 @@ PHP_FUNCTION(pspell_suggest) /* {{{ proto bool pspell_store_replacement(int pspell, string misspell, string correct) Notify the dictionary of a user-selected replacement */ -PHP_FUNCTION(pspell_store_replacement) +static PHP_FUNCTION(pspell_store_replacement) { int type; zval **scin,**miss,**corr; @@ -474,7 +474,7 @@ PHP_FUNCTION(pspell_store_replacement) /* {{{ proto bool pspell_add_to_personal(int pspell, string word) Adds a word to a personal list */ -PHP_FUNCTION(pspell_add_to_personal) +static PHP_FUNCTION(pspell_add_to_personal) { int type; zval **scin,**word; @@ -506,7 +506,7 @@ PHP_FUNCTION(pspell_add_to_personal) /* {{{ proto bool pspell_add_to_session(int pspell, string word) Adds a word to the current session */ -PHP_FUNCTION(pspell_add_to_session) +static PHP_FUNCTION(pspell_add_to_session) { int type; zval **scin,**word; @@ -538,7 +538,7 @@ PHP_FUNCTION(pspell_add_to_session) /* {{{ proto bool pspell_clear_session(int pspell) Clears the current session */ -PHP_FUNCTION(pspell_clear_session) +static PHP_FUNCTION(pspell_clear_session) { int type; zval **scin; @@ -564,7 +564,7 @@ PHP_FUNCTION(pspell_clear_session) /* {{{ proto bool pspell_save_wordlist(int pspell) Saves the current (personal) wordlist */ -PHP_FUNCTION(pspell_save_wordlist) +static PHP_FUNCTION(pspell_save_wordlist) { int type; zval **scin; @@ -592,7 +592,7 @@ PHP_FUNCTION(pspell_save_wordlist) /* {{{ proto int pspell_config_create(string language [, string spelling [, string jargon [, string encoding]]]) Create a new config to be used later to create a manager */ -PHP_FUNCTION(pspell_config_create) +static PHP_FUNCTION(pspell_config_create) { zval **language,**spelling,**jargon,**encoding; int argc; @@ -667,7 +667,7 @@ PHP_FUNCTION(pspell_config_create) /* {{{ proto bool pspell_config_runtogether(int conf, bool runtogether) Consider run-together words as valid components */ -PHP_FUNCTION(pspell_config_runtogether) +static PHP_FUNCTION(pspell_config_runtogether) { int type; zval **conf, **runtogether; @@ -691,7 +691,7 @@ PHP_FUNCTION(pspell_config_runtogether) /* {{{ proto bool pspell_config_mode(int conf, long mode) Select mode for config (PSPELL_FAST, PSPELL_NORMAL or PSPELL_BAD_SPELLERS) */ -PHP_FUNCTION(pspell_config_mode) +static PHP_FUNCTION(pspell_config_mode) { int type; zval **conf, **mode; @@ -723,7 +723,7 @@ PHP_FUNCTION(pspell_config_mode) /* {{{ proto bool pspell_config_ignore(int conf, int ignore) Ignore words <= n chars */ -PHP_FUNCTION(pspell_config_ignore) +static PHP_FUNCTION(pspell_config_ignore) { int type; zval **conf, **pignore; @@ -797,7 +797,7 @@ static void pspell_config_path(INTERNAL_FUNCTION_PARAMETERS, char *option) /* {{{ proto bool pspell_config_personal(int conf, string personal) Use a personal dictionary for this config */ -PHP_FUNCTION(pspell_config_personal) +static PHP_FUNCTION(pspell_config_personal) { pspell_config_path(INTERNAL_FUNCTION_PARAM_PASSTHRU, "personal"); } @@ -805,7 +805,7 @@ PHP_FUNCTION(pspell_config_personal) /* {{{ proto bool pspell_config_dict_dir(int conf, string directory) location of the main word list */ -PHP_FUNCTION(pspell_config_dict_dir) +static PHP_FUNCTION(pspell_config_dict_dir) { pspell_config_path(INTERNAL_FUNCTION_PARAM_PASSTHRU, "dict-dir"); } @@ -813,7 +813,7 @@ PHP_FUNCTION(pspell_config_dict_dir) /* {{{ proto bool pspell_config_data_dir(int conf, string directory) location of language data files */ -PHP_FUNCTION(pspell_config_data_dir) +static PHP_FUNCTION(pspell_config_data_dir) { pspell_config_path(INTERNAL_FUNCTION_PARAM_PASSTHRU, "data-dir"); } @@ -821,7 +821,7 @@ PHP_FUNCTION(pspell_config_data_dir) /* {{{ proto bool pspell_config_repl(int conf, string repl) Use a personal dictionary with replacement pairs for this config */ -PHP_FUNCTION(pspell_config_repl) +static PHP_FUNCTION(pspell_config_repl) { int type; zval **conf, **repl; @@ -856,7 +856,7 @@ PHP_FUNCTION(pspell_config_repl) /* {{{ proto bool pspell_config_save_repl(int conf, bool save) Save replacement pairs when personal list is saved for this config */ -PHP_FUNCTION(pspell_config_save_repl) +static PHP_FUNCTION(pspell_config_save_repl) { int type; zval **conf, **save; @@ -880,7 +880,7 @@ PHP_FUNCTION(pspell_config_save_repl) /* {{{ PHP_MINFO_FUNCTION */ -PHP_MINFO_FUNCTION(pspell) +static PHP_MINFO_FUNCTION(pspell) { php_info_print_table_start(); php_info_print_table_row(2, "PSpell Support", "enabled"); |