Skip to content

libap: add idx_t (ptrdiff_t) xmalloc variants#150

Merged
staalmannen merged 1 commit into
mainfrom
claude/upgrade-ape-c-library-mmZGd
May 23, 2026
Merged

libap: add idx_t (ptrdiff_t) xmalloc variants#150
staalmannen merged 1 commit into
mainfrom
claude/upgrade-ape-c-library-mmZGd

Conversation

@staalmannen

Copy link
Copy Markdown
Owner

Add ximalloc, xirealloc, xicalloc, xizalloc, ximemdup, ximemdup0 — the signed-size (idx_t) counterparts to the size_t xmalloc family. Implemented as simple casts to size_t delegating to the existing unsigned variants. gnulib's idx_t is typedef'd as ptrdiff_t.

https://claude.ai/code/session_01WGAwvvTwDg2yknFkmZ3qzs

Add ximalloc, xirealloc, xicalloc, xizalloc, ximemdup, ximemdup0 —
the signed-size (idx_t) counterparts to the size_t xmalloc family.
Implemented as simple casts to size_t delegating to the existing
unsigned variants. gnulib's idx_t is typedef'd as ptrdiff_t.

https://claude.ai/code/session_01WGAwvvTwDg2yknFkmZ3qzs
@staalmannen staalmannen merged commit 5c946a5 into main May 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants