guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 05/05: REPL server: Avoid deprecated '_IOFBF'.


From: Ludovic Courtès
Subject: [Guile-commits] 05/05: REPL server: Avoid deprecated '_IOFBF'.
Date: Sun, 30 Jun 2019 15:49:06 -0400 (EDT)

civodul pushed a commit to branch stable-2.2
in repository guile.

commit 80213804ad219e7bbd273956c0913c294332f065
Author: Ludovic Courtès <address@hidden>
Date:   Sun Jun 30 21:41:52 2019 +0200

    REPL server: Avoid deprecated '_IOFBF'.
    
    * module/system/repl/server.scm (drain-input-and-close): Use 'block
    instead of _IOFBF.
---
 module/system/repl/server.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/module/system/repl/server.scm b/module/system/repl/server.scm
index d733939..9bc11af 100644
--- a/module/system/repl/server.scm
+++ b/module/system/repl/server.scm
@@ -211,7 +211,7 @@ and then close it.  Return the drained input as a string."
     (lambda ()
       ;; Enable full buffering mode on the socket to allow
       ;; 'get-bytevector-some' to return non-trivial chunks.
-      (setvbuf socket _IOFBF))
+      (setvbuf socket 'block))
     (lambda ()
       (let loop ((chunks '()))
         (let ((result (and (char-ready? socket)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]