mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-06 12:10:28 +02:00
* syncase.scm: Don't tamper with debug mode setting when enabling
macros. Instead cut the stack with start-stack.
This commit is contained in:
parent
4f9cefe3c3
commit
19ef2a9bdb
2 changed files with 11 additions and 9 deletions
|
@ -1,5 +1,8 @@
|
|||
Tue Aug 19 02:39:41 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
|
||||
|
||||
* syncase.scm: Don't tamper with debug mode setting when enabling
|
||||
macros. Instead cut the stack with start-stack.
|
||||
|
||||
* psyntax.pp, psyntax.ss (quasiquote): Changed fx= --> =.
|
||||
|
||||
* * syncase.scm: New file: Guile-adaption for syntax-case macros.
|
||||
|
|
|
@ -40,11 +40,12 @@
|
|||
(and (apply f (cons x xr)) (andmap first rest)))))))))
|
||||
|
||||
(define (error who format-string why what)
|
||||
(start-stack 'syncase-stack
|
||||
(scm-error 'misc-error
|
||||
who
|
||||
"%s %S"
|
||||
(list why what)
|
||||
'()))
|
||||
'())))
|
||||
|
||||
(define putprop set-symbol-property!)
|
||||
(define getprop symbol-property)
|
||||
|
@ -102,11 +103,9 @@
|
|||
|
||||
;;; *fixme*
|
||||
(define-public (eval-enable x)
|
||||
(variable-set! (builtin-variable 'scm:eval-transformer) sc-expand)
|
||||
(debug-disable 'debug))
|
||||
(variable-set! (builtin-variable 'scm:eval-transformer) sc-expand))
|
||||
|
||||
(define-public (eval-disable x)
|
||||
(variable-set! (builtin-variable 'scm:eval-transformer) #f)
|
||||
(debug-enable 'debug))
|
||||
(variable-set! (builtin-variable 'scm:eval-transformer) #f))
|
||||
|
||||
(eval-enable 'syncase)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue