lf 528 lib/lua/lauxlib.c LoadF *lf = (LoadF *)ud; lf 530 lib/lua/lauxlib.c if (lf->extraline) { lf 531 lib/lua/lauxlib.c lf->extraline = 0; lf 535 lib/lua/lauxlib.c if (feof(lf->f)) return NULL; lf 536 lib/lua/lauxlib.c *size = fread(lf->buff, 1, sizeof(lf->buff), lf->f); lf 537 lib/lua/lauxlib.c return (*size > 0) ? lf->buff : NULL; lf 546 lib/lua/lauxlib.c LoadF *lf = (LoadF *)ud; lf 548 lib/lua/lauxlib.c if (feof(lf->f)) return NULL; lf 549 lib/lua/lauxlib.c *size = fread(lf->buff, 1, sizeof(lf->buff), lf->f); lf 550 lib/lua/lauxlib.c return (*size > 0) ? lf->buff : NULL; lf 569 lib/lua/lauxlib.c LoadF lf; lf 573 lib/lua/lauxlib.c lf.extraline = 0; lf 576 lib/lua/lauxlib.c lf.f = stdin; lf 580 lib/lua/lauxlib.c lf.f = fopen(filename, "r"); lf 581 lib/lua/lauxlib.c if (lf.f == NULL) return errfile(L, "open", fnameindex); lf 583 lib/lua/lauxlib.c c = getc(lf.f); lf 585 lib/lua/lauxlib.c lf.extraline = 1; lf 586 lib/lua/lauxlib.c while ((c = getc(lf.f)) != EOF && c != '\n') ; /* skip first line */ lf 587 lib/lua/lauxlib.c if (c == '\n') c = getc(lf.f); lf 590 lib/lua/lauxlib.c lf.f = freopen(filename, "rb", lf.f); /* reopen in binary mode */ lf 591 lib/lua/lauxlib.c if (lf.f == NULL) return errfile(L, "reopen", fnameindex); lf 593 lib/lua/lauxlib.c while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0]) ; lf 594 lib/lua/lauxlib.c lf.extraline = 0; lf 596 lib/lua/lauxlib.c ungetc(c, lf.f); lf 597 lib/lua/lauxlib.c status = lua_load(L, getF, &lf, lua_tostring(L, -1)); lf 598 lib/lua/lauxlib.c readstatus = ferror(lf.f); lf 599 lib/lua/lauxlib.c if (filename) fclose(lf.f); /* close file (even in case of errors) */ lf 609 lib/lua/lauxlib.c LoadF lf; lf 614 lib/lua/lauxlib.c lf.f = fopen(filename, "rb"); // cams don't translate crlf anyway lf 615 lib/lua/lauxlib.c if (lf.f == NULL) return errfile(L, "fopen", fnameindex); lf 616 lib/lua/lauxlib.c status = lua_load(L, getF, &lf, lua_tostring(L, -1)); lf 618 lib/lua/lauxlib.c readerror = ((fread(&c, 1, 1, lf.f) < 1) && !feof(lf.f)); lf 620 lib/lua/lauxlib.c fclose(lf.f); /* close file (even in case of errors) */