3 # autodoc.pl - an autodoc-replacement
5 # Copyright (C) 2000, 2001 Joerg Dietrich
7 # This is the AROS-version of autodoc.pl.
8 # It is distributed under the AROS Public License.
9 # But I reserve the right to distribute
10 # my own version under other licenses.
12 # This is a quick and dirty hack. It is just for internal use.
13 # But feel free to improve it.
15 # read in all commandline-specified files
19 if(open(TMPFILE
, "<".$_))
36 # extract the autodocs
37 for($i=0; $i<$nZeilen; $i++)
40 if($Zeilen[$i] =~ /\/\
*{6}/)
42 # function-name as key of a hash-entry
43 $Key=substr($Zeilen[$i], 8, rindex($Zeilen[$i], " ")-8);
45 # Now put all following rows into the data of the hash-entry
50 if($Zeilen[$i] =~ /\*{6}/)
55 $Value=$Value . substr($Zeilen[$i], 1);
62 #sort the keys alphabeticaly
64 @KeysSorted=sort(@Keys);
67 print("TABLE OF CONTENTS\n\n");
79 for($i=0; $i<(77-2*length($_)); $i++)
84 print($_, $Space, $_, "\n");