Bind a MEOS scalar at the width its ABI defines - #12
Merged
estebanzimanyi merged 1 commit intoSep 2, 2026
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A C type the mapping table does not name falls through to IntPtr, the
pointer-width opaque handle. The
_tspellings libclang leaves unreduced— int8_t through uint64_t — and
unsigned charare absent from thattable, 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
enumsrather than from nameslisted 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.