Mercurial > hg > CbC > old > device
view tools/incpri.pl @ 491:a379da780856
cond signed/unsigned
author | kono |
---|---|
date | Wed, 21 Dec 2005 11:33:53 +0900 |
parents | 7c3d8237b625 |
children | e055df7c1082 |
line wrap: on
line source
#!/usr/bin/perl for(@ARGV) { my $filename = $_; rename($filename,$filename.".bak"); open(IN,"<$filename.bak"); open(OUT,">$filename"); $d = "0000"; while(<IN>) { s/printf\(\"\#\d+\:/printf\(\"\#$d\:/; s/printf\(\"([^#])/printf\(\"\#$d\:$1/; $d++; print OUT; } }