|
rpm
4.5
|
#include "lua.h"

Go to the source code of this file.
Data Structures | |
| struct | Mbuffer |
| struct | Zio |
Macros | |
| #define | EOZ (-1) /* end of stream */ |
| #define | char2int(c) cast(int, cast(unsigned char, (c))) |
| #define | zgetc(z) (((z)->n--)>0 ? char2int(*(z)->p++) : luaZ_fill(z)) |
| #define | zname(z) ((z)->name) |
| #define | luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0) |
| #define | luaZ_sizebuffer(buff) ((buff)->buffsize) |
| #define | luaZ_buffer(buff) ((buff)->buffer) |
| #define | luaZ_resizebuffer(L, buff, size) |
| #define | luaZ_freebuffer(L, buff) luaZ_resizebuffer(L, buff, 0) |
Typedefs | |
| typedef struct Zio | ZIO |
| typedef struct Mbuffer | Mbuffer |
Functions | |
| void | luaZ_init (ZIO *z, lua_Chunkreader reader, void *data, const char *name) |
| size_t | luaZ_read (ZIO *z, void *b, size_t n) |
| int | luaZ_lookahead (ZIO *z) |
| char * | luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n) |
| int | luaZ_fill (ZIO *z) |
Definition at line 19 of file lzio.h.
Referenced by luaZ_fill(), and luaZ_lookahead().
| #define EOZ (-1) /* end of stream */ |
Definition at line 14 of file lzio.h.
Referenced by ezgetc(), luaX_lex(), luaX_setinput(), luaZ_fill(), luaZ_lookahead(), luaZ_read(), read_long_string(), and read_string().
| #define luaZ_buffer | ( | buff | ) | ((buff)->buffer) |
Definition at line 47 of file lzio.h.
Referenced by luaX_lex(), luaX_lexerror(), luaX_syntaxerror(), read_long_string(), read_numeral(), and read_string().
| #define luaZ_freebuffer | ( | L, | |
| buff | |||
| ) | luaZ_resizebuffer(L, buff, 0) |
Definition at line 53 of file lzio.h.
Referenced by close_state(), and luaD_protectedparser().
| #define luaZ_initbuffer | ( | L, | |
| buff | |||
| ) | ((buff)->buffer = NULL, (buff)->buffsize = 0) |
Definition at line 44 of file lzio.h.
Referenced by f_luaopen(), and luaD_protectedparser().
| #define luaZ_resizebuffer | ( | L, | |
| buff, | |||
| size | |||
| ) |
Definition at line 49 of file lzio.h.
Referenced by checkSizes().
| #define luaZ_sizebuffer | ( | buff | ) | ((buff)->buffsize) |
Definition at line 46 of file lzio.h.
Referenced by checkSizes().
| #define zname | ( | z | ) | ((z)->name) |
Definition at line 23 of file lzio.h.
Referenced by luaU_undump(), and luaY_parser().
| int luaZ_fill | ( | ZIO * | z | ) |
Definition at line 19 of file lzio.c.
References char2int, Zio::data, EOZ, Zio::n, Zio::p, and Zio::reader.
Referenced by luaZ_lookahead(), and luaZ_read().
| void luaZ_init | ( | ZIO * | z, |
| lua_Chunkreader | reader, | ||
| void * | data, | ||
| const char * | name | ||
| ) |
Definition at line 40 of file lzio.c.
References Zio::data, Zio::n, name, Zio::name, Zio::p, and Zio::reader.
Referenced by lua_load().
| int luaZ_lookahead | ( | ZIO * | z | ) |
Definition at line 29 of file lzio.c.
References char2int, EOZ, luaZ_fill(), Zio::n, and Zio::p.
Referenced by lua_load().
Definition at line 72 of file lzio.c.
References Mbuffer::buffer, Mbuffer::buffsize, LUA_MINBUFFER, and luaM_reallocvector.
Referenced by LoadString(), and luaV_concat().
1.8.2