summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-18 08:20:13 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-18 08:20:13 +0000
commit3d826b294b9e4cbc002b8f9eeaf0e88c52d9ee96 (patch)
tree153311bcfce8dbcf14843c5d0572f045794fd758 /pod
parentb88df9907a8d7b4fae1100629cc85633a901355e (diff)
downloadperl-3d826b294b9e4cbc002b8f9eeaf0e88c52d9ee96.tar.gz
Add Weed out needless PERL_UNUSED_ARG to perltodo. It's a good
"cage cleaner" task. p4raw-id: //depot/perl@32993
Diffstat (limited to 'pod')
-rw-r--r--pod/perltodo.pod21
1 files changed, 21 insertions, 0 deletions
diff --git a/pod/perltodo.pod b/pod/perltodo.pod
index c6ab0652b8..caa1a833e5 100644
--- a/pod/perltodo.pod
+++ b/pod/perltodo.pod
@@ -365,6 +365,27 @@ Make F<pod/roffitall> be updated by F<pod/buildtoc>.
These tasks would need a little C knowledge, but don't need any specific
background or experience with XS, or how the Perl interpreter works
+=head2 Weed out needless PERL_UNUSED_ARG
+
+The C code uses the macro C<PERL_UNUSED_ARG> to stop compilers warning about
+unused arguments. Often the arguments can't be removed, as there is an
+external constraint that determines the prototype of the function, so this
+approach is valid. However, there are some cases where C<PERL_UNUSED_ARG>
+could be removed. Specifically
+
+=over 4
+
+=item *
+
+The prototypes of (nearly all) static functions can be changed
+
+=item *
+
+Unused arguments generated by short cut macros are wasteful - the short cut
+macro used can be changed.
+
+=back
+
=head2 Modernize the order of directories in @INC
The way @INC is laid out by default, one cannot upgrade core (dual-life)