[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.4.0 (alpha-rc1) now available
- From: François Perrad <francois.perrad@...>
- Date: Fri, 31 May 2019 08:35:48 +0200
missing static
diff --git a/src/ldebug.c b/src/ldebug.c
--- a/src/ldebug.c
+++ b/src/ldebug.c
@@ -525,8 +525,8 @@
}
- const char *getobjname (const Proto *p, int lastpc, int reg,
- const char **name) {
+static const char *getobjname (const Proto *p, int lastpc, int reg,
+ const char **name) {
int pc;
*name = luaF_getlocalname(p, reg + 1, lastpc);
if (*name) /* is a local? */
--
fix indentation
diff --git a/src/lstring.c b/src/lstring.c
--- a/src/lstring.c
+++ b/src/lstring.c
@@ -121,8 +121,8 @@
int i, j;
for (i = 0; i < STRCACHE_N; i++)
for (j = 0; j < STRCACHE_M; j++) {
- if (iswhite(g->strcache[i][j])) /* will entry be collected? */
- g->strcache[i][j] = g->memerrmsg; /* replace it with something fixed */
+ if (iswhite(g->strcache[i][j])) /* will entry be collected? */
+ g->strcache[i][j] = g->memerrmsg; /* replace it with something fixed */
}
}
--
fallthrough comment
diff --git a/src/ldebug.c b/src/ldebug.c
--- a/src/ldebug.c
+++ b/src/ldebug.c
@@ -373,7 +373,7 @@
ar->ftransfer = ci->u2.transferinfo.ftransfer;
ar->ntransfer = ci->u2.transferinfo.ntransfer;
}
- }
+ } /* FALLTHROUGH */
case 'L':
case 'f': /* handled by lua_getinfo */
break;
--