MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / luaZ_lookahead

Function luaZ_lookahead

other_src/lua/src/lzio.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34
35int luaZ_lookahead (ZIO *z) {
36 if (z->n == 0) {
37 if (luaZ_fill(z) == EOZ)
38 return EOZ;
39 else {
40 z->n++; /* luaZ_fill removed first byte; put back it */
41 z->p--;
42 }
43 }
44 return char2int(*z->p);
45}
46
47
48void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, void *data) {

Callers 2

f_parserFunction · 0.70
luaZ_readFunction · 0.70

Calls 1

luaZ_fillFunction · 0.70

Tested by

no test coverage detected