blob: 37444a81ec7d5a6bb6c1881f86de54b0942fce5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
s/^\s*typedef\s+(.*)(\(\*?\w+\))?\s*(\(.*\));/typedef \1 \2 \3;/
t finish
s/^\s*typedef\s+(.*)(\(\*?\w+\))?\s*(\(.*,)/typedef \1 \2 \3/
T;h
:loop;n
/,$/ { H; b loop }
/;$/ { H;x}
:finish
s/\n//g
s/ {2,}/ /g
p
|