Skip to content

Commit

Permalink
Save spec_opt for each function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Zmievski committed Aug 12, 2001
1 parent 75da34e commit 1388a3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/skeleton/create_stubs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ BEGIN {
maxargs[num_funcs] = args_max
minargs[num_funcs] = args_min
specs[num_funcs] = spec_str
spec_opts[num_funcs] = spec_opt

num_funcs++
}
Expand Down Expand Up @@ -178,7 +179,7 @@ END {
" <funcdef>" types[i] " <function>" funcs[i] "</function></funcdef>\n"

fetchargs = "\tif (zend_parse_parameters("
if (spec_opt) {
if (spec_opts[i]) {
ints = ints "\tint argc = ZEND_NUM_ARGS();\n"
fetchargs = fetchargs "argc"
} else
Expand Down

0 comments on commit 1388a3a

Please sign in to comment.