1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-17 01:00:20 +02:00

r7rs: 'read-u8' now defaults to 'current-input-port'.

Fixes <https://bugs.gnu.org/62690>.
Reported by Rui Zhang <zrui16@hotmail.com>.

* module/scheme/base.scm (read-u8): Change default value of 'port'.
This commit is contained in:
Ludovic Courtès 2023-07-16 22:29:19 +02:00
parent dcccaddf7b
commit d5659b7869
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,5 @@
;;; R7RS compatibility libraries
;;; Copyright (C) 2019-2021 Free Software Foundation, Inc.
;;; Copyright (C) 2019-2021, 2023 Free Software Foundation, Inc.
;;;
;;; This library is free software: you can redistribute it and/or modify
;;; it under the terms of the GNU Lesser General Public License as
@ -368,7 +368,7 @@
(define* (peek-u8 #:optional (port (current-input-port)))
(lookahead-u8 port))
(define* (read-u8 #:optional (port (current-output-port)))
(define* (read-u8 #:optional (port (current-input-port)))
(get-u8 port))
(define* (read-bytevector len #:optional (port (current-input-port)))