Loading util/su-filter.pl +10 −3 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ while(<>) { if($in_su == 1) { if(/}(.*);/) { $out .= $_; print $out; do_output($out); $in_su = 0; } elsif(/^ *\} [^\s]+(\[\d*\])* = \{/) { $tststr = $1; Loading @@ -44,7 +44,7 @@ while(<>) { my @strucdata = structureData($data); $out .= displayData($indent, 0, \@strucdata); $out .= "\n$indent};\n"; print $out; do_output($out); $in_su = 0; } } elsif($incomm <= 0 && /( *)(static )?(const )?(union|struct) ([^\s]+ )?\{/) { Loading @@ -53,7 +53,7 @@ while(<>) { $out = $_; next; } else { print $_; do_output($_); } } Loading Loading @@ -251,3 +251,10 @@ sub displayData { } return $out; } sub do_output { my $out = shift; # Strip any trailing whitespace $out =~ s/\s+\n/\n/g; print $out; } Loading
util/su-filter.pl +10 −3 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ while(<>) { if($in_su == 1) { if(/}(.*);/) { $out .= $_; print $out; do_output($out); $in_su = 0; } elsif(/^ *\} [^\s]+(\[\d*\])* = \{/) { $tststr = $1; Loading @@ -44,7 +44,7 @@ while(<>) { my @strucdata = structureData($data); $out .= displayData($indent, 0, \@strucdata); $out .= "\n$indent};\n"; print $out; do_output($out); $in_su = 0; } } elsif($incomm <= 0 && /( *)(static )?(const )?(union|struct) ([^\s]+ )?\{/) { Loading @@ -53,7 +53,7 @@ while(<>) { $out = $_; next; } else { print $_; do_output($_); } } Loading Loading @@ -251,3 +251,10 @@ sub displayData { } return $out; } sub do_output { my $out = shift; # Strip any trailing whitespace $out =~ s/\s+\n/\n/g; print $out; }