Sha256: f4250214a5a9d5c593c16b4bfdfc9591f0694d8ef9e149b80983f36e70013fcd

Contents?: true

Size: 761 Bytes

Versions: 11

Compression:

Stored size: 761 Bytes

Contents

/*
** $Id: linit.c,v 1.14 2005/12/29 15:32:11 roberto Exp $
** Initialization of libraries for lua.c
** See Copyright Notice in lua.h
*/


#define linit_c
#define LUA_LIB

#include "lua.h"

#include "lualib.h"
#include "lauxlib.h"


static const luaL_Reg lualibs[] = {
  {"", luaopen_base},
  {LUA_LOADLIBNAME, luaopen_package},
  {LUA_TABLIBNAME, luaopen_table},
  {LUA_IOLIBNAME, luaopen_io},
  {LUA_OSLIBNAME, luaopen_os},
  {LUA_STRLIBNAME, luaopen_string},
  {LUA_MATHLIBNAME, luaopen_math},
  {LUA_DBLIBNAME, luaopen_debug},
  {NULL, NULL}
};


LUALIB_API void luaL_openlibs (lua_State *L) {
  const luaL_Reg *lib = lualibs;
  for (; lib->func; lib++) {
    lua_pushcfunction(L, lib->func);
    lua_pushstring(L, lib->name);
    lua_call(L, 1, 0);
  }
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dub-1.0.0 test/fixtures/app/vendor/lua/linit.c
dub-0.7.0 test/fixtures/app/vendor/lua/linit.c
dub-0.6.6 test/fixtures/app/vendor/lua/linit.c
dub-0.6.5 test/fixtures/app/vendor/lua/linit.c
dub-0.6.4 test/fixtures/app/vendor/lua/linit.c
dub-0.6.3 test/fixtures/app/vendor/lua/linit.c
dub-0.6.2 test/fixtures/app/vendor/lua/linit.c
dub-0.6.1 test/fixtures/app/vendor/lua/linit.c
dub-0.6.0 test/fixtures/app/vendor/lua/linit.c
dub-0.5.1 test/fixtures/app/vendor/lua/linit.c
dub-0.5.0 test/fixtures/app/vendor/lua/linit.c