mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 09:10:22 +02:00
scm_c_define_module uses define-module*
* libguile/modules.c (scm_c_define_module): * module/ice-9/boot-9.scm: Update to have the C function call define-module*.
This commit is contained in:
parent
f7f62d3ac5
commit
57ced5b97a
2 changed files with 8 additions and 8 deletions
|
@ -2137,7 +2137,7 @@ If there is no handler at all, Guile prints an error and then exits."
|
|||
;; Cheat. These bindings are needed by modules.c, but we don't want
|
||||
;; to move their real definition here because that would be unnatural.
|
||||
;;
|
||||
(define process-define-module #f)
|
||||
(define define-module* #f)
|
||||
(define process-use-modules #f)
|
||||
(define module-export! #f)
|
||||
(define default-duplicate-binding-procedures #f)
|
||||
|
@ -2357,6 +2357,9 @@ If there is no handler at all, Guile prints an error and then exits."
|
|||
(lambda (symbol)
|
||||
(symbol-append prefix symbol)))
|
||||
|
||||
;; This function is called from "modules.c". If you change it, be
|
||||
;; sure to update "modules.c" as well.
|
||||
|
||||
(define* (define-module* name
|
||||
#:key filename pure version (duplicates '())
|
||||
(imports '()) (exports '()) (replacements '())
|
||||
|
@ -2432,9 +2435,6 @@ If there is no handler at all, Guile prints an error and then exits."
|
|||
(run-hook module-defined-hook module)
|
||||
module))
|
||||
|
||||
;; This function is called from "modules.c". If you change it, be
|
||||
;; sure to update "modules.c" as well.
|
||||
|
||||
(define (process-define-module args)
|
||||
(define (missing kw)
|
||||
(error "missing argument to define-module keyword" kw))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue