diff options
author | Jérémy Zurcher <jeremy.zurcher@heraeus.com> | 2011-04-18 15:13:07 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy.zurcher@heraeus.com> | 2011-04-18 15:13:07 +0200 |
commit | b2d1dc07f424ccf484daa27bbb259cc41859e1dd (patch) | |
tree | b0a1648370dce8b3a3e25d464e51e8edc06f6458 /tools/sed-types | |
parent | 407a73b868c98a2e275b2f00663f62d7b9df32b9 (diff) | |
download | ffi-efl-b2d1dc07f424ccf484daa27bbb259cc41859e1dd.zip ffi-efl-b2d1dc07f424ccf484daa27bbb259cc41859e1dd.tar.gz |
update tools/sed-* and tools/extract-api.sh
Diffstat (limited to 'tools/sed-types')
-rw-r--r-- | tools/sed-types | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/sed-types b/tools/sed-types new file mode 100644 index 0000000..7ac79a2 --- /dev/null +++ b/tools/sed-types @@ -0,0 +1,14 @@ +s/^\s*typedef\s+(struct\s+)?((\w+\**\s+)*)(\w+)\s*;.*$/typedef \1 \2 \4;/ +t finish +s/^\s*typedef\s+(struct.*[^;].*)/typedef \1/ +T +h +:loop +n +/^\s*\}/ ! b loop +s/^\s*\}\s*(\w+)\s*;.*$/\1;/ +H;x +s/\n/ /g +:finish +s/ {2,}/ /g +p |