void ekModuleRegisterFile(struct ekContext *E) { ekValue *module = ekContextAddModule(E, "file", fileFuncs); ekValueTypeRegisterFile(E); addPermanentFile(E, module, "stdin", stdin, EFS_READ); addPermanentFile(E, module, "stdout", stdout, EFS_WRITE); addPermanentFile(E, module, "stderr", stderr, EFS_WRITE); }
void ekModuleRegisterRegex(struct ekContext * E) { ekValueTypeRegisterRegex(E); ekContextAddModule(E, "re", regexFuncs); }