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:
Yukihiro "Matz" Matsumoto
2025-07-26 18:18:45 +09:00
parent ab907da25c
commit 332f43e79a
File diff suppressed because it is too large Load Diff