]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Killed several bugs in kernel-doc. The most painful one was that it
authorMartin Mares <mj@ucw.cz>
Fri, 2 Jun 2000 17:42:21 +0000 (17:42 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 2 Jun 2000 17:42:21 +0000 (17:42 +0000)
was unable to recognize structure markers `&'.

doc/kernel-doc

index b09cf5643a7a48eab257d74fb0ba20b38d17b283..50a68039a50fd62a6f1562b7230624b82e09c148 100755 (executable)
@@ -84,7 +84,7 @@
 $type_constant = "\\\%(\\w+)";
 $type_func = "(\\w+\\(\\))";
 $type_param = "\\\@(\\w+)";
-$type_struct = "\\\&(\\w+)";
+$type_struct = "\\\\\\\\\\\\amp;(\\w+)";
 $type_env = "(\\\$\\w+)";
 
 
@@ -901,6 +901,9 @@ foreach $file (@ARGV) {
        } elsif ($state == 4) {
                # Documentation block
                if (/$doc_block/) {
+                       $contents =~ s/\&/\\\\\\amp;/g;
+                       $contents =~ s/\</\\\\\\lt;/g;
+                       $contents =~ s/\>/\\\\\\gt;/g;
                        dump_section($section, $contents);
                        output_intro({'sectionlist' => \@sectionlist,
                                      'sections' => \%sections });
@@ -921,6 +924,9 @@ foreach $file (@ARGV) {
                 }
                elsif (/$doc_end/)
                {
+                       $contents =~ s/\&/\\\\\\amp;/g;
+                       $contents =~ s/\</\\\\\\lt;/g;
+                       $contents =~ s/\>/\\\\\\gt;/g;
                        dump_section($section, $contents);
                        output_intro({'sectionlist' => \@sectionlist,
                                      'sections' => \%sections });
@@ -939,7 +945,7 @@ foreach $file (@ARGV) {
                {
                        if ( $1 eq "" )
                        {
-                               $contents .= $blankline;
+                               $contents .= "\n";
                        }
                        else
                        {