summaryrefslogtreecommitdiff
path: root/ext/pspell
diff options
context:
space:
mode:
authorEdin Kadribasic <edink@php.net>2004-05-18 12:32:05 +0000
committerEdin Kadribasic <edink@php.net>2004-05-18 12:32:05 +0000
commitb1efed9ddeb7e97a004ba7f77975428504f01dae (patch)
tree79b1d45deb3bd24c5d0be741d31c2b07cc798bbe /ext/pspell
parente489d93abcffc58d8a0bc48380e5426666bf6eac (diff)
downloadphp-git-b1efed9ddeb7e97a004ba7f77975428504f01dae.tar.gz
Move declarations to the begining of function.
This allows it to actually compile on windows.
Diffstat (limited to 'ext/pspell')
-rw-r--r--ext/pspell/pspell.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/pspell/pspell.c b/ext/pspell/pspell.c
index a0b45771d2..4b15e25bd2 100644
--- a/ext/pspell/pspell.c
+++ b/ext/pspell/pspell.c
@@ -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