summaryrefslogtreecommitdiffstats
path: root/tools/sed-functions
blob: bcd57d06b4a87f8e01fdb22fb7ae448acfd91806 (plain)
1
2
3
4
5
6
7
8

# if return type on single line, append next line
/EAPI.*[^;] *$/ { N; s/\n/ / }
# while unfinished argument list, append next line
:loop
/,$/ { N; s/\n/ /; t loop }
s/ \{2,\}/ /g
s/^ *EAPI/EAPI/p