From: Joe Marshall Date: Wed, 24 Mar 2010 16:14:10 +0000 (-0700) Subject: New input port operation 'INPUT-LINE. X-Git-Tag: 20100708-Gtk~75 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=e1e522be9c6f0fa8fe9c03d26b80df5f3472fc11;p=mit-scheme.git New input port operation 'INPUT-LINE. --- diff --git a/src/runtime/input.scm b/src/runtime/input.scm index d3d55afff..fde4fb73a 100644 --- a/src/runtime/input.scm +++ b/src/runtime/input.scm @@ -131,6 +131,11 @@ USA. (let ((eof? (port/operation port 'EOF?))) (and eof? (eof? port)))) + +(define (input-port/line port) + (let ((operation (port/operation port 'INPUT-LINE))) + (and operation + (operation port)))) ;;;; High level diff --git a/src/runtime/runtime.pkg b/src/runtime/runtime.pkg index 28fb7de1a..e5525005d 100644 --- a/src/runtime/runtime.pkg +++ b/src/runtime/runtime.pkg @@ -2146,6 +2146,7 @@ USA. input-port/%read-char input-port/%peek-char input-port/char-ready? + input-port/line input-port/discard-chars input-port/eof? input-port/peek-char