From 04dff67be09670293e0c6dec88e8e95c678a3299 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 13 Dec 2021 17:22:41 +0100 Subject: [PATCH] tool/btstack_parser: handle 'u' in defines --- tool/btstack_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/btstack_parser.py b/tool/btstack_parser.py index 527aefb8e..e95856fb5 100755 --- a/tool/btstack_parser.py +++ b/tool/btstack_parser.py @@ -46,7 +46,7 @@ def read_defines(infile): defines = dict() with open (infile, 'rt') as fin: for line in fin: - parts = re.match('#define\s+(\w+)\s+(\w*)',line) + parts = re.match('#define\s+(\w+)\s+(\w*)[u]',line) if parts and len(parts.groups()) == 2: (key, value) = parts.groups() defines[key] = value @@ -76,7 +76,7 @@ def my_parse_events(path): if parts and len(parts.groups()) == 1: param = parts.groups()[0] params.append(param) - parts = re.match('\s*#define\s+(\w+)\s+(\w*)',line) + parts = re.match('\s*#define\s+(\w+)\s+(\w*)[u]',line) if parts and len(parts.groups()) == 2: (key, value) = parts.groups() if format != None: