Skip to content

core: route cvector malloc/realloc/memmove through Nuklear's allocator#201

Merged
RobLoach merged 2 commits into
masterfrom
fix/route-alloc-through-nuklear-194
May 23, 2026
Merged

core: route cvector malloc/realloc/memmove through Nuklear's allocator#201
RobLoach merged 2 commits into
masterfrom
fix/route-alloc-through-nuklear-194

Conversation

@RobLoach
Copy link
Copy Markdown
Owner

Uses a fat-pointer scheme (each allocation prefixed with its nk_size) so that malloc, free, and realloc all route through NK_CONSOLE_MALLOC/NK_CONSOLE_FREE without depending on stdlib. Also implements memmove as a direction-aware copy to handle overlapping array regions without stdlib.

Fixes #194.

Uses a fat-pointer scheme (each allocation prefixed with its size) so that
malloc, free, and realloc all go through NK_CONSOLE_MALLOC/FREE without
needing stdlib. Implements memmove as a direction-aware copy to handle
overlapping regions. Fixes #194.
@RobLoach RobLoach self-assigned this May 23, 2026
@RobLoach
Copy link
Copy Markdown
Owner Author

Add doxygen docs.

@RobLoach RobLoach marked this pull request as draft May 23, 2026 02:15
@RobLoach RobLoach marked this pull request as ready for review May 23, 2026 02:22
@RobLoach RobLoach merged commit 7399d0f into master 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.

core: Route internal malloc/realloc/memmove through Nuklear's allocator

1 participant