modulerecords keep the path now.
This commit is contained in:
parent
2bb4666645
commit
9988201d06
|
@ -395,7 +395,8 @@
|
|||
|
||||
|
||||
;; Installs a module record into the machine
|
||||
(define-struct: InstallModuleEntry! ([name : ModuleName]
|
||||
(define-struct: InstallModuleEntry! ([name : Symbol]
|
||||
[path : ModuleName]
|
||||
[entry-point : Symbol])
|
||||
#:transparent)
|
||||
|
||||
|
|
|
@ -127,5 +127,6 @@
|
|||
|
||||
[(InstallModuleEntry!? op)
|
||||
(format "MACHINE.modules[~s]=new RUNTIME.ModuleRecord(~s, ~a);"
|
||||
(symbol->string (ModuleName-name (InstallModuleEntry!-name op)))
|
||||
(symbol->string (ModuleName-name (InstallModuleEntry!-path op)))
|
||||
(symbol->string (InstallModuleEntry!-name op))
|
||||
(assemble-label (make-Label (InstallModuleEntry!-entry-point op))))]))
|
||||
|
|
|
@ -62,7 +62,8 @@
|
|||
#:mutable)
|
||||
|
||||
|
||||
(define-struct: module-record ([name : ModuleName]
|
||||
(define-struct: module-record ([name : Symbol]
|
||||
[self-path : Symbol]
|
||||
[label : Symbol]
|
||||
[invoked? : Boolean]
|
||||
[exports : (HashTable Symbol PrimitiveValue)])
|
||||
|
|
|
@ -412,8 +412,10 @@
|
|||
|
||||
[(InstallModuleEntry!? op)
|
||||
(hash-set! (machine-modules m)
|
||||
(ModuleName-name (InstallModuleEntry!-name op))
|
||||
(ModuleName-name (InstallModuleEntry!-path op))
|
||||
(make-module-record (InstallModuleEntry!-name op)
|
||||
(ModuleName-name
|
||||
(InstallModuleEntry!-path op))
|
||||
(InstallModuleEntry!-entry-point op)
|
||||
#f
|
||||
(make-hash)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user