diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-11-06 17:21:25 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-07 22:18:21 +0200 |
commit | 6e708208ddc870fefde92b22c031575c33bb243b (patch) | |
tree | 0eeac1c226d66cb8ce0315362cdcb5ae682d03f8 /tools/ac_converter.py | |
parent | d08091756191981f1bd3c7741b412b95f965fe0a (diff) | |
download | meson-6e708208ddc870fefde92b22c031575c33bb243b.zip meson-6e708208ddc870fefde92b22c031575c33bb243b.tar.gz meson-6e708208ddc870fefde92b22c031575c33bb243b.tar.bz2 |
CI: add initial type annotation checking
Diffstat (limited to 'tools/ac_converter.py')
-rwxr-xr-x | tools/ac_converter.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/ac_converter.py b/tools/ac_converter.py index 739c42c..a1969a9 100755 --- a/tools/ac_converter.py +++ b/tools/ac_converter.py @@ -389,9 +389,9 @@ with open(sys.argv[1]) as f: token = arr[1] if token in function_data: fdata = function_data[token] - functions.append((token, fdata[0], fdata[1])) + functions.append([token, fdata[0], fdata[1]]) elif token.startswith('HAVE_') and not token.endswith('_H'): - functions.append((token, )) + functions.append([token]) except Exception: pass @@ -427,12 +427,12 @@ endforeach # Convert function checks. print('check_functions = [') -for token in functions: - if len(token) == 3: - token, fdata0, fdata1 = token - print(" ['%s', '%s', '#include<%s>']," % (token, fdata0, fdata1)) +for tok in functions: + if len(tok) == 3: + tokstr, fdata0, fdata1 = tok + print(" ['%s', '%s', '#include<%s>']," % (tokstr, fdata0, fdata1)) else: - print('# check token', token) + print('# check token', tok) print(']\n') print('''foreach f : check_functions |