20#define C_IO_IN L"*in*"
21#define C_IO_OUT L"*out*"
An indirect pointer to a cons cell.
int io_init()
Initialise the I/O subsystem.
wint_t url_ungetwc(wint_t wc, URL_FILE *input)
struct cons_pointer lisp_io_in
bound to the Lisp string representing C_IO_IN in initialisation.
wint_t url_fgetwc(URL_FILE *input)
get one wide character from the buffer.
struct cons_pointer lisp_open(struct stack_frame *frame, struct cons_pointer frame_pointer, struct cons_pointer env)
Function: return a stream open on the URL indicated by the first argument; if a second argument is pr...
struct cons_pointer lisp_io_out
bound to the Lisp string representing C_IO_OUT in initialisation.
struct cons_pointer lisp_slurp(struct stack_frame *frame, struct cons_pointer frame_pointer, struct cons_pointer env)
Function: return a string representing all characters from the stream indicated by arg 0; further arg...
char * lisp_string_to_c_string(struct cons_pointer s)
Convert this lisp string-like-thing (also works for symbols, and, later keywords) into a UTF-8 string...
URL_FILE * file_to_url_file(FILE *f)
given this file handle f, return a new url_file handle wrapping it.
struct cons_pointer get_default_stream(bool inputp, struct cons_pointer env)
Resutn the current default input, or of inputp is false, output stream from this environment.
struct cons_pointer lisp_close(struct stack_frame *frame, struct cons_pointer frame_pointer, struct cons_pointer env)
Function, sort-of: close the file indicated by my first arg, and return nil.
CURLSH * io_share
The sharing hub for all connections.
struct cons_pointer lisp_read_char(struct stack_frame *frame, struct cons_pointer frame_pointer, struct cons_pointer env)
Function: return the next character from the stream indicated by arg 0; further arguments are ignored...