mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-07-04 00:30:30 +02:00
more steps on the way to boot-time syncase
* module/ice-9/boot-9.scm: Define a version of module-add! for psyntax, before modules are booted. * module/ice-9/psyntax.scm: Remove a warning, and rename a variable. Initialize a new variable to 'sc-macro, though it will have no effect. * module/ice-9/psyntax-pp.scm: Regenerated.
This commit is contained in:
parent
819cf0e8b8
commit
757937c290
3 changed files with 18 additions and 16 deletions
|
@ -129,6 +129,8 @@
|
||||||
;; psyntax does want a module-name definition, so give it one.
|
;; psyntax does want a module-name definition, so give it one.
|
||||||
(define (module-name x)
|
(define (module-name x)
|
||||||
#f)
|
#f)
|
||||||
|
(define (module-add! module sym var)
|
||||||
|
(hashq-set! (%get-pre-modules-obarray) sym var))
|
||||||
|
|
||||||
;; (eval-when (situation...) form...)
|
;; (eval-when (situation...) form...)
|
||||||
;;
|
;;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -337,12 +337,12 @@
|
||||||
((_) (gensym))))
|
((_) (gensym))))
|
||||||
|
|
||||||
(define put-global-definition-hook
|
(define put-global-definition-hook
|
||||||
(lambda (symbol binding module)
|
(lambda (symbol binding modname)
|
||||||
(let* ((module (if module
|
(let* ((module (if modname
|
||||||
(resolve-module module)
|
(resolve-module modname)
|
||||||
(warn "wha" symbol (current-module))))
|
(current-module)))
|
||||||
(v (or (module-variable module symbol)
|
(v (or (module-variable module symbol)
|
||||||
(let ((v (make-variable sc-macro)))
|
(let ((v (make-variable 'sc-macro)))
|
||||||
(module-add! module symbol v)
|
(module-add! module symbol v)
|
||||||
v))))
|
v))))
|
||||||
;; Don't destroy Guile macros corresponding to primitive syntax
|
;; Don't destroy Guile macros corresponding to primitive syntax
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue