Refactor and fix up a lot of code

Don't tell the boss I forgot a couple of free()s...
This commit is contained in:
Jeremy Baxter 2023-11-26 17:13:41 +13:00
parent fe38efac42
commit 290289cbf5
12 changed files with 175 additions and 335 deletions

View file

@ -1,10 +1,8 @@
/***
* Extra functions that don't
* fit into any other category.
* Extra functions that don't fit into any other category.
*
* This module does not provide its
* own table; all functions here are
* found in the global table.
* This module does not provide its own table;
* all functions here are found in the global table.
*
* @module extra
*/
@ -17,7 +15,6 @@
#include "callisto.h"
#include "util.h"
/***
* Waits the specified amount of seconds.
*
@ -63,6 +60,6 @@ static const luaL_Reg extlib[] = {
int
luaopen_extra(lua_State *L)
{
newoverride(L, extlib, CALLISTO_EXTLIBNAME);
luaL_newlib(L, extlib);
return 1;
}