aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-04-30 17:13:38 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-04-30 17:13:38 -0300
commitb4cd38ba6c148cf7db5deae6208b660c3417cac9 (patch)
tree8818b5e364c8ad5489a9755d3fc24110bccfdfe2 /lauxlib.c
parent079facab40542ff2e6be9ecc254fd148772b47c9 (diff)
downloadlua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.tar.gz
lua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.tar.bz2
lua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.zip
new scheme for configuration through `luaconf.h'
Diffstat (limited to 'lauxlib.c')
-rw-r--r--lauxlib.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lauxlib.c b/lauxlib.c
index e80fa157..9a8fe02b 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.c,v 1.109 2004/02/18 13:40:03 roberto Exp roberto $ 2** $Id: lauxlib.c,v 1.110 2004/03/23 16:38:43 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -18,6 +18,7 @@
18*/ 18*/
19 19
20#define lauxlib_c 20#define lauxlib_c
21#define LUA_LIB
21 22
22#include "lua.h" 23#include "lua.h"
23 24
@@ -288,7 +289,7 @@ static void getsizes (lua_State *L) {
288} 289}
289 290
290 291
291void luaL_setn (lua_State *L, int t, int n) { 292LUALIB_API void luaL_setn (lua_State *L, int t, int n) {
292 t = abs_index(L, t); 293 t = abs_index(L, t);
293 getsizes(L); 294 getsizes(L);
294 lua_pushvalue(L, t); 295 lua_pushvalue(L, t);
@@ -298,7 +299,7 @@ void luaL_setn (lua_State *L, int t, int n) {
298} 299}
299 300
300 301
301int luaL_getn (lua_State *L, int t) { 302LUALIB_API int luaL_getn (lua_State *L, int t) {
302 int n; 303 int n;
303 t = abs_index(L, t); 304 t = abs_index(L, t);
304 getsizes(L); /* try sizes[t] */ 305 getsizes(L); /* try sizes[t] */