mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Move declarations to the begining of function.
This allows it to actually compile on windows.
This commit is contained in:
parent
e489d93abc
commit
b1efed9dde
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user