diff options
author | Nicholas Clark <nick@ccl4.org> | 2012-08-13 13:38:03 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2012-08-14 10:12:58 +0200 |
commit | c0810f8ef849bf940e296c00ef5a0c1bd77f9c62 (patch) | |
tree | b40d3b48df32447170c20e62a164fba876592210 /cygwin | |
parent | 43c6d00448d6f91249aa89dd4a28e3d8a17a491f (diff) | |
download | perl-c0810f8ef849bf940e296c00ef5a0c1bd77f9c62.tar.gz |
Use ALIAS to provide XS::APItest::newCONSTSUB and newCONSTSUB_flags
Previously both C routines were wrapped with newCONSTSUB_type, which used a
"type" parameter to determine which C code to call. Use an ALIAS to bind the
code to two names, and eliminate the "type" parameter.
This makes the test code clearer. It's not perfect, as the XS wrapper
XS::APItest::newCONSTSUB has a flags parameter whereas the underlying C code
does not, but fixing this would require considerably more XS hackery.
Diffstat (limited to 'cygwin')
0 files changed, 0 insertions, 0 deletions