This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
HACKERS: Add info about Hints and Warnings
authorKarl Williamson <khw@cpan.org>
Thu, 4 Jul 2019 20:19:42 +0000 (14:19 -0600)
committerNicolas R <atoomic@cpan.org>
Fri, 27 Sep 2019 20:15:48 +0000 (14:15 -0600)
(cherry picked from commit 5df9c36cef7b172a0fe805f209de55cbb87f6ac6)
Signed-off-by: Nicolas R <atoomic@cpan.org>
dist/Devel-PPPort/HACKERS

index ff215a4..07289c5 100644 (file)
@@ -191,6 +191,25 @@ A list of the provided API in the C<=provides> section.
 The implementation to add to F<ppport.h> in the C<=implementation>
 section.
 
+Here you can add additional information for a given item that will be displayed
+when F<ppport.h> is run.  If your item is named C<foo>, you add a
+comment like so:
+
+ /* Hint: foo
+    paragraphs of stuff about foo you want to have
+    shown when ppport.h outputs something about foo
+ */
+
+This will cause S<C<perl ppport.h>> to display this hint when it outputs
+something about C<foo>.
+
+A more serious caution about C<foo> can be displayed by instead saying
+
+ /* Warning: foo
+    paragraphs of stuff about foo you want to have
+    shown when ppport.h outputs something about foo
+ */
+
 =item *
 
 The code required to add to PPPort.xs for testing the implementation.