@@ -81,23 +81,23 @@ PHP_MINIT_FUNCTION(aspell)
81
81
Load a dictionary */
82
82
PHP_FUNCTION (aspell_new )
83
83
{
84
- pval * * master ,* * personal ;
84
+ pval * * master , * * personal ;
85
85
int argc ;
86
86
aspell * sc ;
87
87
int ind ;
88
88
89
89
argc = ZEND_NUM_ARGS ();
90
- if (argc < 1 || argc > 2 || zend_get_parameters_ex (argc ,& master ,& personal ) == FAILURE ) {
90
+ if (argc < 1 || argc > 2 || zend_get_parameters_ex (argc , & master , & personal ) == FAILURE ) {
91
91
WRONG_PARAM_COUNT ;
92
92
}
93
93
convert_to_string_ex (master );
94
94
if (argc == 2 )
95
95
{
96
96
convert_to_string_ex (personal ) ;
97
- sc = aspell_new ((* master )-> value .str .val ,(* personal )-> value .str .val );
97
+ sc = aspell_new ((* master )-> value .str .val , (* personal )-> value .str .val );
98
98
}
99
99
else
100
- sc = aspell_new ((* master )-> value .str .val ,"" );
100
+ sc = aspell_new ((* master )-> value .str .val , "" );
101
101
102
102
ind = zend_list_insert (sc , le_aspell );
103
103
RETURN_LONG (ind );
@@ -111,21 +111,21 @@ PHP_FUNCTION(aspell_suggest)
111
111
pval * * scin , * * word ;
112
112
int argc ;
113
113
aspell * sc ;
114
- int ind ,type ;
114
+ int ind , type ;
115
115
aspellSuggestions * sug ;
116
116
size_t i ;
117
117
118
118
119
119
argc = ZEND_NUM_ARGS ();
120
- if (argc != 2 || zend_get_parameters_ex (argc , & scin ,& word ) == FAILURE ) {
120
+ if (argc != 2 || zend_get_parameters_ex (argc , & scin , & word ) == FAILURE ) {
121
121
WRONG_PARAM_COUNT ;
122
122
}
123
123
convert_to_long_ex (scin );
124
124
convert_to_string_ex (word );
125
125
sc = (aspell * )zend_list_find ((* scin )-> value .lval , & type );
126
126
if (!sc )
127
127
{
128
- php_error (E_WARNING , "%d is not an ASPELL result index" ,(* scin )-> value .lval );
128
+ php_error (E_WARNING , "%d is not an ASPELL result index" , (* scin )-> value .lval );
129
129
RETURN_FALSE ;
130
130
}
131
131
@@ -135,7 +135,7 @@ PHP_FUNCTION(aspell_suggest)
135
135
136
136
sug = aspell_suggest (sc , (* word )-> value .str .val );
137
137
for (i = 0 ; i != sug -> size ; ++ i ) {
138
- add_next_index_string (return_value ,(char * )sug -> data [i ],1 );
138
+ add_next_index_string (return_value , (char * )sug -> data [i ], 1 );
139
139
}
140
140
aspell_free_suggestions (sug );
141
141
}
@@ -146,20 +146,20 @@ PHP_FUNCTION(aspell_suggest)
146
146
PHP_FUNCTION (aspell_check )
147
147
{
148
148
int type ;
149
- pval * * scin ,* * word ;
149
+ pval * * scin , * * word ;
150
150
aspell * sc ;
151
151
152
152
int argc ;
153
153
argc = ZEND_NUM_ARGS ();
154
- if (argc != 2 || zend_get_parameters_ex (argc , & scin ,& word ) == FAILURE ) {
154
+ if (argc != 2 || zend_get_parameters_ex (argc , & scin , & word ) == FAILURE ) {
155
155
WRONG_PARAM_COUNT ;
156
156
}
157
157
convert_to_long_ex (scin );
158
158
convert_to_string_ex (word );
159
159
sc = (aspell * ) zend_list_find ((* scin )-> value .lval , & type );
160
160
if (!sc )
161
161
{
162
- php_error (E_WARNING , "%d is not an ASPELL result index" ,(* scin )-> value .lval );
162
+ php_error (E_WARNING , "%d is not an ASPELL result index" , (* scin )-> value .lval );
163
163
RETURN_FALSE ;
164
164
}
165
165
if (aspell_check (sc , (* word )-> value .str .val ))
@@ -177,21 +177,21 @@ PHP_FUNCTION(aspell_check)
177
177
Return if word is valid, ignoring case or trying to trim it in any way */
178
178
PHP_FUNCTION (aspell_check_raw )
179
179
{
180
- pval * * scin ,* * word ;
180
+ pval * * scin , * * word ;
181
181
int type ;
182
182
int argc ;
183
183
aspell * sc ;
184
184
185
185
argc = ZEND_NUM_ARGS ();
186
- if (argc != 2 || zend_get_parameters_ex (argc , & scin ,& word ) == FAILURE ) {
186
+ if (argc != 2 || zend_get_parameters_ex (argc , & scin , & word ) == FAILURE ) {
187
187
WRONG_PARAM_COUNT ;
188
188
}
189
189
convert_to_long_ex (scin );
190
190
convert_to_string_ex (word );
191
191
sc = (aspell * )zend_list_find ((* scin )-> value .lval , & type );
192
192
if (!sc )
193
193
{
194
- php_error (E_WARNING , "%d is not an ASPELL result index" ,(* scin )-> value .lval );
194
+ php_error (E_WARNING , "%d is not an ASPELL result index" , (* scin )-> value .lval );
195
195
RETURN_FALSE ;
196
196
}
197
197
if (aspell_check_raw (sc , (* word )-> value .str .val ))
0 commit comments