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

@@ -72,11 +72,9 @@
(pub record tiles
((lock pthread-mutex-t) (wake pthread-cond-t)
;; TODO sex#50: write MAX-TILES once constants in array types are
;; kebab-converted.
(slots [tile MAX_TILES]) (index cell-map)
(queue [int MAX_TILES]) (queue-len int) (queue-pos int)
(free-slots [int MAX_TILES]) (free-count int)
(slots [tile MAX-TILES]) (index cell-map)
(queue [int MAX-TILES]) (queue-len int) (queue-pos int)
(free-slots [int MAX-TILES]) (free-count int)
(settings world-settings) (rivers river-config) (assets-dir [char 1024]) (generation int)
;; TODO sex#60: size with MAX-WORKERS once arrays of a header type
;; take a symbolic size.