Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation issues with blead perl (5.25.8) #178

Merged
merged 2 commits into from
Dec 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Revision history for Git-Raw

{{$NEXT}}

- Fixes compilation failure with blead perl 5.25.x (GH#177)

0.66 2016-12-28 18:04:48+02:00 Africa/Johannesburg

- Added Diff methods:
Expand Down
8 changes: 4 additions & 4 deletions Raw.xs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
#include "perl.h"
#include "XSUB.h"

#define NEED_newRV_noinc
#define NEED_sv_2pvbyte
#define NEED_sv_2pv_flags
#define NEED_sv_2pvbyte_GLOBAL
#define NEED_newRV_noinc_GLOBAL

#include "ppport.h"

Expand Down Expand Up @@ -227,7 +227,7 @@ STATIC const COP* git_closest_cop(pTHX_ const COP *cop, const OP *o, const OP *c

if (o->op_flags & OPf_KIDS) {
const OP *kid;
for (kid = cUNOPo->op_first; kid; kid = kid->op_sibling) {
for (kid = cUNOPo->op_first; kid; kid = OpSIBLING(kid)) {
const COP *new_cop;

if (kid->op_type == OP_NULL && kid->op_targ == OP_NEXTSTATE)
Expand All @@ -252,7 +252,7 @@ STATIC Error create_error_obj(int code, int category, SV *message) {
e -> category = category;
e -> message = message;

cop = git_closest_cop(aTHX_ PL_curcop, PL_curcop->op_sibling, PL_op, FALSE);
cop = git_closest_cop(aTHX_ PL_curcop, OpSIBLING(PL_curcop), PL_op, FALSE);
if (cop == NULL)
cop = PL_curcop;

Expand Down
Loading