Skip to content

Commit 522e1a7

Browse files
committed
perlintern: Document INIT()
1 parent 69734ba commit 522e1a7

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

perl.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5509,6 +5509,20 @@ EXTERN_C char **environ; /* environment variables supplied via exec */
55095509
STRINGIFY(PERL_API_VERSION) "." \
55105510
STRINGIFY(PERL_API_SUBVERSION)
55115511

5512+
5513+
/*
5514+
=for apidoc Cmu||INIT|const_expr
5515+
5516+
Macro to initialize something, used like so:
5517+
5518+
EXTCONST char PL_warn_uninit[] INIT("Use of uninitialized value%s%s%s");
5519+
5520+
It is used to hide whether initialization should take place. Sometimes code is
5521+
parsed more than once, and we only want the initialization to happen once.
5522+
5523+
=cut
5524+
*/
5525+
55125526
START_EXTERN_C
55135527

55145528
/* handy constants */

t/porting/known_pod_issues.dat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ pod/perldtrace.pod Verbatim line length including indents exceeds 78 by -1
421421
pod/perlgit.pod ? Should you be using F<...> or maybe L<...> instead of 1
422422
pod/perlgit.pod Verbatim line length including indents exceeds 78 by 1
423423
pod/perlguts.pod ? Should you be using L<...> instead of 1
424+
pod/perlintern.pod Verbatim line length including indents exceeds 78 by 1
424425
pod/perlinterp.pod ? Should you be using L<...> instead of 1
425426
pod/perlmacosx.pod Verbatim line length including indents exceeds 78 by 3
426427
pod/perlmroapi.pod ? Should you be using L<...> instead of 1

0 commit comments

Comments
 (0)