File indexing completed on 2024-04-06 12:28:23
0001
0002
0003
0004
0005
0006
0007 @headers = map {
0008 "MkFitCore/src/Mk$_.h";
0009 }
0010 ;
0011
0012
0013 $TARGET = "data-members";
0014
0015
0016
0017 % ClassesStructs = ();
0018 % Funcs = ();
0019
0020 % HeaderText = ();
0021
0022 for
0023 my $h(@headers) {
0024
0025 open F, $h;
0026 my @lines = <F>;
0027 close F;
0028
0029
0030 @lines = grep {
0031 $_ !~; } @lines;
0032
0033 if ($TARGET eq "data-members") {
0034
0035 @lines = grep {
0036 $_ !~;
0037 }
0038 @lines;
0039 }
0040
0041 my $f = join( '', @lines);
0042
0043
0044 $f =~ s!/\*.*?\*/ \
0045 !!omsg;
0046
0047 if ($TARGET eq "data-members") {
0048
0049 $f = ~s !\s *=\s *\w +\s*;
0050 !;
0051 !omsg;
0052 }
0053
0054 my @css = $f = ~ omsg;
0055
0056
0057
0058 for
0059 my $cs(@css) { $ClassesStructs{$cs} = 1; }
0060
0061 $HeaderText{$h} = $f;
0062 }
0063
0064
0065 if ($TARGET eq "functions") {
0066 for
0067 my $h(keys % HeaderText) {
0068 my @foos = $HeaderText{$h} =~ ;
0069
0070
0071
0072 my @ffoos;
0073 for
0074 my $foo(@foos) {
0075 next if exists $ClassesStructs{$foo};
0076 next if exists $Funcs{$foo};
0077 $Funcs{$foo} = 1;
0078
0079
0080 push @ffoos, $foo;
0081 }
0082
0083 if (scalar @ffoos) {
0084 print "# In $h:\n ", join("\n ", @ffoos), "\n";
0085 }
0086 }
0087 }
0088
0089
0090 elsif($TARGET eq "data-members") {
0091 for
0092 my $h(keys % HeaderText) {
0093
0094 my @mmbs = $HeaderText{$h} = ~
0095 omg;
0096
0097 print "In $h: ", join(" ", @mmbs), "\n";
0098 }
0099 }
0100 else {
0101 die "Unsupported TARGET $TARGET";
0102 }