Skip to content

Commit

Permalink
Correct argument names of XS preparse()
Browse files Browse the repository at this point in the history
preparse C function had prototype:

SV * preparse(SV *dbh, const char *statement, IV ps_return, IV ps_accept, void *foo);

But XS function had a ps_return and ps_accept argument names swapped:

SV *
preparse(dbh, statement, ps_accept, ps_return, foo=Nullch)
    SV *        dbh

This patch corrects the discrepancy.
  • Loading branch information
ppisar committed Jul 25, 2019
1 parent a9d94f6 commit ba16b25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DBI.xs
Original file line number Diff line number Diff line change
Expand Up @@ -5055,11 +5055,11 @@ connected(...)


SV *
preparse(dbh, statement, ps_accept, ps_return, foo=Nullch)
preparse(dbh, statement, ps_return, ps_accept, foo=Nullch)
SV * dbh
char * statement
IV ps_accept
IV ps_return
IV ps_accept
void *foo


Expand Down

0 comments on commit ba16b25

Please # to comment.