From 5e8d81adbf8f7899ea1296b028bf8acaa4fec4a6 Mon Sep 17 00:00:00 2001 From: Arne Luenser Date: Tue, 13 Feb 2018 10:29:28 +0100 Subject: [PATCH] Allow digits 0-9 in include guards --- scripts/ddl2cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ddl2cpp b/scripts/ddl2cpp index 92afcc81..c5b68582 100755 --- a/scripts/ddl2cpp +++ b/scripts/ddl2cpp @@ -45,7 +45,7 @@ from pyparsing import CaselessLiteral, Literal, SkipTo, restOfLine, oneOf, ZeroO # HELPERS def get_include_guard_name(namespace, inputfile): - val = re.sub("[^A-Za-z]+", "_", namespace + '_' + os.path.basename(inputfile)) + val = re.sub("[^A-Za-z0-9]+", "_", namespace + '_' + os.path.basename(inputfile)) return val.upper() def identity_naming_func(s):