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

@ -414,6 +414,10 @@ static int os_exit (lua_State *L) {
return 0;
}
#ifndef HOST_NAME_MAX
# define HOST_NAME_MAX 256 /* according to POSIX */
#endif
/***
* Returns the system hostname.
*