diff options
author | Zeev Suraski <zeev@php.net> | 2001-08-05 01:43:02 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-08-05 01:43:02 +0000 |
commit | 1159c84ab7849099d4a717cd05c2d920102040ed (patch) | |
tree | ed4e48bb27e2ce5de5972fc3a29c1d24c818467a /ext/pspell/pspell.c | |
parent | fcc035108f7b8d2e169c5a592227b3df84d0573e (diff) | |
download | php-git-1159c84ab7849099d4a717cd05c2d920102040ed.tar.gz |
- TSRMLS_FETCH work
- whitespace fixes
Diffstat (limited to 'ext/pspell/pspell.c')
-rw-r--r-- | ext/pspell/pspell.c | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/ext/pspell/pspell.c b/ext/pspell/pspell.c index fec700adb8..9d0d91593b 100644 --- a/ext/pspell/pspell.c +++ b/ext/pspell/pspell.c @@ -94,7 +94,8 @@ static void php_pspell_close_config(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ PHP_MINIT_FUNCTION */ -PHP_MINIT_FUNCTION(pspell){ +PHP_MINIT_FUNCTION(pspell) +{ REGISTER_MAIN_LONG_CONSTANT("PSPELL_FAST", PSPELL_FAST, CONST_PERSISTENT | CONST_CS); REGISTER_MAIN_LONG_CONSTANT("PSPELL_NORMAL", PSPELL_NORMAL, CONST_PERSISTENT | CONST_CS); REGISTER_MAIN_LONG_CONSTANT("PSPELL_BAD_SPELLERS", PSPELL_BAD_SPELLERS, CONST_PERSISTENT | CONST_CS); @@ -107,7 +108,8 @@ 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){ +PHP_FUNCTION(pspell_new) +{ zval **language,**spelling,**jargon,**encoding,**pmode; long mode = 0L, speed = 0L; int argc; @@ -183,7 +185,8 @@ 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){ +PHP_FUNCTION(pspell_new_personal) +{ zval **personal, **language,**spelling,**jargon,**encoding,**pmode; long mode = 0L, speed = 0L; int argc; @@ -265,7 +268,8 @@ 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){ +PHP_FUNCTION(pspell_new_config) +{ int type; zval **conf; int argc; @@ -297,7 +301,8 @@ PHP_FUNCTION(pspell_new_config){ /* {{{ proto int pspell_check(int pspell, string word) Returns true if word is valid */ -PHP_FUNCTION(pspell_check){ +PHP_FUNCTION(pspell_check) +{ int type; zval **scin,**word; PspellManager *manager; @@ -539,7 +544,8 @@ 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){ +PHP_FUNCTION(pspell_config_create) +{ zval **language,**spelling,**jargon,**encoding; int argc; int ind; @@ -587,7 +593,8 @@ PHP_FUNCTION(pspell_config_create){ /* {{{ proto int pspell_config_runtogether(int conf, bool runtogether) Consider run-together words as valid components */ -PHP_FUNCTION(pspell_config_runtogether){ +PHP_FUNCTION(pspell_config_runtogether) +{ int type; zval **sccin, **runtogether; int argc; @@ -615,7 +622,8 @@ PHP_FUNCTION(pspell_config_runtogether){ /* {{{ proto int pspell_config_mode(int conf, long mode) Select mode for config (PSPELL_FAST, PSPELL_NORMAL or PSPELL_BAD_SPELLERS) */ -PHP_FUNCTION(pspell_config_mode){ +PHP_FUNCTION(pspell_config_mode) +{ int type; zval **sccin, **mode; int argc; @@ -651,7 +659,8 @@ PHP_FUNCTION(pspell_config_mode){ /* {{{ proto int pspell_config_ignore(int conf, int ignore) Ignore words <= n chars */ -PHP_FUNCTION(pspell_config_ignore){ +PHP_FUNCTION(pspell_config_ignore) +{ int type; zval **sccin, **pignore; int argc; @@ -701,7 +710,8 @@ PHP_FUNCTION(pspell_config_ignore){ /* {{{ proto int pspell_config_personal(int conf, string personal) Use a personal dictionary for this config */ -PHP_FUNCTION(pspell_config_personal){ +PHP_FUNCTION(pspell_config_personal) +{ int type; zval **sccin, **personal; int argc; @@ -729,7 +739,8 @@ PHP_FUNCTION(pspell_config_personal){ /* {{{ proto int pspell_config_repl(int conf, string repl) Use a personal dictionary with replacement pairs for this config */ -PHP_FUNCTION(pspell_config_repl){ +PHP_FUNCTION(pspell_config_repl) +{ int type; zval **sccin, **repl; int argc; @@ -759,7 +770,8 @@ PHP_FUNCTION(pspell_config_repl){ /* {{{ proto int 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){ +PHP_FUNCTION(pspell_config_save_repl) +{ int type; zval **sccin, **save; int argc; |