diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-02-18 17:03:16 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-11 15:41:48 +0100 |
commit | bd5fd5d6cf42732c4a34c10d390d3596615e9a47 (patch) | |
tree | 6a50cd0cdf34cc800240224a33dc9a780c573ba2 /unittest/conftest.py | |
parent | 735d7eebcf132c1146da14989ed70fda2f01c06f (diff) | |
download | libnitrokey-bd5fd5d6cf42732c4a34c10d390d3596615e9a47.tar.gz libnitrokey-bd5fd5d6cf42732c4a34c10d390d3596615e9a47.tar.bz2 |
Remove unnecessary extern keyword from C API
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/conftest.py')
-rw-r--r-- | unittest/conftest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unittest/conftest.py b/unittest/conftest.py index 88bf7d0..f43f153 100644 --- a/unittest/conftest.py +++ b/unittest/conftest.py @@ -22,8 +22,8 @@ def C(request): a = iter(declarations) for declaration in a: - if declaration.startswith('extern') and not '"C"' in declaration: - declaration = declaration.replace('extern', '').strip() + if declaration.startswith('NK_C_API'): + declaration = declaration.replace('NK_C_API', '').strip() while not ';' in declaration: declaration += (next(a)).strip() print(declaration) |