Fix even more warnings

This commit is contained in:
Pasi Kallinen
2020-04-06 11:54:30 +03:00
parent 99519c4e5b
commit e215f09ddb
17 changed files with 109 additions and 109 deletions

View File

@@ -16,6 +16,8 @@
/* lua_CFunction prototypes */
static int FDECL(nhl_test, (lua_State *));
static int FDECL(nhl_getmap, (lua_State *));
static void FDECL(nhl_add_table_entry_bool, (lua_State *, const char *, BOOLEAN_P));
static char FDECL(splev_typ2chr, (SCHAR_P));
static int FDECL(nhl_gettrap, (lua_State *));
static int FDECL(nhl_deltrap, (lua_State *));
#if 0
@@ -32,10 +34,14 @@ static int FDECL(nhl_ing_suffix, (lua_State *));
static int FDECL(nhl_an, (lua_State *));
static int FDECL(nhl_rn2, (lua_State *));
static int FDECL(nhl_random, (lua_State *));
static void FDECL(init_nhc_data, (lua_State *));
static int FDECL(nhl_push_anything, (lua_State *, int, void *));
static int FDECL(nhl_meta_u_index, (lua_State *));
static int FDECL(nhl_meta_u_newindex, (lua_State *));
static int FDECL(nhl_u_clear_inventory, (lua_State *));
static int FDECL(nhl_u_giveobj, (lua_State *));
static void FDECL(init_u_data, (lua_State *));
static int FDECL(nhl_set_package_path, (lua_State *, const char *));
static int FDECL(traceback_handler, (lua_State *));
void
@@ -224,7 +230,7 @@ const char *s;
return INVALID_TYPE;
}
char
static char
splev_typ2chr(typ)
schar typ;
{
@@ -837,7 +843,7 @@ static const struct {
};
/* register and init the constants table */
void
static void
init_nhc_data(L)
lua_State *L;
{
@@ -854,7 +860,7 @@ lua_State *L;
lua_setglobal(L, "nhc");
}
int
static int
nhl_push_anything(L, anytype, src)
lua_State *L;
int anytype;
@@ -960,7 +966,7 @@ static const struct luaL_Reg nhl_u_functions[] = {
{ NULL, NULL }
};
void
static void
init_u_data(L)
lua_State *L;
{
@@ -975,7 +981,7 @@ lua_State *L;
lua_setglobal(L, "u");
}
int
static int
nhl_set_package_path(L, path)
lua_State *L;
const char *path;