mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
defconst, defvar: proclaim special at compile-time
(Best-ability ChangeLog annotation added by Christine Lemmer-Webber.) * module/language/elisp/compile-tree-il.scm (defconst, defvar): Use proclaim-special!.
This commit is contained in:
parent
de52c1b0a1
commit
c8f94d3917
1 changed files with 3 additions and 0 deletions
|
@ -482,6 +482,7 @@
|
|||
(defspecial defconst (loc args)
|
||||
(pmatch args
|
||||
((,sym ,value . ,doc)
|
||||
(proclaim-special! sym)
|
||||
(make-seq
|
||||
loc
|
||||
(make-call loc
|
||||
|
@ -495,12 +496,14 @@
|
|||
(defspecial defvar (loc args)
|
||||
(pmatch args
|
||||
((,sym)
|
||||
(proclaim-special! sym)
|
||||
(make-seq loc
|
||||
(make-call loc
|
||||
(make-module-ref loc runtime 'proclaim-special! #t)
|
||||
(list (make-const loc sym)))
|
||||
(make-const loc sym)))
|
||||
((,sym ,value . ,doc)
|
||||
(proclaim-special! sym)
|
||||
(make-seq
|
||||
loc
|
||||
(make-call loc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue