mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-bigint: implement mpz context architecture migration
Systematically convert mpz functions from mrb_state parameters to unified mpz_ctx_t context parameters containing both mrb_state and optional pool. Key changes: - Convert 40+ core mpz functions to use mpz_ctx_t *ctx parameters - Unify mpz_init to eliminate code duplication with mpz_init_pool - Update public interface functions to create contexts when calling core mpz functions - Convert pool management functions and macros to use context architecture - Fix all context parameter passing (by reference vs by value) issues This establishes the foundation for pool-safe operations throughout the mruby-bigint library while maintaining backward compatibility. Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
+523
-432
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user