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

# 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_ARG.*/;/
s/^\s*EAPI/EAPI/p