Skip to content

Commit

Permalink
NewOpSz_v542 - variant without unused parameter
Browse files Browse the repository at this point in the history
First parameter of NewOpSz is unused since 2007.
  • Loading branch information
Branislav Zahradník committed Dec 24, 2024
1 parent a914469 commit 63ab1d4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions op.h
Original file line number Diff line number Diff line change
Expand Up @@ -708,8 +708,12 @@ least an C<UNOP>.
#define NewOp_v542(Var, Count, Type) \
(Var = (Type *) Perl_Slab_Alloc (aTHX_ Count * sizeof (Type)))

#define NewOpSz(m,var,size) \
(var = (OP *) Perl_Slab_Alloc(aTHX_ size))
#define NewOpSz(m,var,size) \
NewOpSz_v542 (0, var, size)

#define NewOpSz_v542(Var, Size) \
(Var = (OP *) Perl_Slab_Alloc (aTHX_ Size))

#define FreeOp(p) Perl_Slab_Free(aTHX_ p)

/*
Expand Down

0 comments on commit 63ab1d4

Please sign in to comment.