summaryrefslogtreecommitdiffstats
path: root/tools/sed-enums
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sed-enums')
-rw-r--r--tools/sed-enums2
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