summaryrefslogtreecommitdiff
path: root/inline.h
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2023-02-13 14:37:10 +0000
committerPaul Evans <leonerd@leonerd.org.uk>2023-02-13 16:01:46 +0000
commite7faea54386fae0e542ca8bfe43a8c5444c69114 (patch)
tree76b7c8f1a0db1bad966616b5a14d55491e5b5885 /inline.h
parent45826d9c097ca6244814faff2f85d6435067d27a (diff)
downloadperl-e7faea54386fae0e542ca8bfe43a8c5444c69114.tar.gz
Provide padname_dup_inc() and padnamelist_dup_inc()
Diffstat (limited to 'inline.h')
-rw-r--r--inline.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/inline.h b/inline.h
index fce84b4d96..b09da6c383 100644
--- a/inline.h
+++ b/inline.h
@@ -3525,6 +3525,13 @@ Perl_padname_refcnt_inc(PADNAME *pn)
return pn;
}
+PERL_STATIC_INLINE PADNAMELIST *
+Perl_padnamelist_refcnt_inc(PADNAMELIST *pnl)
+{
+ PadnamelistREFCNT(pnl)++;
+ return pnl;
+}
+
/* copy a string to a safe spot */
/*