Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include <errno.h>
#include <locale.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Go to the source code of this file.
Macros | |
#define | loslib_c |
#define | LUA_LIB |
Functions | |
static int | os_pushresult (lua_State *L, int i, const char *filename) |
static int | os_execute (lua_State *L) |
static int | os_remove (lua_State *L) |
static int | os_rename (lua_State *L) |
static int | os_tmpname (lua_State *L) |
static int | os_getenv (lua_State *L) |
static int | os_clock (lua_State *L) |
static void | setfield (lua_State *L, const char *key, int value) |
static void | setboolfield (lua_State *L, const char *key, int value) |
static int | getboolfield (lua_State *L, const char *key) |
static int | getfield (lua_State *L, const char *key, int d) |
static int | os_date (lua_State *L) |
static int | os_time (lua_State *L) |
static int | os_difftime (lua_State *L) |
static int | os_setlocale (lua_State *L) |
static int | os_exit (lua_State *L) |
LUALIB_API int | luaopen_os (lua_State *L) |
Variables | |
static const luaL_Reg | syslib [] |
#define loslib_c |
Definition at line 14 of file lua-5.1.5/src/loslib.c.
#define LUA_LIB |
Definition at line 15 of file lua-5.1.5/src/loslib.c.
|
static |
Definition at line 100 of file lua-5.1.5/src/loslib.c.
References lua_getfield(), lua_isnil, lua_pop, and lua_toboolean().
Referenced by os_time().
|
static |
Definition at line 109 of file lua-5.1.5/src/loslib.c.
References lua_getfield(), lua_isnumber(), lua_pop, LUA_QS, lua_tointeger, and luaL_error().
Referenced by os_time().
LUALIB_API int luaopen_os | ( | lua_State * | L | ) |
Definition at line 239 of file lua-5.1.5/src/loslib.c.
References LUA_OSLIBNAME, luaL_register(), and syslib.
|
static |
Definition at line 74 of file lua-5.1.5/src/loslib.c.
References lua_pushnumber().
|
static |
Definition at line 124 of file lua-5.1.5/src/loslib.c.
References lua_createtable(), lua_pushnil(), luaL_addchar, luaL_addlstring(), luaL_buffinit(), luaL_checknumber(), luaL_opt, luaL_optstring, luaL_pushresult(), NULL, s, setboolfield(), and setfield().
|
static |
Definition at line 195 of file lua-5.1.5/src/loslib.c.
References lua_pushnumber(), luaL_checknumber(), and luaL_optnumber().
|
static |
Definition at line 38 of file lua-5.1.5/src/loslib.c.
References lua_pushinteger(), luaL_optstring, and NULL.
|
static |
Definition at line 216 of file lua-5.1.5/src/loslib.c.
References luaL_optint.
|
static |
Definition at line 68 of file lua-5.1.5/src/loslib.c.
References lua_pushstring(), and luaL_checkstring.
|
static |
Definition at line 23 of file lua-5.1.5/src/loslib.c.
References lua_pushboolean(), lua_pushfstring(), lua_pushinteger(), and lua_pushnil().
Referenced by os_remove(), and os_rename().
|
static |
Definition at line 44 of file lua-5.1.5/src/loslib.c.
References luaL_checkstring, and os_pushresult().
|
static |
Definition at line 50 of file lua-5.1.5/src/loslib.c.
References luaL_checkstring, and os_pushresult().
|
static |
Definition at line 204 of file lua-5.1.5/src/loslib.c.
References lua_pushstring(), luaL_checkoption(), luaL_optstring, and NULL.
|
static |
Definition at line 170 of file lua-5.1.5/src/loslib.c.
References getboolfield(), getfield(), lua_isnoneornil, lua_pushnil(), lua_pushnumber(), lua_settop(), LUA_TTABLE, luaL_checktype(), and NULL.
|
static |
Definition at line 57 of file lua-5.1.5/src/loslib.c.
References lua_pushstring(), lua_tmpnam, LUA_TMPNAMBUFSIZE, and luaL_error().
|
static |
Definition at line 93 of file lua-5.1.5/src/loslib.c.
References lua_pushboolean(), lua_setfield(), and value.
Referenced by os_date().
|
static |
Definition at line 88 of file lua-5.1.5/src/loslib.c.
References lua_pushinteger(), lua_setfield(), and value.
Referenced by os_date().
|
static |
Definition at line 220 of file lua-5.1.5/src/loslib.c.
Referenced by luaopen_os().