summaryrefslogtreecommitdiffstats
path: root/tools/sed-functions
blob: 296cab11c4f0825c01cb3543c340883a6a7eddc0 (plain)
1
2
3
4
5
6
7
8
9
/EAPI extern/ b
# if return type on single line, append next line
/EAPI.*[^;]\s*$/ { N; s/\n/ / }
# while unfinished argument list, append next line
:loop
/,$/ { N; s/\n/ /; t loop }
s/ {2,}/ /g
s/\s+EINA_.*/;/
s/^\s*EAPI/EAPI/p