mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 08:47:35 +02:00
Placeholders for bin/txt port prims
This commit is contained in:
parent
123c20d60d
commit
48ce2709b9
1 changed files with 15 additions and 13 deletions
|
@ -185,28 +185,23 @@
|
|||
denominator
|
||||
numerator
|
||||
parameterize
|
||||
read-bytevector
|
||||
read-bytevector!
|
||||
write-bytevector
|
||||
peek-u8
|
||||
read-u8
|
||||
write-u8
|
||||
binary-port?
|
||||
textual-port?
|
||||
|
||||
;;;;
|
||||
; Possibly missing functions:
|
||||
;
|
||||
; ; following byte vector functions are not implemented yet:
|
||||
read-bytevector
|
||||
read-bytevector!
|
||||
write-bytevector
|
||||
;
|
||||
; : No unicode support at this time
|
||||
peek-u8
|
||||
read-u8
|
||||
; u8-ready?
|
||||
write-u8
|
||||
;
|
||||
; ; No complex or rational numbers at this time
|
||||
; rationalize
|
||||
;
|
||||
; ;; no binary/text ports yet
|
||||
; binary-port?
|
||||
; textual-port?
|
||||
;
|
||||
; ;; syntax-rules
|
||||
; define-values
|
||||
;
|
||||
|
@ -705,6 +700,13 @@
|
|||
(loop (if chr (cons chr acc) acc)
|
||||
(- i 1)
|
||||
(read-char port))))))))
|
||||
;; TODO: the following procedures should be a bit smarter, but we would
|
||||
;; need to track binary/text as part of port_type
|
||||
(define (binary-port? obj)
|
||||
(port? obj))
|
||||
(define (textual-port? obj)
|
||||
(port? obj))
|
||||
;;
|
||||
(define (flush-output-port . port)
|
||||
(if (null? port)
|
||||
(Cyc-flush-output-port (current-output-port))
|
||||
|
|
Loading…
Add table
Reference in a new issue