summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/luazip/src
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/luazip/src')
-rw-r--r--Build/source/texk/web2c/luatexdir/luazip/src/luazip.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Build/source/texk/web2c/luatexdir/luazip/src/luazip.c b/Build/source/texk/web2c/luatexdir/luazip/src/luazip.c
index 2aaca6d3a6e..a7124498e20 100644
--- a/Build/source/texk/web2c/luatexdir/luazip/src/luazip.c
+++ b/Build/source/texk/web2c/luatexdir/luazip/src/luazip.c
@@ -154,7 +154,7 @@ static int zip_openfile (lua_State *L) {
int i, m, n;
/* how many extension were specified? */
- n = luaL_getn(L, 2);
+ n = lua_rawlen(L, 2);
if (n > LUAZIP_MAX_EXTENSIONS)
{
@@ -341,7 +341,7 @@ static int read_line (lua_State *L, ZZIP_FILE *f) {
char *p = luaL_prepbuffer(&b);
if (zzip_fgets(p, LUAL_BUFFERSIZE, f) == NULL) { /* eof? */
luaL_pushresult(&b); /* close buffer */
- return (lua_strlen(L, -1) > 0); /* check whether read something */
+ return (lua_rawlen(L, -1) > 0); /* check whether read something */
}
l = strlen(p);
if (p[l-1] != '\n')
@@ -368,7 +368,7 @@ static int read_chars (lua_State *L, ZZIP_FILE *f, size_t n) {
n -= nr; /* still have to read `n' chars */
} while (n > 0 && nr == rlen); /* until end of count or eof */
luaL_pushresult(&b); /* close buffer */
- return (n == 0 || lua_strlen(L, -1) > 0);
+ return (n == 0 || lua_rawlen(L, -1) > 0);
}
static int g_read (lua_State *L, ZZIP_FILE *f, int first) {
@@ -462,7 +462,7 @@ static int ff_seek (lua_State *L) {
}
}
-static const luaL_reg ziplib[] = {
+static const luaL_Reg ziplib[] = {
{"open", zip_open},
{"close", zip_close},
{"type", zip_type},
@@ -471,7 +471,7 @@ static const luaL_reg ziplib[] = {
{NULL, NULL}
};
-static const luaL_reg flib[] = {
+static const luaL_Reg flib[] = {
{"open", f_open},
{"close", zip_close},
{"files", f_files},
@@ -480,7 +480,7 @@ static const luaL_reg flib[] = {
{NULL, NULL}
};
-static const luaL_reg fflib[] = {
+static const luaL_Reg fflib[] = {
{"read", ff_read},
{"close", ff_close},
{"seek", ff_seek},