diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-22 16:48:13 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-22 16:48:13 +0100 |
commit | 1c6a19293c29c012930a20c17213bf9e07d47c71 (patch) | |
tree | 8cc953b6e5526efed06d33464a7fae0b777e9560 /tools/sed-enums | |
parent | fc5787918562e1e63980cf0d07d07becf0e172f6 (diff) | |
download | ffi-efl-1c6a19293c29c012930a20c17213bf9e07d47c71.zip ffi-efl-1c6a19293c29c012930a20c17213bf9e07d47c71.tar.gz |
tools/sed-enums: do not add trypedef when not used
Diffstat (limited to 'tools/sed-enums')
-rw-r--r-- | tools/sed-enums | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sed-enums b/tools/sed-enums index 14738ac..0c3987c 100644 --- a/tools/sed-enums +++ b/tools/sed-enums @@ -1,7 +1,7 @@ # drop if don't start with (typedef)? enum /^\s*(typedef\s)?\s*enum/ ! b # -s/^\s*(typedef\s)?\s*(enum(\s+\w+)?).*$/typedef \2 { / +s/^\s*(typedef\s)?\s*(enum(\s+\w+)?).*$/\1\2 { / # drop if substitution fail, copy pattern to hold space T;h :attrs;n |