diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-08-13 10:48:47 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-08-13 10:48:47 +0200 |
commit | 06e6afbce232c4c0b53d1e1bba95a52652c8c23c (patch) | |
tree | 52a588a34526908c3bbf415f23e6ed45b97f7c3c /tools/sed-enums | |
parent | 4fae45790d7340e0082c989605f07778e49b7c96 (diff) | |
download | ffi-efl-06e6afbce232c4c0b53d1e1bba95a52652c8c23c.zip ffi-efl-06e6afbce232c4c0b53d1e1bba95a52652c8c23c.tar.gz |
fix and update native api extraction and generation
Diffstat (limited to 'tools/sed-enums')
-rw-r--r-- | tools/sed-enums | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/sed-enums b/tools/sed-enums index 4599859..ffc193b 100644 --- a/tools/sed-enums +++ b/tools/sed-enums @@ -1,4 +1,4 @@ -s/^\s*typedef\s+(enum(\s+\w+)?).*$/typedef \1 { / +s/^\s*(typedef)?\s+(enum(\s+\w+)?).*$/typedef \2 { / T;h :attrs;n s/^\s*([A-Z0-9_]+)(\s*=\s*-?[0-9]+)?.*$/\1\2, / @@ -8,8 +8,8 @@ T next;H;b attrs s/^\s*}\s*(\w+).*$/ } \1;/ t finish :close -s/^\s*typedef\s+enum\s+\w+\s+(\w+)\s+;/ } \1/ -t finish;n;T close +s/^\s*typedef\s+enum\s+\w+\s+(\w+)\s*;/ } \1/ +t finish;n;b close :finish H;x s/\n//g |