mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-03 13:20:26 +02:00
Added comments to functions that are used by "modules.c".
This commit is contained in:
parent
d2bc7faea7
commit
482a28f90a
1 changed files with 13 additions and 1 deletions
|
@ -1702,6 +1702,9 @@
|
|||
(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 (process-define-module args)
|
||||
(let* ((module-id (car args))
|
||||
(module (resolve-module module-id #f))
|
||||
|
@ -1796,6 +1799,9 @@
|
|||
|
||||
(define autoloads-in-progress '())
|
||||
|
||||
;; This function is called from "modules.c". If you change it, be
|
||||
;; sure to update "modules.c" as well.
|
||||
|
||||
(define (try-module-autoload module-name)
|
||||
(let* ((reverse-name (reverse module-name))
|
||||
(name (symbol->string (car reverse-name)))
|
||||
|
@ -2553,6 +2559,9 @@
|
|||
;; The guts of the use-modules macro. Add the interfaces of the named
|
||||
;; modules to the use-list of the current module, in order.
|
||||
|
||||
;; This function is called by "modules.c". If you change it, be sure
|
||||
;; to change scm_c_use_module as well.
|
||||
|
||||
(define (process-use-modules module-interface-args)
|
||||
(for-each (lambda (mif-args)
|
||||
(let ((mod-iface (apply resolve-interface mif-args)))
|
||||
|
@ -2619,7 +2628,10 @@
|
|||
(defmacro ,@args))))))
|
||||
|
||||
;; Export a local variable
|
||||
;;
|
||||
|
||||
;; This function is called from "modules.c". If you change it, be
|
||||
;; sure to update "modules.c" as well.
|
||||
|
||||
(define (module-export! m names)
|
||||
(let ((public-i (module-public-interface m)))
|
||||
(for-each (lambda (name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue