Created
October 12, 2017 16:22
-
-
Save cmb69/aa2e5adfc3a08daf16566165d237fba6 to your computer and use it in GitHub Desktop.
enchant-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ext/enchant/enchant.c | 8 ++++---- | |
1 file changed, 4 insertions(+), 4 deletions(-) | |
diff --git a/ext/enchant/enchant.c b/ext/enchant/enchant.c | |
index 77f6840161..b00697a858 100644 | |
--- a/ext/enchant/enchant.c | |
+++ b/ext/enchant/enchant.c | |
@@ -737,7 +737,7 @@ PHP_FUNCTION(enchant_dict_quick_check) | |
for (i = 0; i < n_sugg; i++) { | |
add_next_index_string(sugg, suggs[i]); | |
} | |
- enchant_dict_free_suggestions(pdict->pdict, suggs); | |
+ //enchant_dict_free_suggestions(pdict->pdict, suggs); | |
} | |
@@ -794,7 +794,7 @@ PHP_FUNCTION(enchant_dict_suggest) | |
add_next_index_string(return_value, suggs[i]); | |
} | |
- enchant_dict_free_suggestions(pdict->pdict, suggs); | |
+ //enchant_dict_free_suggestions(pdict->pdict, suggs); | |
} | |
} | |
/* }}} */ | |
@@ -814,7 +814,7 @@ PHP_FUNCTION(enchant_dict_add_to_personal) | |
PHP_ENCHANT_GET_DICT; | |
- enchant_dict_add_to_personal(pdict->pdict, word, wordlen); | |
+ enchant_dict_add(pdict->pdict, word, wordlen); | |
} | |
/* }}} */ | |
@@ -852,7 +852,7 @@ PHP_FUNCTION(enchant_dict_is_in_session) | |
PHP_ENCHANT_GET_DICT; | |
- RETURN_BOOL(enchant_dict_is_in_session(pdict->pdict, word, wordlen)); | |
+ RETURN_BOOL(enchant_dict_is_added(pdict->pdict, word, wordlen)); | |
} | |
/* }}} */ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment