diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-19 01:18:06 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-19 01:18:06 +0200 |
commit | c1f521cbc9ab6631ba82c5b709d444d91c23a913 (patch) | |
tree | f2b34269f1f089b6f91a2c00e3f83b53f8c7c2ef /tools/sed-callbacks | |
parent | 039ece9d20908a7cac0dc5a45d27b55703c6605c (diff) | |
download | ffi-efl-c1f521cbc9ab6631ba82c5b709d444d91c23a913.zip ffi-efl-c1f521cbc9ab6631ba82c5b709d444d91c23a913.tar.gz |
fix sed-callbacks, update extract-api.sh, add genruby.rb
Diffstat (limited to 'tools/sed-callbacks')
-rw-r--r-- | tools/sed-callbacks | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/sed-callbacks b/tools/sed-callbacks index af9c2b7..37444a8 100644 --- a/tools/sed-callbacks +++ b/tools/sed-callbacks @@ -1 +1,11 @@ -/^\s*typedef\s+([a-zA-Z0-9_\* ]+?)\s+\*?(\(\*)?(\w+)\)?\s*\(.*\);\s*$/p +s/^\s*typedef\s+(.*)(\(\*?\w+\))?\s*(\(.*\));/typedef \1 \2 \3;/ +t finish +s/^\s*typedef\s+(.*)(\(\*?\w+\))?\s*(\(.*,)/typedef \1 \2 \3/ +T;h +:loop;n +/,$/ { H; b loop } +/;$/ { H;x} +:finish +s/\n//g +s/ {2,}/ /g +p |