mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
psyntax: Reorder global-extend
* module/ice-9/psyntax.scm (global-extend): Put at the beginning. * module/ice-9/psyntax-pp.scm: Regenerate.
This commit is contained in:
parent
81645a25d3
commit
2395f3b74c
1 changed files with 4 additions and 6 deletions
|
@ -207,6 +207,10 @@
|
|||
(define (local-eval x mod)
|
||||
(primitive-eval x))
|
||||
|
||||
(define (global-extend type sym val)
|
||||
(module-define! (current-module) sym
|
||||
(make-syntax-transformer sym type val)))
|
||||
|
||||
(define (sourcev-filename s) (vector-ref s 0))
|
||||
(define (sourcev-line s) (vector-ref s 1))
|
||||
(define (sourcev-column s) (vector-ref s 2))
|
||||
|
@ -439,12 +443,6 @@
|
|||
(_
|
||||
(macros-only-env r))))))
|
||||
|
||||
(define (global-extend type sym val)
|
||||
(module-define! (current-module)
|
||||
sym
|
||||
(make-syntax-transformer sym type val)))
|
||||
|
||||
|
||||
;; Conceptually, identifiers are always syntax objects. Internally,
|
||||
;; however, the wrap is sometimes maintained separately (a source of
|
||||
;; efficiency and confusion), so that symbols are also considered
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue