Пример #1
0
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);
}
Пример #2
0
void ekModuleRegisterRegex(struct ekContext * E)
{
    ekValueTypeRegisterRegex(E);
    ekContextAddModule(E, "re", regexFuncs);
}