Shortcut chasing round strtab when we're not the last reference.
[p5sagit/p5-mst-13.2.git] / autodoc.pl
index c106408..4c5c60f 100644 (file)
@@ -53,6 +53,7 @@ sub walk_table (&@) {
        else {
            @args = split /\s*\|\s*/, $_;
        }
+       s/\bNN\b\s+// for @args;
        print $F $function->(@args);
     }
     print $F $trailer if $trailer;
@@ -220,7 +221,8 @@ my $key;
 for $key (sort { uc($a) cmp uc($b) || $a cmp $b } keys %apidocs) {
     my $section = $apidocs{$key}; 
     print DOC "\n=head1 $key\n\n=over 8\n\n";
-    for my $key (sort { uc($a) cmp uc($b); } keys %$section) {
+    # Again, fallback for determinacy
+    for my $key (sort { uc($a) cmp uc($b) || $a cmp $b } keys %$section) {
         docout(\*DOC, $key, $section->{$key});
     }
     print DOC "\n=back\n";