factor/vm/io.hpp

25 lines
359 B
C++
Raw Normal View History

2009-05-04 02:46:13 -04:00
namespace factor
{
2009-05-05 12:33:35 -04:00
void init_c_io();
void io_error();
2009-05-02 05:04:19 -04:00
PRIMITIVE(fopen);
PRIMITIVE(fgetc);
PRIMITIVE(fread);
PRIMITIVE(fputc);
PRIMITIVE(fwrite);
PRIMITIVE(fflush);
PRIMITIVE(fseek);
PRIMITIVE(fclose);
2009-05-02 05:04:19 -04:00
/* Platform specific primitives */
PRIMITIVE(open_file);
PRIMITIVE(existsp);
PRIMITIVE(read_dir);
2009-05-05 12:33:35 -04:00
VM_C_API int err_no();
VM_C_API void clear_err_no();
2009-05-04 02:46:13 -04:00
}