]> granicus.if.org Git - php/commitdiff
Move declarations to the begining of function.
authorEdin Kadribasic <edink@php.net>
Tue, 18 May 2004 12:32:05 +0000 (12:32 +0000)
committerEdin Kadribasic <edink@php.net>
Tue, 18 May 2004 12:32:05 +0000 (12:32 +0000)
This allows it to actually compile on windows.

ext/pspell/pspell.c

index a0b45771d29974381e97f2bdd02a5306b23a12f2..4b15e25bd2a237de53d25f4485f9140eb3076019 100644 (file)
@@ -623,20 +623,20 @@ PHP_FUNCTION(pspell_config_create)
        int ind;
 
        PspellConfig *config;
+
+#ifdef PHP_WIN32
+       TCHAR aspell_dir[200];
+       TCHAR data_dir[220];
+       TCHAR dict_dir[220];
+       HKEY hkey;
+       DWORD dwType,dwLen;
+#endif
        
        argc = ZEND_NUM_ARGS();
        if (argc < 1 || argc > 4 || zend_get_parameters_ex(argc,&language,&spelling,&jargon,&encoding) == FAILURE) {
                WRONG_PARAM_COUNT;
        }
 
-#ifdef PHP_WIN32
-        TCHAR aspell_dir[200];
-        TCHAR data_dir[220];
-        TCHAR dict_dir[220];
-        HKEY hkey;
-        DWORD dwType,dwLen;
-#endif
-
        config = new_pspell_config();
 
 #ifdef PHP_WIN32