Some test portability fixes again + minor changes
This commit is contained in:
parent
3fd424c6e3
commit
f09a103c53
7 changed files with 33 additions and 28 deletions
|
|
@ -488,7 +488,7 @@ static void fupg_refresh_types(pTHX_ fupg_conn *c) {
|
|||
t->send = fupg_send_text;
|
||||
t->recv = fupg_recv_text;
|
||||
} else {
|
||||
/* TODO: (multi)ranges, custom overrides, by-name lookup for dynamic-oid types */
|
||||
/* TODO: (multi)ranges, by-name lookup for dynamic-oid types */
|
||||
const fupg_type *builtin = fupg_builtin_byoid(t->oid);
|
||||
if (builtin) {
|
||||
t->send = builtin->send;
|
||||
|
|
@ -571,11 +571,8 @@ static void fupg_tio_setup(pTHX_ fupg_conn *conn, fupg_tio *tio, int flags, Oid
|
|||
return;
|
||||
}
|
||||
|
||||
/* Minor wart? When the type is overridden by oid, the name & oid in error
|
||||
* messages will be that of the builtin type. When overridden by name, the
|
||||
* name will be correct but the oid is still of the builtin type.
|
||||
* Some send/recv functions have slightly different behavior based on oid,
|
||||
* in those cases this behavior is useful. */
|
||||
/* Minor wart? When the type is overridden by oid, its name in error
|
||||
* messages will be that of the builtin type instead of the actual type. */
|
||||
|
||||
SV *cb = NULL;
|
||||
const fupg_type *e, *t;
|
||||
|
|
|
|||
|
|
@ -456,8 +456,8 @@ RECVFN(perlcb) {
|
|||
call_sv(ctx->cb, G_SCALAR);
|
||||
SPAGAIN;
|
||||
|
||||
SV *ret = newSV(0);
|
||||
sv_setsv(ret, POPs);
|
||||
SV *ret = POPs;
|
||||
SvREFCNT_inc(ret);
|
||||
PUTBACK;
|
||||
|
||||
FREETMPS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue