]> granicus.if.org Git - php/commitdiff
Finish porting aspell - tested and works ok now
authorRasmus Lerdorf <rasmus@php.net>
Mon, 12 Jul 1999 19:18:07 +0000 (19:18 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Mon, 12 Jul 1999 19:18:07 +0000 (19:18 +0000)
MODULES_STATUS
ext/aspell/aspell.c
ext/aspell/config.h.stub
ext/aspell/config.m4
ext/aspell/php3_aspell.h
ext/ereg/regex/regex.h
regex/regex.h

index 49a677f8ce146c38954c36c4ec0dac2c9184cefd..61b2f3210c6db9b1b6d81ea04ae6524a2c087ef6 100644 (file)
@@ -8,3 +8,4 @@ DBA                                     Not yet ported
 mcrypt                         Working
 mhash                          Working
 dbase                          Working
+aspell              Working
index 0ed437294c59a4cb4adcf66ac90562d92ff2db66..fd37c2f431ec38576a213fb2a570f98bb892add3 100644 (file)
@@ -85,7 +85,6 @@ void php3_aspell_new(INTERNAL_FUNCTION_PARAMETERS)
        int argc;
        aspell *sc;
        int ind;
-       TLS_VARS;
        
        argc = ARG_COUNT(ht);
        if (argc < 1 || argc > 2 || getParameters(ht, argc, &master,&personal) == FAILURE) {
@@ -116,7 +115,6 @@ void php3_aspell_suggest(INTERNAL_FUNCTION_PARAMETERS)
        aspellSuggestions *sug;
        size_t i;
 
-       TLS_VARS;
        
        argc = ARG_COUNT(ht);
        if (argc != 2 || getParameters(ht, argc, &scin,&word) == FAILURE) {
@@ -150,8 +148,8 @@ void php3_aspell_check(INTERNAL_FUNCTION_PARAMETERS)
    int type;
    pval *scin,*word;
    aspell *sc;
+
    int argc;
-   TLS_VARS;
     argc = ARG_COUNT(ht);
     if (argc != 2 || getParameters(ht, argc, &scin,&word) == FAILURE) {
         WRONG_PARAM_COUNT;
@@ -183,7 +181,6 @@ void php3_aspell_check_raw(INTERNAL_FUNCTION_PARAMETERS)
   int type;
   int argc;
   aspell *sc;
-   TLS_VARS;
 
     argc = ARG_COUNT(ht);
     if (argc != 2 || getParameters(ht, argc, &scin,&word) == FAILURE) {
@@ -208,9 +205,8 @@ void php3_aspell_check_raw(INTERNAL_FUNCTION_PARAMETERS)
 }
 /* }}} */
 
-void php3_info_aspell(void)
+void php3_info_aspell(ZEND_MODULE_INFO_FUNC_ARGS)
 {
-       TLS_VARS;
        php3_printf("ASpell support enabled");
 
 }
index 8db1f1d3dc08c3b14f578698b4b3ccd84fb811dc..4be31d352aa18f21ff3033348c03fc0c19d66f33 100644 (file)
@@ -1,3 +1,4 @@
 /* Define if you want the ASPELL interface */
+#ifndef HAVE_ASPELL
 #define HAVE_ASPELL 0
-
+#endif
index 591c9ba50574a685aba184d6ccd6e8e47ddd7b44..bfec9c42234fe3d0c8ead8e618b4593b947b08db 100644 (file)
@@ -19,6 +19,7 @@ AC_ARG_WITH(aspell,
     fi
     AC_DEFINE(HAVE_ASPELL)
     AC_MSG_RESULT(yes)
+       PHP_EXTENSION(aspell)
   else
     AC_MSG_ERROR(no)
   fi
index 2282d0b453abe03bb14f4ba1a64c88a91621e752..e38907c03eb6ac9688c4cd17618f5d4ca9d702ba 100644 (file)
 #define _ASPELL_H
 #if HAVE_ASPELL
 extern php3_module_entry aspell_module_entry;
-#define php3_aspell_module_ptr &aspell_module_entry
+#define aspell_module_ptr &aspell_module_entry
 
 extern int php3_minit_aspell(INIT_FUNC_ARGS);
-extern void php3_info_aspell(void);
+extern void php3_info_aspell(ZEND_MODULE_INFO_FUNC_ARGS);
 extern void php3_aspell_close();
 void php3_aspell_new(INTERNAL_FUNCTION_PARAMETERS);
 void php3_aspell_check(INTERNAL_FUNCTION_PARAMETERS);
@@ -45,6 +45,9 @@ void php3_aspell_check_raw(INTERNAL_FUNCTION_PARAMETERS);
 void php3_aspell_suggest(INTERNAL_FUNCTION_PARAMETERS);
 
 #else
-#define php3_aspell_module_ptr NULL
+#define aspell_module_ptr NULL
 #endif
+
+#define phpext_aspell_ptr aspell_module_ptr
+
 #endif /* _ASPELL_H */
index 162b2b0a34de97271ddd055bb3ead2dc8a70abcf..5645eb6aa30f5ac56b00215c76e498bbf7245d77 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef _REGEX_H_
 #define        _REGEX_H_       /* never again */
-/* ========= begin header generated by ./mkh ========= */
+/* ========= begin header generated by ././mkh ========= */
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -75,5 +75,5 @@ API_EXPORT(void) regfree(regex_t *);
 #ifdef __cplusplus
 }
 #endif
-/* ========= end header generated by ./mkh ========= */
+/* ========= end header generated by ././mkh ========= */
 #endif
index 162b2b0a34de97271ddd055bb3ead2dc8a70abcf..5645eb6aa30f5ac56b00215c76e498bbf7245d77 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef _REGEX_H_
 #define        _REGEX_H_       /* never again */
-/* ========= begin header generated by ./mkh ========= */
+/* ========= begin header generated by ././mkh ========= */
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -75,5 +75,5 @@ API_EXPORT(void) regfree(regex_t *);
 #ifdef __cplusplus
 }
 #endif
-/* ========= end header generated by ./mkh ========= */
+/* ========= end header generated by ././mkh ========= */
 #endif