naRef naInit_io(naContext c) { naRef ns = naGenLib(c, funcs); naAddSym(c, ns, "SEEK_SET", naNum(SEEK_SET)); naAddSym(c, ns, "SEEK_CUR", naNum(SEEK_CUR)); naAddSym(c, ns, "SEEK_END", naNum(SEEK_END)); naAddSym(c, ns, "stdin", naIOGhost(c, stdin)); naAddSym(c, ns, "stdout", naIOGhost(c, stdout)); naAddSym(c, ns, "stderr", naIOGhost(c, stderr)); return ns; }
naRef naInit_bits(naContext c) { return naGenLib(c, funcs); }
naRef naInit_thread(naContext c) { return naGenLib(c, funcs); }