size arrays by the constants' own names

sexc converts an array bound's name now (sex#50), so MAX_STRATA and
the like go back to being written as defined.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-09 18:06:24 +03:00
parent 28f0e8acac
commit d299ba05ac
9 changed files with 31 additions and 65 deletions

View File

@@ -127,10 +127,8 @@
(var e extent (save/extent s "mapregion"))
(var cell int 32)
(var diff image (image/make (* (+ (- (. e x1) (. e x0)) 1) cell) (* (+ (- (. e z1) (. e z0)) 1) cell)))
;; TODO sex#50: write MAX-MINERALS once constants in array types are
;; kebab-converted.
(var codes [* char MAX_MINERALS])
(var want [int-map MAX_MINERALS])
(var codes [* char MAX-MINERALS])
(var want [int-map MAX-MINERALS])
(var t tally)
(memset (& t) 0 (sizeof t))
(var unknown int 0)