The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Functions
lzio.cpp File Reference
#include <string.h>
#include "lua.h"
#include "llimits.h"
#include "lmem.h"
#include "lstate.h"
#include "lzio.h"
Include dependency graph for lzio.cpp:

Go to the source code of this file.

Macros

#define lzio_c
 
#define LUA_CORE
 

Functions

int luaZ_fill (ZIO *z)
 
void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, void *data)
 
size_t luaZ_read (ZIO *z, void *b, size_t n)
 
char * luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n)
 

Macro Definition Documentation

#define LUA_CORE

Definition at line 10 of file lzio.cpp.

#define lzio_c

Definition at line 9 of file lzio.cpp.

Function Documentation

int luaZ_fill ( ZIO z)

Definition at line 20 of file lzio.cpp.

References cast_uchar, Zio::data, EOZ, Zio::L, lua_lock, lua_unlock, Zio::n, Zio::p, and Zio::reader.

Referenced by luaZ_read().

void luaZ_init ( lua_State L,
ZIO z,
lua_Reader  reader,
void data 
)

Definition at line 35 of file lzio.cpp.

References Zio::data, Zio::L, Zio::n, Zio::p, Zio::reader, and reader().

Referenced by lua_load().

char* luaZ_openspace ( lua_State L,
Mbuffer buff,
size_t  n 
)

Definition at line 67 of file lzio.cpp.

References Mbuffer::buffer, Mbuffer::buffsize, LUA_MINBUFFER, and luaZ_resizebuffer.

Referenced by LoadString(), and luaV_concat().

size_t luaZ_read ( ZIO z,
void b,
size_t  n 
)

Definition at line 45 of file lzio.cpp.

References EOZ, luaZ_fill(), Zio::n, and Zio::p.

Referenced by LoadBlock().