summaryrefslogtreecommitdiffstats
path: root/tests/014/socket-basic.tl
diff options
context:
space:
mode:
authorPaul A. Patience <paul@apatience.com>2021-07-04 23:38:07 -0400
committerKaz Kylheku <kaz@kylheku.com>2021-07-05 14:35:49 -0700
commitc656cf912e32f394a525d970bce7b08e47f06333 (patch)
tree28e2a10ea4a44cb3500e7ad5a8fb0df4a6c67e57 /tests/014/socket-basic.tl
parentb632bc645ba4fc72e1434cf58327b653bbf73c5b (diff)
downloadtxr-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/014/socket-basic.tl')
-rw-r--r--tests/014/socket-basic.tl10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/014/socket-basic.tl b/tests/014/socket-basic.tl
index 1b4464fb..ae591c9b 100644
--- a/tests/014/socket-basic.tl
+++ b/tests/014/socket-basic.tl
@@ -1,12 +1,12 @@
(load "../sock-common.tl")
(load "../common.tl")
-(defvar socktype)
+(defvar *socktype*)
-(defvar %iters% (if (meql (os-symbol) :macos :openbsd) 2000 5000))
+(defvarl %iters% (if (meql (os-symbol) :macos :openbsd) 2000 5000))
(defun client (addr)
- (with-stream (cli-sock (open-socket af-inet socktype))
+ (with-stream (cli-sock (open-socket af-inet *socktype*))
(sock-connect cli-sock addr)
(put-string "5000" cli-sock)
(sock-shutdown cli-sock)
@@ -19,7 +19,7 @@
(close-stream acc-sock)))
(defun sock-test ()
- (let* ((svc-sock (open-socket af-inet socktype))
+ (let* ((svc-sock (open-socket af-inet *socktype*))
(svc-addr (bindfree svc-sock 1025 65535))
(child-pid (fork)))
(cond
@@ -29,6 +29,6 @@
(if (and (fboundp 'open-socket)
(fboundp 'fork))
- (each ((socktype (list sock-dgram sock-stream)))
+ (each ((*socktype* (list sock-dgram sock-stream)))
(unless (sock-test)
(error "test failed"))))