Lines Matching refs:tofile
189 static FILE *tofile (lua_State *L) {
225 tofile(L); /* make sure argument is an open stream */
326 tofile(L); /* check that it's a valid file handle */
377 tofile(L); /* check that it's a valid file handle */
394 tofile(L); /* check that it's a valid file handle */
624 return g_read(L, tofile(L), 2);
693 FILE *f = tofile(L);
702 FILE *f = tofile(L);
721 FILE *f = tofile(L);
736 return luaL_fileresult(L, fflush(tofile(L)) == 0, NULL);