(struct, wow64)
| 903 | |
| 904 | |
| 905 | def struct_needs_conversion(struct, wow64): |
| 906 | name = canonical_typename(struct) |
| 907 | if name in EXEMPT_STRUCTS: |
| 908 | return False |
| 909 | if name in unique_structs: |
| 910 | return False |
| 911 | if name in MANUAL_STRUCTS: |
| 912 | return True |
| 913 | if name in PATH_CONV_STRUCTS: |
| 914 | return True |
| 915 | |
| 916 | abis = find_struct_abis(name) |
| 917 | if abis is None: return False |
| 918 | if abis['w32'].needs_conversion(abis['u32']): |
| 919 | return True |
| 920 | if abis['w64'].needs_conversion(abis['u64']): |
| 921 | return True |
| 922 | return wow64 |
| 923 | |
| 924 | |
| 925 | def underlying_type(decl): |
no test coverage detected