]> granicus.if.org Git - php/commitdiff
- fix build
authorPierre Joye <pajoye@php.net>
Tue, 13 Jan 2009 13:30:04 +0000 (13:30 +0000)
committerPierre Joye <pajoye@php.net>
Tue, 13 Jan 2009 13:30:04 +0000 (13:30 +0000)
ext/enchant/enchant.c

index f47a2b34e36f7255c097e6e9034b01b74c5febe3..1cf68ad5754a6da3dbc4f704fff143fbc8e0691a 100755 (executable)
@@ -22,6 +22,8 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+#include <glib/glist.h>
+#include <glib/ghash.h>
 #include <enchant.h>
 #include "php.h"
 #include "php_ini.h"
@@ -83,7 +85,7 @@ function_entry enchant_functions[] = {
        PHP_FE(enchant_dict_store_replacement, NULL)
        PHP_FE(enchant_dict_get_error, NULL)
        PHP_FE(enchant_dict_describe, NULL)
-       PHP_FE(enchant_dict_quick_check, third_arg_force_ref)
+       PHP_FE(enchant_dict_quick_check, NULL)
 
        {NULL, NULL, NULL}      /* Must be the last line in enchant_functions[] */
 };
@@ -569,13 +571,13 @@ PHP_FUNCTION(enchant_dict_quick_check)
        PHP_ENCHANT_GET_DICT;
 
        if (enchant_dict_check(pdict->pdict, word, wordlen) > 0) {
+               int n_sugg;
+               char **suggs;
+
                if (!sugg && ZEND_NUM_ARGS() == 2) {
                        RETURN_FALSE;
                }
 
-               int n_sugg;
-               char **suggs;
-
                array_init(sugg);
 
                suggs = enchant_dict_suggest(pdict->pdict, word, wordlen, (size_t *) &n_sugg);