#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
gehe zum Quellcode dieser Datei
|
static int | pushresult (lua_State *L, int i, const char *filename) |
|
static void | fileerror (lua_State *L, int arg, const char *filename) |
|
static int | io_type (lua_State *L) |
|
static FILE * | tofile (lua_State *L) |
|
static FILE ** | newfile (lua_State *L) |
|
static int | io_noclose (lua_State *L) |
|
static int | io_fclose (lua_State *L) |
|
static int | aux_close (lua_State *L) |
|
static int | io_close (lua_State *L) |
|
static int | io_gc (lua_State *L) |
|
static int | io_tostring (lua_State *L) |
|
static int | io_open (lua_State *L) |
|
static FILE * | getiofile (lua_State *L, int findex) |
|
static int | g_iofile (lua_State *L, int f, const char *mode) |
|
static int | io_input (lua_State *L) |
|
static int | io_output (lua_State *L) |
|
static int | io_readline (lua_State *L) |
|
static void | aux_lines (lua_State *L, int idx, int toclose) |
|
static int | f_lines (lua_State *L) |
|
static int | io_lines (lua_State *L) |
|
static int | scan_num (FILE *f, int *r) |
|
static int | read_number (lua_State *L, FILE *f) |
|
static int | test_eof (lua_State *L, FILE *f) |
|
static int | read_line (lua_State *L, FILE *f) |
|
static int | read_chars (lua_State *L, FILE *f, size_t n) |
|
static int | g_read (lua_State *L, FILE *f, int first) |
|
static int | io_read (lua_State *L) |
|
static int | f_read (lua_State *L) |
|
static int | g_write (lua_State *L, FILE *f, int arg) |
|
static int | io_write (lua_State *L) |
|
static int | f_write (lua_State *L) |
|
static int | f_seek (lua_State *L) |
|
static int | io_flush (lua_State *L) |
|
static int | f_flush (lua_State *L) |
|
static int | f_getfptr (lua_State *L) |
|
static void | createmeta (lua_State *L) |
|
static void | createstdfile (lua_State *L, FILE *f, int k, const char *fname) |
|
static void | newfenv (lua_State *L, lua_CFunction cls) |
|
LUALIB_API int | luaopen_io (lua_State *L) |
|
#define SCAN_NUM_MAX_CHARS 11 |
static void aux_lines |
( |
lua_State * |
L, |
|
|
int |
idx, |
|
|
int |
toclose |
|
) |
| |
|
static |
Definiert in Zeile 512 der Datei liolib.c.
514 static const char *
const modenames[] = {
"set",
"cur",
"end",
NULL};
518 op =
fseek(f, offset, mode[op]);
static void fileerror |
( |
lua_State * |
L, |
|
|
int |
arg, |
|
|
const char * |
filename |
|
) |
| |
|
static |
Definiert in Zeile 389 der Datei liolib.c.
404 for (n = first; nargs-- && success; n++) {
Definiert in Zeile 477 der Datei liolib.c.
480 for (; nargs--;
arg++) {
495 status = status && ((
size_t)
fwrite(s,
sizeof(
char), l, f) == l);
Definiert in Zeile 452 der Datei liolib.c.
463 if (sucess)
return 1;
Definiert in Zeile 371 der Datei liolib.c.
379 if (rlen >
n) rlen =
n;
380 nr =
fread(p,
sizeof(
char), rlen, f);
383 }
while (
n > 0 && nr == rlen);
Definiert in Zeile 349 der Datei liolib.c.
360 if (l == 0 || p[l-1] !=
'\n')
static int scan_num |
( |
FILE * |
f, |
|
|
int * |
r |
|
) |
| |
|
static |
Definiert in Zeile 282 der Datei liolib.c.
288 if(
fread(&c,1,1,f) != 1)
return 0;
292 if(
fread(&c,1,1,f) != 1)
return 0;
305 if(
fread(&c,1,1,f) != 1 )
break;
Initialisierung:
Definiert in Zeile 578 der Datei liolib.c.
Initialisierung:
Definiert in Zeile 557 der Datei liolib.c.