RetroArch
|
#include "lprefix.h"
#include <limits.h>
#include <stddef.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
#include <time.h>
Macros | |
#define | ltablib_c |
#define | LUA_LIB |
#define | TAB_R 1 /* read */ |
#define | TAB_W 2 /* write */ |
#define | TAB_L 4 /* length */ |
#define | TAB_RW (TAB_R | TAB_W) /* read/write */ |
#define | aux_getn(L, n, w) (checktab(L, n, (w) | TAB_L), luaL_len(L, n)) |
#define | sof(e) (sizeof(e) / sizeof(unsigned int)) |
#define | RANLIMIT 100u |
Typedefs | |
typedef unsigned int | IdxT |
Functions | |
static int | checkfield (lua_State *L, const char *key, int n) |
static void | checktab (lua_State *L, int arg, int what) |
static int | tinsert (lua_State *L) |
static int | tremove (lua_State *L) |
static int | tmove (lua_State *L) |
static void | addfield (lua_State *L, luaL_Buffer *b, lua_Integer i) |
static int | tconcat (lua_State *L) |
static int | pack (lua_State *L) |
static int | unpack (lua_State *L) |
static unsigned int | l_randomizePivot (void) |
static void | set2 (lua_State *L, IdxT i, IdxT j) |
static int | sort_comp (lua_State *L, int a, int b) |
static IdxT | partition (lua_State *L, IdxT lo, IdxT up) |
static IdxT | choosePivot (IdxT lo, IdxT up, unsigned int rnd) |
static void | auxsort (lua_State *L, IdxT lo, IdxT up, unsigned int rnd) |
static int | sort (lua_State *L) |
LUAMOD_API int | luaopen_table (lua_State *L) |
Variables | |
static const luaL_Reg | tab_funcs [] |
#define ltablib_c |
#define LUA_LIB |
#define RANLIMIT 100u |
#define sof | ( | e | ) | (sizeof(e) / sizeof(unsigned int)) |
#define TAB_L 4 /* length */ |
#define TAB_R 1 /* read */ |
#define TAB_W 2 /* write */ |
typedef unsigned int IdxT |
|
static |
|
static |
LUAMOD_API int luaopen_table | ( | lua_State * | L | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |