Commit 705d07c
committed
Bind a MEOS scalar at the width its ABI defines
A C type the mapping table does not name falls through to IntPtr, the
pointer-width opaque handle. The `_t` spellings libclang leaves unreduced
— int8_t through uint64_t — and `unsigned char` are absent from that
table, so 530 of the 4825 bound functions declared a scalar at pointer
width: 246 int64_t, 140 uint64_t, 38 uint32_t and 24 unsigned char
arguments, and 72 int64_t, 58 uint64_t, 56 uint32_t and one unsigned char
returns. A uint32_t returned as IntPtr reads eight bytes of a register the
ABI defines four of, so the value carries whatever the upper half held.
The enum types come from the catalog's own `enums` rather than from names
listed one at a time. The five listed names covered MeosType, interpType
and tempSubtype, missed IndexSearchOp, SPTreeKind, MeosPixType, MeosOper,
SkipListType and nullHandleType across 43 further parameters and returns,
and one of them — spanType — names no catalog enum at all. Reading the set
from the catalog is what keeps the next enum from arriving as a pointer.1 parent 8ad54ee commit 705d07c
1 file changed
Lines changed: 25 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
56 | 66 | | |
57 | 67 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 68 | | |
64 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
65 | 82 | | |
66 | 83 | | |
67 | 84 | | |
| |||
77 | 94 | | |
78 | 95 | | |
79 | 96 | | |
| 97 | + | |
| 98 | + | |
80 | 99 | | |
81 | 100 | | |
82 | 101 | | |
| |||
453 | 472 | | |
454 | 473 | | |
455 | 474 | | |
| 475 | + | |
456 | 476 | | |
457 | 477 | | |
458 | 478 | | |
| |||
0 commit comments