aboutsummaryrefslogtreecommitdiff
path: root/module/vulgar
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-12-20 22:06:44 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-12-20 22:06:44 +0100
commitf8dd3392021754225dae6925d0931ff08d06dd00 (patch)
tree49ffe6fa856d25255444148a85df8016317f9e31 /module/vulgar
parentRemove re-export-modules (diff)
downloadcalp-f8dd3392021754225dae6925d0931ff08d06dd00.tar.gz
calp-f8dd3392021754225dae6925d0931ff08d06dd00.tar.xz
Remove procedure map-each
Was only used once, and wasn't even optimized.
Diffstat (limited to 'module/vulgar')
-rw-r--r--module/vulgar/termios.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/vulgar/termios.scm b/module/vulgar/termios.scm
index 75181ff3..f88882c9 100644
--- a/module/vulgar/termios.scm
+++ b/module/vulgar/termios.scm
@@ -102,7 +102,7 @@
;; Macro for creating accessor bindings for slots in a list, which are wrapped
;; inside a <termios> record. Called exactly once below.
(define-macro (create-bindings! . symbols)
- `(begin ,@(map-each
+ `(begin ,@(map
(lambda (symb i)
`(define-public ,symb
(make-procedure-with-setter
@@ -110,7 +110,8 @@
(lambda (t v) (let ((lst (as-list t)))
(list-set! lst ,i v)
(set-list! t lst))))))
- symbols)))
+ symbols
+ (iota (length symbols)))))
(create-bindings! ; accessors
iflag oflag cflag lflag line cc ispeed ospeed)