aboutsummaryrefslogtreecommitdiff
path: root/linit.c
diff options
context:
space:
mode:
Diffstat (limited to 'linit.c')
-rw-r--r--linit.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/linit.c b/linit.c
index 4759d49a..601f8354 100644
--- a/linit.c
+++ b/linit.c
@@ -1,17 +1,19 @@
1/* 1/*
2** $Id: linit.c,v 1.1 1999/01/08 16:47:44 roberto Exp $ 2** $Id: linit.c,v 1.1 1999/01/08 16:49:32 roberto Exp roberto $
3** Initialization of libraries for lua.c 3** Initialization of libraries for lua.c
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
6 6
7#define LUA_REENTRANT
8
7#include "lua.h" 9#include "lua.h"
8#include "lualib.h" 10#include "lualib.h"
9 11
10 12
11void lua_userinit (void) { 13void lua_userinit (lua_State *L) {
12 lua_iolibopen(); 14 lua_iolibopen(L);
13 lua_strlibopen(); 15 lua_strlibopen(L);
14 lua_mathlibopen(); 16 lua_mathlibopen(L);
15 lua_dblibopen(); 17 lua_dblibopen(L);
16} 18}
17 19