1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-30 00:40:20 +02:00

(file-set-position): Make third argument optional,

for SCM compatibility.
(file-position): simplify definition.
This commit is contained in:
Marius Vollmer 2002-06-02 00:24:46 +00:00
parent a3a97bcdcc
commit cc5eb6357e

View file

@ -544,8 +544,10 @@
(define (tms:cutime obj) (vector-ref obj 3))
(define (tms:cstime obj) (vector-ref obj 4))
(define (file-position . args) (apply ftell args))
(define (file-set-position . args) (apply fseek args))
(define file-position ftell)
(define (file-set-position port offset . whence)
(let ((whence (if (eq? whence '()) SEEK_SET (car whence))))
(seek port offset whence)))
(define (move->fdes fd/port fd)
(cond ((integer? fd/port)