File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
python/libgrass_interface_generator Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,24 @@ Currently installed version:
20
20
It is highly encouraged to report [ upstreams] ( https://github.com/ctypesgen/ctypesgen )
21
21
necessary patches for GRASS.
22
22
23
+ #### Add ` bool ` ctypes type map for C23 support
24
+
25
+ Add bool to ctypes type map. This change is needed for C23 support, where
26
+ _ Bool is not necessarily defined by default.
27
+
28
+ ``` diff
29
+ --- python/libgrass_interface_generator/ctypesgen/ctypedescs.py.orig
30
+ +++ python/libgrass_interface_generator/ctypesgen/ctypedescs.py
31
+ @@ -58,6 +58,7 @@
32
+ ("__uint64", False, 0): "c_uint64",
33
+ ("__uint64_t", False, 0): "c_uint64",
34
+ ("_Bool", True, 0): "c_bool",
35
+ + ("bool", True, 0): "c_bool",
36
+ }
37
+
38
+ ctypes_type_map_python_builtin = {
39
+ ```
40
+
23
41
#### Ctypes "unnamed structure member with 0 bit size"-patch
24
42
25
43
Using unnamed zero bit sized structure members, e.g.:
Original file line number Diff line number Diff line change 58
58
("__uint64" , False , 0 ): "c_uint64" ,
59
59
("__uint64_t" , False , 0 ): "c_uint64" ,
60
60
("_Bool" , True , 0 ): "c_bool" ,
61
+ ("bool" , True , 0 ): "c_bool" ,
61
62
}
62
63
63
64
ctypes_type_map_python_builtin = {
You can’t perform that action at this time.
0 commit comments