[Ecls-list] ecl_stream_to_handle bug? (Was: Latest changes)
Dave Roberts
dave at vyatta.com
Mon Oct 30 17:35:00 UTC 2006
Juan Jose Garcia-Ripoll wrote:
> - New C functions: ecl_stream_to_handle(), ecl_base_char_code(),
> ecl_type_error().
I'm all for ecl_stream_to_handle() (very handy). But I'm having a
problem under SLIME. I wrote a short FFI wrapper:
(defun stream-to-handle (stream output)
(c-inline (stream output) (:object :bool) :int
"ecl_stream_to_handle(#0, #1)"
:one-liner t))
Calling this in SLIME for *standard-input* and *standard-output* result
in -1, however:
POSIX> (stream-to-handle *standard-output* t)
-1
POSIX> (stream-to-handle *standard-input* nil)
-1
POSIX>
This works when ECL is run in a terminal, however. Standard input and
output are obviously not closed when running under SLIME, however, as
you can use them in FORMAT, etc.
-- Dave
More information about the ecl-devel
mailing list