blob: e5fbd128eef7a83f396b0b64829d12cbb989c108 (
plain)
1
2
3
4
5
6
7
8
9
|
# eat all comments
/^\s*\/\*/ {
:comment
/\*\/\s*$/ { n; b nocomment }
n; b comment
}
:nocomment
# variable should be EAPI extern word word;;
s/^\s*(EAPI\s+extern\s+\w+\s+\*?\w+\s*;).*$/\1/p
|