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

@@ -17,11 +17,9 @@
(pub define CHUNK-AREA 1024)
(pub define MAX-STORIES 32)
;; TODO sex#50: write CHUNK-AREA once constants in array types are
;; kebab-converted.
(pub record chunk-maps
((terrain-height [u16 CHUNK_AREA]) (rain-height [u16 CHUNK_AREA])
(top-rock [i32 CHUNK_AREA]) (river-distance [u16 CHUNK_AREA])
((terrain-height [u16 CHUNK-AREA]) (rain-height [u16 CHUNK-AREA])
(top-rock [i32 CHUNK-AREA]) (river-distance [u16 CHUNK-AREA])
(has-river-distance bool)))
(pub record story-location ((code [char 64]) (x i32) (y i32) (z i32)))
@@ -34,9 +32,7 @@
((db (* sqlite3)) (seed i32) (size-x i32) (size-y i32) (size-z i32)
(config-keys (* * char)) (config-values (* * char)) (config-count int)
(block-codes (* * char)) (block-count int)
;; TODO sex#50: write MAX-STORIES once constants in array types are
;; kebab-converted.
(stories [story-location MAX_STORIES]) (story-count int)
(stories [story-location MAX-STORIES]) (story-count int)
;; every player's stored pick readings
(pick-readings (* pick-reading)) (pick-reading-count int)))