diff options
author | James Bottomley <jejb@titanic.(none)> | 2005-05-20 16:27:44 -0400 |
---|---|---|
committer | James Bottomley <jejb@titanic.(none)> | 2005-05-20 16:27:44 -0400 |
commit | ad34ea2cc3845ef4dcd7d12fb0fa8484734bd672 (patch) | |
tree | ad434400f5ecaa33b433c8f830e40792d8d6c05c /scripts/kernel-doc | |
parent | 90356ac3194bf91a441a5f9c3067af386ef62462 (diff) | |
parent | 88d7bd8cb9eb8d64bf7997600b0d64f7834047c5 (diff) |
merge by hand - fix up rejections in Documentation/DocBook/Makefile
Diffstat (limited to 'scripts/kernel-doc')
-rwxr-xr-x | scripts/kernel-doc | 49 |
1 files changed, 40 insertions, 9 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 8b1dab63f11c..0835dc2a8aa9 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
@@ -553,15 +553,20 @@ sub output_section_xml(%) { | |||
553 | # print out each section | 553 | # print out each section |
554 | $lineprefix=" "; | 554 | $lineprefix=" "; |
555 | foreach $section (@{$args{'sectionlist'}}) { | 555 | foreach $section (@{$args{'sectionlist'}}) { |
556 | print "<refsect1>\n <title>$section</title>\n <para>\n"; | 556 | print "<refsect1>\n"; |
557 | print "<title>$section</title>\n"; | ||
557 | if ($section =~ m/EXAMPLE/i) { | 558 | if ($section =~ m/EXAMPLE/i) { |
558 | print "<example><para>\n"; | 559 | print "<informalexample><programlisting>\n"; |
560 | } else { | ||
561 | print "<para>\n"; | ||
559 | } | 562 | } |
560 | output_highlight($args{'sections'}{$section}); | 563 | output_highlight($args{'sections'}{$section}); |
561 | if ($section =~ m/EXAMPLE/i) { | 564 | if ($section =~ m/EXAMPLE/i) { |
562 | print "</para></example>\n"; | 565 | print "</programlisting></informalexample>\n"; |
566 | } else { | ||
567 | print "</para>\n"; | ||
563 | } | 568 | } |
564 | print " </para>\n</refsect1>\n"; | 569 | print "</refsect1>\n"; |
565 | } | 570 | } |
566 | } | 571 | } |
567 | 572 | ||
@@ -576,8 +581,14 @@ sub output_function_xml(%) { | |||
576 | $id =~ s/[^A-Za-z0-9]/-/g; | 581 | $id =~ s/[^A-Za-z0-9]/-/g; |
577 | 582 | ||
578 | print "<refentry>\n"; | 583 | print "<refentry>\n"; |
584 | print "<refentryinfo>\n"; | ||
585 | print " <title>LINUX</title>\n"; | ||
586 | print " <productname>Kernel Hackers Manual</productname>\n"; | ||
587 | print " <date>$man_date</date>\n"; | ||
588 | print "</refentryinfo>\n"; | ||
579 | print "<refmeta>\n"; | 589 | print "<refmeta>\n"; |
580 | print "<refentrytitle><phrase id=\"$id\">".$args{'function'}."</phrase></refentrytitle>\n"; | 590 | print " <refentrytitle><phrase id=\"$id\">".$args{'function'}."</phrase></refentrytitle>\n"; |
591 | print " <manvolnum>9</manvolnum>\n"; | ||
581 | print "</refmeta>\n"; | 592 | print "</refmeta>\n"; |
582 | print "<refnamediv>\n"; | 593 | print "<refnamediv>\n"; |
583 | print " <refname>".$args{'function'}."</refname>\n"; | 594 | print " <refname>".$args{'function'}."</refname>\n"; |
@@ -607,7 +618,7 @@ sub output_function_xml(%) { | |||
607 | } | 618 | } |
608 | } | 619 | } |
609 | } else { | 620 | } else { |
610 | print " <void>\n"; | 621 | print " <void/>\n"; |
611 | } | 622 | } |
612 | print " </funcprototype></funcsynopsis>\n"; | 623 | print " </funcprototype></funcsynopsis>\n"; |
613 | print "</refsynopsisdiv>\n"; | 624 | print "</refsynopsisdiv>\n"; |
@@ -646,8 +657,14 @@ sub output_struct_xml(%) { | |||
646 | $id =~ s/[^A-Za-z0-9]/-/g; | 657 | $id =~ s/[^A-Za-z0-9]/-/g; |
647 | 658 | ||
648 | print "<refentry>\n"; | 659 | print "<refentry>\n"; |
660 | print "<refentryinfo>\n"; | ||
661 | print " <title>LINUX</title>\n"; | ||
662 | print " <productname>Kernel Hackers Manual</productname>\n"; | ||
663 | print " <date>$man_date</date>\n"; | ||
664 | print "</refentryinfo>\n"; | ||
649 | print "<refmeta>\n"; | 665 | print "<refmeta>\n"; |
650 | print "<refentrytitle><phrase id=\"$id\">".$args{'type'}." ".$args{'struct'}."</phrase></refentrytitle>\n"; | 666 | print " <refentrytitle><phrase id=\"$id\">".$args{'type'}." ".$args{'struct'}."</phrase></refentrytitle>\n"; |
667 | print " <manvolnum>9</manvolnum>\n"; | ||
651 | print "</refmeta>\n"; | 668 | print "</refmeta>\n"; |
652 | print "<refnamediv>\n"; | 669 | print "<refnamediv>\n"; |
653 | print " <refname>".$args{'type'}." ".$args{'struct'}."</refname>\n"; | 670 | print " <refname>".$args{'type'}." ".$args{'struct'}."</refname>\n"; |
@@ -724,8 +741,14 @@ sub output_enum_xml(%) { | |||
724 | $id =~ s/[^A-Za-z0-9]/-/g; | 741 | $id =~ s/[^A-Za-z0-9]/-/g; |
725 | 742 | ||
726 | print "<refentry>\n"; | 743 | print "<refentry>\n"; |
744 | print "<refentryinfo>\n"; | ||
745 | print " <title>LINUX</title>\n"; | ||
746 | print " <productname>Kernel Hackers Manual</productname>\n"; | ||
747 | print " <date>$man_date</date>\n"; | ||
748 | print "</refentryinfo>\n"; | ||
727 | print "<refmeta>\n"; | 749 | print "<refmeta>\n"; |
728 | print "<refentrytitle><phrase id=\"$id\">enum ".$args{'enum'}."</phrase></refentrytitle>\n"; | 750 | print " <refentrytitle><phrase id=\"$id\">enum ".$args{'enum'}."</phrase></refentrytitle>\n"; |
751 | print " <manvolnum>9</manvolnum>\n"; | ||
729 | print "</refmeta>\n"; | 752 | print "</refmeta>\n"; |
730 | print "<refnamediv>\n"; | 753 | print "<refnamediv>\n"; |
731 | print " <refname>enum ".$args{'enum'}."</refname>\n"; | 754 | print " <refname>enum ".$args{'enum'}."</refname>\n"; |
@@ -784,8 +807,14 @@ sub output_typedef_xml(%) { | |||
784 | $id =~ s/[^A-Za-z0-9]/-/g; | 807 | $id =~ s/[^A-Za-z0-9]/-/g; |
785 | 808 | ||
786 | print "<refentry>\n"; | 809 | print "<refentry>\n"; |
810 | print "<refentryinfo>\n"; | ||
811 | print " <title>LINUX</title>\n"; | ||
812 | print " <productname>Kernel Hackers Manual</productname>\n"; | ||
813 | print " <date>$man_date</date>\n"; | ||
814 | print "</refentryinfo>\n"; | ||
787 | print "<refmeta>\n"; | 815 | print "<refmeta>\n"; |
788 | print "<refentrytitle><phrase id=\"$id\">typedef ".$args{'typedef'}."</phrase></refentrytitle>\n"; | 816 | print " <refentrytitle><phrase id=\"$id\">typedef ".$args{'typedef'}."</phrase></refentrytitle>\n"; |
817 | print " <manvolnum>9</manvolnum>\n"; | ||
789 | print "</refmeta>\n"; | 818 | print "</refmeta>\n"; |
790 | print "<refnamediv>\n"; | 819 | print "<refnamediv>\n"; |
791 | print " <refname>typedef ".$args{'typedef'}."</refname>\n"; | 820 | print " <refname>typedef ".$args{'typedef'}."</refname>\n"; |
@@ -1465,6 +1494,8 @@ sub dump_function($$) { | |||
1465 | 1494 | ||
1466 | $prototype =~ s/^static +//; | 1495 | $prototype =~ s/^static +//; |
1467 | $prototype =~ s/^extern +//; | 1496 | $prototype =~ s/^extern +//; |
1497 | $prototype =~ s/^fastcall +//; | ||
1498 | $prototype =~ s/^asmlinkage +//; | ||
1468 | $prototype =~ s/^inline +//; | 1499 | $prototype =~ s/^inline +//; |
1469 | $prototype =~ s/^__inline__ +//; | 1500 | $prototype =~ s/^__inline__ +//; |
1470 | $prototype =~ s/^#define +//; #ak added | 1501 | $prototype =~ s/^#define +//; #ak added |