make each compiler module one file, built once
A module was a body plus a (module ...) wrapper naming its exports, and the wrapper came in up to three copies: the root's, a test one that exported everything, and sextest's, each recompiling the same body. csc -module makes a file a module by itself, with export forms in its body, so the wrappers are gone. tests/ and tools/sextest/ link what the root built, finding it on the repository path; the tests see what a module exports, and the names only they need are exported as such.
This commit is contained in:
51
types.scm
51
types.scm
@@ -12,9 +12,60 @@
|
||||
scheme
|
||||
(scheme base)
|
||||
(chicken base)
|
||||
(chicken module)
|
||||
srfi-1
|
||||
srfi-69)
|
||||
|
||||
(export
|
||||
add-struct
|
||||
add-union
|
||||
add-enum
|
||||
add-typedef
|
||||
add-define
|
||||
|
||||
type-match
|
||||
type-pattern-matches?
|
||||
map-fields
|
||||
|
||||
add-sum!
|
||||
get-sum
|
||||
add-constructor!
|
||||
get-constructor
|
||||
variant-fields
|
||||
reset-declarations!
|
||||
|
||||
add-spec!
|
||||
get-spec
|
||||
spec-parameter
|
||||
spec-methods
|
||||
add-realization!
|
||||
realizes?
|
||||
normalize-fields
|
||||
|
||||
add-method!
|
||||
get-method
|
||||
qualify-op
|
||||
ops-key
|
||||
|
||||
add-name-type!
|
||||
get-name-type
|
||||
type-of
|
||||
current-type-of
|
||||
get-return-type
|
||||
|
||||
get-type-info
|
||||
get-tag-info
|
||||
get-fields
|
||||
get-underlying-type
|
||||
|
||||
type-head?
|
||||
named-arg?
|
||||
named-arg-type
|
||||
arglist-types
|
||||
strip-pub
|
||||
array-bound?
|
||||
array-element-type)
|
||||
|
||||
;;; Two namespaces: `struct point' and a `point' typedef are separate
|
||||
;;; declarations. Tags -- struct, union and enum alike -- share the
|
||||
;;; second table between them
|
||||
|
||||
Reference in New Issue
Block a user