diff options
author | Anatol Belski <ab@php.net> | 2014-08-27 15:31:48 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-08-27 20:49:31 +0200 |
commit | 3234480827b27ff5d3469a732167afd289632a96 (patch) | |
tree | 485ed0c4f5d35107a65ab193f3bc7c27806fbfca /ext/pspell | |
parent | ee552b628c2d9f9455ac85d7791b4b4e8e4ddeb2 (diff) | |
download | php-git-3234480827b27ff5d3469a732167afd289632a96.tar.gz |
first show to make 's' work with size_t
Diffstat (limited to 'ext/pspell')
-rw-r--r-- | ext/pspell/pspell.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/pspell/pspell.c b/ext/pspell/pspell.c index c7994ea73f..bf01f28df6 100644 --- a/ext/pspell/pspell.c +++ b/ext/pspell/pspell.c @@ -264,7 +264,7 @@ static PHP_MINIT_FUNCTION(pspell) static PHP_FUNCTION(pspell_new) { char *language, *spelling = NULL, *jargon = NULL, *encoding = NULL; - int language_len, spelling_len = 0, jargon_len = 0, encoding_len = 0; + size_t language_len, spelling_len = 0, jargon_len = 0, encoding_len = 0; zend_long mode = Z_L(0), speed = Z_L(0); int argc = ZEND_NUM_ARGS(); zval *ind; @@ -361,7 +361,7 @@ static PHP_FUNCTION(pspell_new) static PHP_FUNCTION(pspell_new_personal) { char *personal, *language, *spelling = NULL, *jargon = NULL, *encoding = NULL; - int personal_len, language_len, spelling_len = 0, jargon_len = 0, encoding_len = 0; + size_t personal_len, language_len, spelling_len = 0, jargon_len = 0, encoding_len = 0; zend_long mode = Z_L(0), speed = Z_L(0); int argc = ZEND_NUM_ARGS(); zval *ind; @@ -495,7 +495,7 @@ static PHP_FUNCTION(pspell_new_config) Returns true if word is valid */ static PHP_FUNCTION(pspell_check) { - int word_len; + size_t word_len; zend_long scin; char *word; PspellManager *manager; @@ -520,7 +520,7 @@ static PHP_FUNCTION(pspell_suggest) { zend_long scin; char *word; - int word_len; + size_t word_len; PspellManager *manager; const PspellWordList *wl; const char *sug; @@ -551,7 +551,7 @@ static PHP_FUNCTION(pspell_suggest) Notify the dictionary of a user-selected replacement */ static PHP_FUNCTION(pspell_store_replacement) { - int miss_len, corr_len; + size_t miss_len, corr_len; zend_long scin; char *miss, *corr; PspellManager *manager; @@ -576,7 +576,7 @@ static PHP_FUNCTION(pspell_store_replacement) Adds a word to a personal list */ static PHP_FUNCTION(pspell_add_to_personal) { - int word_len; + size_t word_len; zend_long scin; char *word; PspellManager *manager; @@ -606,7 +606,7 @@ static PHP_FUNCTION(pspell_add_to_personal) Adds a word to the current session */ static PHP_FUNCTION(pspell_add_to_session) { - int word_len; + size_t word_len; zend_long scin; char *word; PspellManager *manager; @@ -685,7 +685,7 @@ static PHP_FUNCTION(pspell_save_wordlist) static PHP_FUNCTION(pspell_config_create) { char *language, *spelling = NULL, *jargon = NULL, *encoding = NULL; - int language_len, spelling_len = 0, jargon_len = 0, encoding_len = 0; + size_t language_len, spelling_len = 0, jargon_len = 0, encoding_len = 0; zval *ind; PspellConfig *config; @@ -819,7 +819,7 @@ static void pspell_config_path(INTERNAL_FUNCTION_PARAMETERS, char *option) { zend_long conf; char *value; - int value_len; + size_t value_len; PspellConfig *config; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lp", &conf, &value, &value_len) == FAILURE) { @@ -867,7 +867,7 @@ static PHP_FUNCTION(pspell_config_repl) { zend_long conf; char *repl; - int repl_len; + size_t repl_len; PspellConfig *config; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lp", &conf, &repl, &repl_len) == FAILURE) { |