+ when importing scheme, hide the procedures which are about to be
overwritten + introduce structure scheme-with-scsh which exports the compound interface of scheme and scsh. Instead of the fragile (open scsh scheme) you can now use (open scheme-with-scsh). + removed superfluous partial-s48-ports
This commit is contained in:
parent
79488af494
commit
b2f0570a86
|
@ -113,17 +113,6 @@
|
|||
bitwise)
|
||||
(files endian))
|
||||
|
||||
(define-structure partial-s48-ports
|
||||
(export current-input-port current-output-port
|
||||
newline
|
||||
current-error-port
|
||||
|
||||
$current-input-port
|
||||
$current-output-port
|
||||
$current-error-port
|
||||
$current-noise-port)
|
||||
(open ports i/o))
|
||||
|
||||
;;; The scsh-level-0 package is for implementation convenience.
|
||||
;;; The scsh startup and top-level modules need access to scsh
|
||||
;;; procedures, but they export procedures that are themselves
|
||||
|
@ -192,7 +181,6 @@
|
|||
ascii
|
||||
records
|
||||
extended-ports
|
||||
partial-s48-ports
|
||||
ports
|
||||
build
|
||||
bigbit
|
||||
|
@ -226,10 +214,16 @@
|
|||
thread-fluids ; For exec-path-list
|
||||
loopholes ; For my bogus CALL-TERMINALLY implementation.
|
||||
|
||||
scheme
|
||||
(modify scheme (hide call-with-input-file
|
||||
call-with-output-file
|
||||
with-input-from-file
|
||||
with-output-to-file
|
||||
open-input-file
|
||||
open-output-file))
|
||||
|
||||
low-interrupt ; for sighandler and procobj
|
||||
i/o ; all these seem to be for scsh-0.6 JMG
|
||||
;; all these seem to be for scsh-0.6 JMG
|
||||
i/o
|
||||
i/o-internal
|
||||
channels channel-i/o
|
||||
low-channels
|
||||
|
@ -330,7 +324,12 @@
|
|||
low-interrupt
|
||||
sigevents
|
||||
primitives
|
||||
scheme)
|
||||
(modify scheme (hide call-with-input-file
|
||||
call-with-output-file
|
||||
with-input-from-file
|
||||
with-output-to-file
|
||||
open-input-file
|
||||
open-output-file)))
|
||||
(access threads-internal)
|
||||
(files startup))
|
||||
|
||||
|
@ -485,6 +484,17 @@
|
|||
; (optimize auto-integrate)
|
||||
)
|
||||
|
||||
(define-structure scheme-with-scsh
|
||||
(compound-interface (interface-of scsh)
|
||||
(interface-of scheme))
|
||||
(open scsh
|
||||
(modify scheme (hide call-with-input-file
|
||||
call-with-output-file
|
||||
with-input-from-file
|
||||
with-output-to-file
|
||||
open-input-file
|
||||
open-output-file))))
|
||||
|
||||
(define-structure scsh-here-string-hax (export)
|
||||
(open reading
|
||||
receiving
|
||||
|
|
Loading…
Reference in New Issue