From e6224af1c8d8ba0921c43d7e2b247ae002aa5d03 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Mon, 26 Aug 2019 12:20:30 +1000 Subject: [PATCH] c_sort_blocks: correct examples in comments --- utils_maintenance/c_sort_blocks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils_maintenance/c_sort_blocks.py b/utils_maintenance/c_sort_blocks.py index 09e00a9..ba06bd0 100755 --- a/utils_maintenance/c_sort_blocks.py +++ b/utils_maintenance/c_sort_blocks.py @@ -46,13 +46,13 @@ def sort_struct_lists(fn, data_src): import re # eg: - # extern StructRNA; + # struct Foo; re_match_struct = re.compile(r"struct\s+[A-Za-z_][A-Za-z_0-9]*\s*;") # eg: - # extern StructRNA RNA_LightProbe; + # struct Foo Bar; re_match_struct_type = re.compile(r"struct\s+[A-Za-z_][A-Za-z_0-9]*\s+[A-Za-z_][A-Za-z_0-9]*\s*;") - # typedef struct BMBVHTree BMBVHTree; + # typedef struct Foo Bar; re_match_typedef_struct_type = re.compile(r"typedef\s+struct\s+[A-Za-z_][A-Za-z_0-9]*\s+[A-Za-z_][A-Za-z_0-9]*\s*;") re_match_enum = re.compile(r"enum\s+[A-Za-z_][A-Za-z_0-9]*\s*;") -- GitLab