Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitccd69b8

Browse files
committed
Allow building with perl 5.14.
Patch from Alex Hunsaker.
1 parent36a1ba9 commitccd69b8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

‎src/pl/plperl/plperl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ plperl_trusted_init(void)
926926
if (!isGV_with_GP(sv)|| !GvCV(sv))
927927
continue;
928928
SvREFCNT_dec(GvCV(sv));/* free the CV */
929-
GvCV(sv)=NULL;/* prevent call via GV */
929+
GvCV_set(sv,NULL);/* prevent call via GV */
930930
}
931931
hv_clear(stash);
932932

‎src/pl/plperl/plperl.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@
8585
(U32)HeKUTF8(he))
8686
#endif
8787

88+
/* supply GvCV_set if it's missing - ppport.h doesn't supply it, unfortunately */
89+
#ifndefGvCV_set
90+
#defineGvCV_set(gv,cv)(GvCV(gv) = cv)
91+
#endif
92+
8893
/* declare routines from plperl.c for access by .xs files */
8994
HV*plperl_spi_exec(char*,int);
9095
voidplperl_return_next(SV*);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp