Skip to content

Commit bc89af2

Browse files
committed
plperl: update ppport.h to Perl 5.34.0.
Also apply the changes suggested by running perl ppport.h --compat-version=5.8.0 And remove some no-longer-required NEED_foo declarations. Dagfinn Ilmari Mannsåker Back-patch of commit 05798c9 into all supported branches. At the time we thought this update was mostly cosmetic, but the lack of it has caused trouble, while the patch itself hasn't. Discussion: https://postgr.es/m/87y278s6iq.fsf@wibble.ilmari.org Discussion: https://postgr.es/m/20220131015130.shn6wr2fzuymerf6@alap3.anarazel.de
1 parent 4afb5ae commit bc89af2

File tree

3 files changed

+14726
-3875
lines changed

3 files changed

+14726
-3875
lines changed

src/pl/plperl/plperl.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,8 +2114,8 @@ plperl_create_sub(plperl_proc_desc *prodesc, const char *s, Oid fn_oid)
21142114
* errors properly. Perhaps it's because there's another level of eval
21152115
* inside mksafefunc?
21162116
*/
2117-
count = perl_call_pv("PostgreSQL::InServer::mkfunc",
2118-
G_SCALAR | G_EVAL | G_KEEPERR);
2117+
count = call_pv("PostgreSQL::InServer::mkfunc",
2118+
G_SCALAR | G_EVAL | G_KEEPERR);
21192119
SPAGAIN;
21202120

21212121
if (count == 1)
@@ -2220,7 +2220,7 @@ plperl_call_perl_func(plperl_proc_desc *desc, FunctionCallInfo fcinfo)
22202220
PUTBACK;
22212221

22222222
/* Do NOT use G_KEEPERR here */
2223-
count = perl_call_sv(desc->reference, G_SCALAR | G_EVAL);
2223+
count = call_sv(desc->reference, G_SCALAR | G_EVAL);
22242224

22252225
SPAGAIN;
22262226

@@ -2288,7 +2288,7 @@ plperl_call_perl_trigger_func(plperl_proc_desc *desc, FunctionCallInfo fcinfo,
22882288
PUTBACK;
22892289

22902290
/* Do NOT use G_KEEPERR here */
2291-
count = perl_call_sv(desc->reference, G_SCALAR | G_EVAL);
2291+
count = call_sv(desc->reference, G_SCALAR | G_EVAL);
22922292

22932293
SPAGAIN;
22942294

@@ -2351,7 +2351,7 @@ plperl_call_perl_event_trigger_func(plperl_proc_desc *desc,
23512351
PUTBACK;
23522352

23532353
/* Do NOT use G_KEEPERR here */
2354-
count = perl_call_sv(desc->reference, G_SCALAR | G_EVAL);
2354+
count = call_sv(desc->reference, G_SCALAR | G_EVAL);
23552355

23562356
SPAGAIN;
23572357

src/pl/plperl/plperl.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,6 @@
163163
#endif
164164

165165
/* perl version and platform portability */
166-
#define NEED_eval_pv
167-
#define NEED_newRV_noinc
168-
#define NEED_sv_2pv_flags
169166
#include "ppport.h"
170167

171168
/*

0 commit comments

Comments
 (0)