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:
parent
fe38efac42
commit
290289cbf5
12 changed files with 175 additions and 335 deletions
11
lextra.c
11
lextra.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue