view tools/regs_use.pl @ 911:785b2bd38982

should fix compile time constant in gcc on linux
author kono
date Wed, 09 Apr 2014 14:39:32 +0900
parents 7c3d8237b625
children
line wrap: on
line source

#!/usr/bin/perl
$d = 0;
while(<>) {
   s/get_register\(\d*\)/get_register($d)/g;
   s/get_lregister\(\d*\)/get_lregister($d)/g;
   $d++;
   print;
}