diff options
author | Paul A. Patience <paul@apatience.com> | 2021-07-04 23:38:07 -0400 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-07-05 14:35:49 -0700 |
commit | c656cf912e32f394a525d970bce7b08e47f06333 (patch) | |
tree | 28e2a10ea4a44cb3500e7ad5a8fb0df4a6c67e57 /tests/012 | |
parent | b632bc645ba4fc72e1434cf58327b653bbf73c5b (diff) | |
download | txr-c656cf912e32f394a525d970bce7b08e47f06333.tar.gz txr-c656cf912e32f394a525d970bce7b08e47f06333.tar.bz2 txr-c656cf912e32f394a525d970bce7b08e47f06333.zip |
genman, lib, tests: use defvarl where possible.
* genman.txr (dupes, tagnum): Replace defvar with defvarl.
* stdlib/doc-lookup.tl (os-symbol): Same.
* tests/011/macros-3.tl (x): Same.
* tests/011/mandel.txr (x-centre, y-centre, width, i-max, j-max, n)
(r-max, pixel-size, x-offset, y-offset): Same.
(file, colour-max): Delete (unused) variables.
* tests/012/circ.tl (x): Replace defvar with defvarl.
* tests/012/stack.tl (stack-limited): Same.
* tests/012/struct.tl (s): Same.
* tests/013/maze.tl (vi, pa, sc): Delete variables. Use
function arguments instead.
(usage): Fix typo.
* tests/014/dgram-stream.tl (family): Rename to...
(*family*): ...this.
* tests/014/socket-basic.tl (socktype): Rename to...
(*socktype*): ...this.
(%iters%): Replace defvar with defvarl.
Diffstat (limited to 'tests/012')
-rw-r--r-- | tests/012/circ.tl | 6 | ||||
-rw-r--r-- | tests/012/stack.tl | 2 | ||||
-rw-r--r-- | tests/012/struct.tl | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/012/circ.tl b/tests/012/circ.tl index 4b6e9990..82abe745 100644 --- a/tests/012/circ.tl +++ b/tests/012/circ.tl @@ -5,9 +5,9 @@ (print me.a stream pretty-p) (put-string "]]" stream))) -(defvar x (let* ((l (list "a")) - (c (new circ-print a l))) - (list l c))) +(defvarl x (let* ((l (list "a")) + (c (new circ-print a l))) + (list l c))) (let ((*print-circle* t)) (prinl (new circ-print a "a")) diff --git a/tests/012/stack.tl b/tests/012/stack.tl index 9a7534bb..62df252b 100644 --- a/tests/012/stack.tl +++ b/tests/012/stack.tl @@ -1,6 +1,6 @@ (load "../common") -(defvar stack-limited (set-stack-limit 32768)) +(defvarl stack-limited (set-stack-limit 32768)) (defun recur () (recur)) diff --git a/tests/012/struct.tl b/tests/012/struct.tl index 3f03552d..bdff6311 100644 --- a/tests/012/struct.tl +++ b/tests/012/struct.tl @@ -16,7 +16,7 @@ (test (expand '^#S(bar b ,(+ 2 2))) (sys:make-struct-lit 'bar (list 'b (+ 2 2)))) -(defvar s (eval ^#S(bar b ,(+ 2 2)))) +(defvarl s (eval ^#S(bar b ,(+ 2 2)))) (test (set (slot s 'a) 100) 100) |