summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2004-01-04 13:39:19 +0000
committerfukachan <fukachan>2004-01-04 13:39:19 +0000
commit9b7de580a4ec074ea9df34749f0044bbf1458882 (patch)
tree27a3569dee3be9b3fa0fc4f8df3e130226ef75d2
parent8b6ca2b2372f9db581bf8c76e3c6156686e61a9f (diff)
downloadfml8-9b7de580a4ec074ea9df34749f0044bbf1458882.tar.gz
fml8-9b7de580a4ec074ea9df34749f0044bbf1458882.tar.bz2
fml8-9b7de580a4ec074ea9df34749f0044bbf1458882.zip
prepend [TODO] for each entry
-rwxr-xr-xregress/simulation/.gen_todo.pl12
1 files changed, 9 insertions, 3 deletions
diff --git a/regress/simulation/.gen_todo.pl b/regress/simulation/.gen_todo.pl
index 2dc7a1d1..008ec34c 100755
--- a/regress/simulation/.gen_todo.pl
+++ b/regress/simulation/.gen_todo.pl
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
#
-# $FML: .gen_todo.pl,v 1.1 2003/01/11 16:10:03 fukachan Exp $
+# $FML: .gen_todo.pl,v 1.2 2003/03/06 04:19:39 fukachan Exp $
#
use strict;
@@ -10,6 +10,7 @@ my $function;
my $todo = {};
my $KEY = "__FILE_GLOBAL__";
my $all = 0;
+my $prev = 0;
while (<>) {
if (/^sub (\S+)/o) {
@@ -18,13 +19,18 @@ while (<>) {
if (/^sub .*\}/o || /^\}/o) {
$function = $KEY;
+ $prev = 0;
}
next if /XXX-TODO.*curproc->util->/ && (! $all);
if (/(XXX-TODO:|XXX-TODO)\s*(.*)\s*$/o) {
my ($xtodo) = $2;
- $todo->{ $ARGV }->{ $function } .= "\t". $xtodo . "\n";
+ $todo->{ $ARGV }->{ $function } .=
+ abs($.-$prev) == 1 ? "\t\t" : "\t[TODO]\t";
+ $todo->{ $ARGV }->{ $function } .= $xtodo;
+ $todo->{ $ARGV }->{ $function } .= "\n";
+ $prev = $.;
}
}
@@ -37,7 +43,7 @@ for my $file (sort keys %$todo) {
for my $k (keys %$hash) {
if ($k eq $KEY) {
my $buf = $hash->{ $k };
- $buf =~ s/\t/ /g;
+ $buf =~ s/^\t/ [GLOBL]/g;
print $buf;
}
else {