From 46282293981c3ce2f57196dc88f968c84b4d4fd6 Mon Sep 17 00:00:00 2001 From: Vysheng Date: Fri, 22 Aug 2014 16:18:15 +0400 Subject: [PATCH] Fixed awk --- gen_constants_h.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen_constants_h.awk b/gen_constants_h.awk index 06e6835..b71c417 100644 --- a/gen_constants_h.awk +++ b/gen_constants_h.awk @@ -22,7 +22,7 @@ BEGIN { } // { if (split ($1, a, "#") == 2) { - gsub (/[A-Z]/, "_&", a[1]); + gsub (/[[:upper:]]/, "_&", a[1]); gsub (/[.]/, "_", a[1]); if (a[2] in h) { print "ERROR: Duplicate magic " a[2] " for define " a[1] " and " h[a[2]] >"/dev/stderr/"