mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-15 08:57:33 +02:00
Redefining term-attrs-[io]speed[-set!] in terms of accessor functions,
cfgetispeed, cfgetospeed, cfsetispeed and cfsetospeed, instead of non-portable field names.
This commit is contained in:
parent
6c0c3e53e9
commit
cc4ec96001
1 changed files with 8 additions and 2 deletions
|
@ -10,8 +10,14 @@
|
||||||
(unsigned-long c_cflag term-attrs-cflag term-attrs-cflag-set!)
|
(unsigned-long c_cflag term-attrs-cflag term-attrs-cflag-set!)
|
||||||
(unsigned-long c_lflag term-attrs-lflag term-attrs-lflag-set!)
|
(unsigned-long c_lflag term-attrs-lflag term-attrs-lflag-set!)
|
||||||
;;(unsigned-char (c_cc 22) term-attrs-cc term-attrs-cc-set!)
|
;;(unsigned-char (c_cc 22) term-attrs-cc term-attrs-cc-set!)
|
||||||
(unsigned-long c_ispeed term-attrs-ispeed term-attrs-ispeed-set!)
|
;;(unsigned-long c_ispeed term-attrs-ispeed term-attrs-ispeed-set!)
|
||||||
(unsigned-long c_ospeed term-attrs-ospeed term-attrs-ospeed-set!))
|
;;(unsigned-long c_ospeed term-attrs-ospeed term-attrs-ospeed-set!)
|
||||||
|
)
|
||||||
|
|
||||||
|
(define-c unsigned-long (term-attrs-ispeed cfgetispeed) (termios))
|
||||||
|
(define-c unsigned-long (term-attrs-ospeed cfgetospeed) (termios))
|
||||||
|
(define-c errno (term-attrs-ispeed-set! cfsetispeed) (termios unsigned-long))
|
||||||
|
(define-c errno (term-attrs-ospeed-set! cfsetospeed) (termios unsigned-long))
|
||||||
|
|
||||||
(define-c-struct winsize
|
(define-c-struct winsize
|
||||||
predicate: winsize?
|
predicate: winsize?
|
||||||
|
|
Loading…
Add table
Reference in a new issue