18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
;;======================================================================
;;======================================================================
;; Process convience utils
;;======================================================================
(use regex directory-utils)
(declare (unit process))
(define (process:conservative-read port)
(let loop ((res ""))
(if (not (eof-object? (peek-char port)))
(loop (conc res (read-char port)))
res)))
|
>
|
>
>
>
>
>
>
>
>
|
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
;;======================================================================
;;======================================================================
;; Process convience utils
;;======================================================================
(import
regex directory-utils
chicken.condition
chicken.file
chicken.io
chicken.process
chicken.process-context.posix
chicken.string
srfi-18
)
(declare (unit process))
(define (process:conservative-read port)
(let loop ((res ""))
(if (not (eof-object? (peek-char port)))
(loop (conc res (read-char port)))
res)))
|