diff options
author | David Malcolm <dmalcolm@redhat.com> | 2009-11-17 14:47:25 -0500 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2009-11-17 14:47:25 -0500 |
commit | 28a01c0fd593df0f64d06b4205c5a93b8068ea51 (patch) | |
tree | 36eddd2ca00184c26d86af817f5ab6adceba69f5 /buggy.c | |
parent | 254f88a995334acfe04b5774a6be048a365cdb86 (diff) | |
download | check-cpython-28a01c0fd593df0f64d06b4205c5a93b8068ea51.tar.gz check-cpython-28a01c0fd593df0f64d06b4205c5a93b8068ea51.tar.xz check-cpython-28a01c0fd593df0f64d06b4205c5a93b8068ea51.zip |
Generalize variadic function handling
Avoid having to manually write a rule for each number of variable arguments to PyArg_ParseTuple etc by capturing each argument in turn (with lists of prior and subsequent expressions). The downside is that the rule is invoked once per argument at each callsite, with knowledge of only one type, rather than invoking it once per callsite with knowledge of all arguments.
Thanks to Julia Lawall and Nicolas Palix
Diffstat (limited to 'buggy.c')
0 files changed, 0 insertions, 0 deletions