mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
22a6debf40
Renamed size calculation helpers for clarity: - kh_data_size_##name() -> kh_kv_size_##name() (keys and values only) - Added kh_htable_size_##name() (complete hash table including flags) Updated all usages and simplified patterns: - kh_kv_size_##name(n) + n/4 -> kh_htable_size_##name(n) The new names clearly distinguish between: - kv_size: just the key-value data - htable_size: complete hash table allocation (data + flags) This eliminates confusion and makes the code more self-documenting. Co-authored-by: Claude <noreply@anthropic.com>