diff options
author | Jérémy Zurcher <jeremy.zurcher@heraeus.com> | 2011-04-19 10:16:41 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy.zurcher@heraeus.com> | 2011-04-19 10:16:41 +0200 |
commit | ede482ecb7e7d8199adc9ccb2e3ba9ed46aa33f8 (patch) | |
tree | c99a80752aa3c6b9cf78b9bc8c9b3c9f112be76d /tools/sed-enums | |
parent | e3c88dd4103413db40df39cb2e315ee0d8416260 (diff) | |
download | ffi-efl-ede482ecb7e7d8199adc9ccb2e3ba9ed46aa33f8.zip ffi-efl-ede482ecb7e7d8199adc9ccb2e3ba9ed46aa33f8.tar.gz |
handle enum constants values
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 488d6e1..3c30476 100644 --- a/tools/sed-enums +++ b/tools/sed-enums @@ -1,7 +1,7 @@ s/^\s*typedef\s+(enum(\s+\w+)?).*$/typedef \1 { / T;h :attrs;n -s/^\s*([A-Z0-9_]+).*$/\1, / +s/^\s*([A-Z0-9_]+)(\s*=\s*-?[0-9])?.*$/\1\2, / T next;H;b attrs :next /^\s*\}/ ! b attrs |