Skip to content

Commit 05798c9

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 Discussion: https://postgr.es/m/87y278s6iq.fsf@wibble.ilmari.org
1 parent 972c7c6 commit 05798c9

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
@@ -2109,8 +2109,8 @@ plperl_create_sub(plperl_proc_desc *prodesc, const char *s, Oid fn_oid)
21092109
* errors properly. Perhaps it's because there's another level of eval
21102110
* inside mksafefunc?
21112111
*/
2112-
count = perl_call_pv("PostgreSQL::InServer::mkfunc",
2113-
G_SCALAR | G_EVAL | G_KEEPERR);
2112+
count = call_pv("PostgreSQL::InServer::mkfunc",
2113+
G_SCALAR | G_EVAL | G_KEEPERR);
21142114
SPAGAIN;
21152115

21162116
if (count == 1)
@@ -2215,7 +2215,7 @@ plperl_call_perl_func(plperl_proc_desc *desc, FunctionCallInfo fcinfo)
22152215
PUTBACK;
22162216

22172217
/* Do NOT use G_KEEPERR here */
2218-
count = perl_call_sv(desc->reference, G_SCALAR | G_EVAL);
2218+
count = call_sv(desc->reference, G_SCALAR | G_EVAL);
22192219

22202220
SPAGAIN;
22212221

@@ -2283,7 +2283,7 @@ plperl_call_perl_trigger_func(plperl_proc_desc *desc, FunctionCallInfo fcinfo,
22832283
PUTBACK;
22842284

22852285
/* Do NOT use G_KEEPERR here */
2286-
count = perl_call_sv(desc->reference, G_SCALAR | G_EVAL);
2286+
count = call_sv(desc->reference, G_SCALAR | G_EVAL);
22872287

22882288
SPAGAIN;
22892289

@@ -2346,7 +2346,7 @@ plperl_call_perl_event_trigger_func(plperl_proc_desc *desc,
23462346
PUTBACK;
23472347

23482348
/* Do NOT use G_KEEPERR here */
2349-
count = perl_call_sv(desc->reference, G_SCALAR | G_EVAL);
2349+
count = call_sv(desc->reference, G_SCALAR | G_EVAL);
23502350

23512351
SPAGAIN;
23522352

src/pl/plperl/plperl.h

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

166166
/* perl version and platform portability */
167-
#define NEED_eval_pv
168-
#define NEED_newRV_noinc
169-
#define NEED_sv_2pv_flags
170167
#include "ppport.h"
171168

172169
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy