From 1c6a19293c29c012930a20c17213bf9e07d47c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 22 Jan 2012 16:48:13 +0100 Subject: tools/sed-enums: do not add trypedef when not used --- tools/sed-enums | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.1-2-g2b99