diff options
| author | Andre Weissflog <floooh@gmail.com> | 2024-05-12 13:50:33 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2024-05-12 13:50:33 +0200 |
| commit | 32314cf0f0805fe52baf290775d7131b30815bbd (patch) | |
| tree | 53ddfb10966ee578138b4edc1e757488b95b52a3 /bindgen | |
| parent | 8f722b9b00cce720e009cd789763e03528f114b2 (diff) | |
gen_d.py: remove 'scope' on extern(C) function args
Diffstat (limited to 'bindgen')
| -rw-r--r-- | bindgen/gen_d.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bindgen/gen_d.py b/bindgen/gen_d.py index eca511f4..9665bedc 100644 --- a/bindgen/gen_d.py +++ b/bindgen/gen_d.py @@ -215,15 +215,15 @@ def as_c_arg_type(arg_type, prefix): elif util.is_void_ptr(arg_type): return "void*" elif util.is_const_void_ptr(arg_type): - return "scope const(void)*" + return "const(void)*" elif util.is_string_ptr(arg_type): - return "scope const(char)*" + return "const(char)*" elif is_const_struct_ptr(arg_type): - return f"scope const {as_d_struct_type(util.extract_ptr_type(arg_type), prefix)} *" + return f"const {as_d_struct_type(util.extract_ptr_type(arg_type), prefix)} *" elif is_prim_ptr(arg_type): - return f"scope {as_d_prim_type(util.extract_ptr_type(arg_type))} *" + return f"{as_d_prim_type(util.extract_ptr_type(arg_type))} *" elif is_const_prim_ptr(arg_type): - return f"scope const {as_d_prim_type(util.extract_ptr_type(arg_type))} *" + return f"const {as_d_prim_type(util.extract_ptr_type(arg_type))} *" else: sys.exit(f"Error as_c_arg_type(): {arg_type}") |