This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
newATTRSUB_x(): document what the cv var is for
authorDavid Mitchell <davem@iabyn.com>
Mon, 5 Sep 2016 11:50:37 +0000 (12:50 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 5 Sep 2016 11:56:45 +0000 (12:56 +0100)
op.c

diff --git a/op.c b/op.c
index 7d33b72..30b5024 100644 (file)
--- a/op.c
+++ b/op.c
@@ -8410,7 +8410,7 @@ Perl_newATTRSUB_x(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs,
     const char *ps;
     STRLEN ps_len = 0; /* init it to avoid false uninit warning from icc */
     U32 ps_utf8 = 0;
-    CV *cv = NULL;
+    CV *cv = NULL;     /* the previous CV with this name, if any */
     SV *const_sv;
     const bool ec = PL_parser && PL_parser->error_count;
     /* If the subroutine has no body, no attributes, and no builtin attributes