Readline-to-Racket: Rename file to mzrl.rkt to rktrl.rkt
This commit is contained in:
parent
b10f178e98
commit
0df8f39914
|
@ -1,6 +1,6 @@
|
|||
#lang racket/base
|
||||
|
||||
(require "mzrl.rkt" racket/list racket/file)
|
||||
(require "rktrl.rkt" racket/list racket/file)
|
||||
|
||||
;; --------------------------------------------------------------------------
|
||||
;; Configuration
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
(module readline racket/base
|
||||
(require "mzrl.rkt")
|
||||
(provide (all-from-out "mzrl.rkt")))
|
||||
#lang racket/base
|
||||
(require "rktrl.rkt")
|
||||
(provide (all-from-out "rktrl.rkt"))
|
||||
|
|
|
@ -126,7 +126,7 @@
|
|||
;; to avoid buffering issues between C and Racket, and to allow
|
||||
;; racket threads to run while waiting for input.
|
||||
(set-ffi-obj! "rl_getc_function" libreadline (_fun _pointer -> _int)
|
||||
(lambda (_)
|
||||
(lambda (_)
|
||||
(define next-byte (read-byte real-input-port))
|
||||
(if (eof-object? next-byte) -1 next-byte)))
|
||||
|
Loading…
Reference in New Issue
Block a user