summaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-03-08 17:10:05 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-03-08 17:10:05 -0300
commitf8df21bd2071c4e3729d37d1552f54ca2742551a (patch)
tree6d85e7fd9f86bfb6879c0edd60780b1f40325027 /lgc.c
parentd3902cfa81021bca0a8c30b3ad79a1e2367f6621 (diff)
downloadlua-f8df21bd2071c4e3729d37d1552f54ca2742551a.tar.gz
lua-f8df21bd2071c4e3729d37d1552f54ca2742551a.tar.bz2
lua-f8df21bd2071c4e3729d37d1552f54ca2742551a.zip
`luaconf.h´ exports all its definitions always (so all of them
must have a lua/LUA prefix).
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lgc.c b/lgc.c
index 5cbaa71a..714e2fff 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 2.26 2005/02/18 12:40:02 roberto Exp roberto $ 2** $Id: lgc.c,v 2.27 2005/02/23 17:30:22 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -242,7 +242,7 @@ static void traverseclosure (global_State *g, Closure *cl) {
242static void checkstacksizes (lua_State *L, StkId max) { 242static void checkstacksizes (lua_State *L, StkId max) {
243 int ci_used = L->ci - L->base_ci; /* number of `ci' in use */ 243 int ci_used = L->ci - L->base_ci; /* number of `ci' in use */
244 int s_used = max - L->stack; /* part of stack in use */ 244 int s_used = max - L->stack; /* part of stack in use */
245 if (L->size_ci > LUA_MAXCALLS) /* handling overflow? */ 245 if (L->size_ci > LUAC_MAXCALLS) /* handling overflow? */
246 return; /* do not touch the stacks */ 246 return; /* do not touch the stacks */
247 if (4*ci_used < L->size_ci && 2*BASIC_CI_SIZE < L->size_ci) 247 if (4*ci_used < L->size_ci && 2*BASIC_CI_SIZE < L->size_ci)
248 luaD_reallocCI(L, L->size_ci/2); /* still big enough... */ 248 luaD_reallocCI(L, L->size_ci/2); /* still big enough... */