import only the modules each unit uses
An import brings the types and constants its interface needs now (sex#58): a module pub-imports what its pub forms hold, and sexc refuses one that does not. Every unit had imported its whole dependency chain in order to make up for it. worldgen also pub-imports json, whose cJSON.h its pub fns take pointers into; a type only C knows is not something sexc can check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
11
src/vsmv.sex
11
src/vsmv.sex
@@ -2,23 +2,12 @@
|
||||
;;; against a saved world and dumps what either side produced.
|
||||
|
||||
(include stdio.h string.h)
|
||||
;; An import brings in a module's own public forms but not the types
|
||||
;; they mention, so dependencies come first.
|
||||
;; TODO sex#58: import only the modules used here once an import brings
|
||||
;; the types its interface needs; until then, every dependency, in
|
||||
;; dependency order.
|
||||
(import cs)
|
||||
(import json)
|
||||
(import maps)
|
||||
(import lcg)
|
||||
(import noise)
|
||||
(import shape)
|
||||
(import save)
|
||||
(import dump)
|
||||
(import worldgen)
|
||||
(import fastnoise)
|
||||
(import rivers)
|
||||
(import terra)
|
||||
(import strata)
|
||||
(import settings)
|
||||
(import ores)
|
||||
|
||||
Reference in New Issue
Block a user