Add "io" module with beginnings of a File class.

This commit is contained in:
Bob Nystrom
2015-09-16 07:34:49 -07:00
parent 251752fcfb
commit dc527c8d86
10 changed files with 143 additions and 2 deletions

View File

@ -3,9 +3,11 @@
#include "modules.h"
#include "io.wren.inc"
#include "scheduler.wren.inc"
#include "timer.wren.inc"
#include "io.h"
#include "scheduler.h"
#include "timer.h"
@ -30,8 +32,9 @@ typedef struct
// The array of built-in modules.
static BuiltInModule modules[] =
{
{"io", &ioModuleSource, ioBindForeign, NULL},
{"scheduler", &schedulerModuleSource, schedulerBindForeign, NULL},
{"timer", &timerModuleSource, timerBindForeign, NULL},
{"timer", &timerModuleSource, timerBindForeign, NULL},
// Sentinel marking the end of the list.
{NULL, NULL, NULL, NULL}