diff options
Diffstat (limited to 'tests/offsets/gen-gitestoffsets')
-rwxr-xr-x | tests/offsets/gen-gitestoffsets | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/offsets/gen-gitestoffsets b/tests/offsets/gen-gitestoffsets index ce4a977c..58139fc2 100755 --- a/tests/offsets/gen-gitestoffsets +++ b/tests/offsets/gen-gitestoffsets @@ -61,7 +61,7 @@ STRUCT_DEF_RE = compile_re("struct\s+_(TOKEN)\s*{([^}]*)}") # This certainly can't handle all type declarations, but it only # needs to handle the ones we use in the test cases -FIELD_RE = compile_re("^(?:const\s+)?TOKEN(?:[\s*]+)(TOKEN)\s*;$"); +FIELD_RE = compile_re(r"^(?:const\s+)?TOKEN(?:[\s*]+)(TOKEN)\s*(?:\[([0-9]*)\])?\s*;$") input_f = open(sys.argv[1]) |