repo.or.cz
/
retty.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Proper make clean - added deletion of detach code
[retty.git]
/
bytecode.pl
blob
7fffe5ed2723ba6ec9521703856e88fa3aba7f4a
1
#!/usr/bin/perl
2
3
$state
=
0
;
4
while
(
$l
= <>) {
5
chomp
(
$l
);
6
if
(!
$state
&&
$l
=~
/^[0-9a-f]* <.*>:/
) {
7
$state
++;
8
}
elsif
(
$state
) {
9
if
(
$l
=~
/^\s*([0-9a-f]*):\t(.*)\t(.*)$/
) {
10
$c
=
$1
;
11
$a
=
$2
;
12
$b
=
$3
;
13
$a
=~
s/[^0-9a-f]//g
;
14
$a
=~
s/([0-9a-f]{2})/0x\1,/g
;
15
printf
(
"/*
%04s
*/
\t
%-30s
\t
/* \
%s
*/
\n
"
,
$c
,
$a
,
$b
);
16
}
17
}
18
}