Files
bshell/bshell.runtime/runtime/output.c
T

21 lines
460 B
C
Raw Normal View History

#include <bshell/runtime/runtime.h>
#include <fx/type.h>
#include <fx/value-type.h>
void bshell_runtime_begin_output(struct bshell_runtime *rt)
{
bshell_value_writer_init(&rt->rt_writer, 0, 0, fx_stdout);
}
void bshell_runtime_output_value(
struct bshell_runtime *rt,
const fx_value *value)
{
bshell_value_writer_write(&rt->rt_writer, value);
}
void bshell_runtime_end_output(struct bshell_runtime *rt)
{
bshell_value_writer_cleanup(&rt->rt_writer);
}