mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-03 13:20:26 +02:00
* psyntax.ss (build-lexical-var): Use gensym instead of gentemp.
* match.scm: Likewise. * expect.scm: Likewise. * psyntax.pp: Regenerated.
This commit is contained in:
parent
d866f4455b
commit
872bd19470
4 changed files with 15 additions and 15 deletions
|
@ -45,10 +45,10 @@
|
||||||
;;; expect: each test is a procedure which is applied to the accumulating
|
;;; expect: each test is a procedure which is applied to the accumulating
|
||||||
;;; string.
|
;;; string.
|
||||||
(defmacro-public expect clauses
|
(defmacro-public expect clauses
|
||||||
(let ((s (gentemp))
|
(let ((s (gensym))
|
||||||
(c (gentemp))
|
(c (gensym))
|
||||||
(port (gentemp))
|
(port (gensym))
|
||||||
(timeout (gentemp)))
|
(timeout (gensym)))
|
||||||
`(let ((,s "")
|
`(let ((,s "")
|
||||||
(,port (or expect-port (current-input-port)))
|
(,port (or expect-port (current-input-port)))
|
||||||
;; when timeout occurs, in floating point seconds.
|
;; when timeout occurs, in floating point seconds.
|
||||||
|
@ -123,7 +123,7 @@
|
||||||
(cond ((null? tests)
|
(cond ((null? tests)
|
||||||
(list (reverse defs) `(expect ,@(reverse body))))
|
(list (reverse defs) `(expect ,@(reverse body))))
|
||||||
(else
|
(else
|
||||||
(let ((rxname (gentemp)))
|
(let ((rxname (gensym)))
|
||||||
(next-test (cdr tests)
|
(next-test (cdr tests)
|
||||||
(cdr exprs)
|
(cdr exprs)
|
||||||
(cons `(,rxname (make-regexp
|
(cons `(,rxname (make-regexp
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -424,7 +424,7 @@
|
||||||
|
|
||||||
(define-syntax build-lexical-var
|
(define-syntax build-lexical-var
|
||||||
(syntax-rules ()
|
(syntax-rules ()
|
||||||
((_ src id) (gentemp (symbol->string id) generated-symbols))))
|
((_ src id) (gensym (symbol->string id)))))
|
||||||
|
|
||||||
(define-syntax self-evaluating?
|
(define-syntax self-evaluating?
|
||||||
(syntax-rules ()
|
(syntax-rules ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue