lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 25189b420de22d9088229989de265f1b81872fa8
parent cec25167d1dee22e63c4a8500cd5520e254339c5
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue,  5 Jan 2010 16:33:02 -0200

field 'nups' in struct 'lua_Debug' changed from 'int' to 'unsigned
char' to save some space (even C functions cannot have more than
maxchar upvalues).

Diffstat:
Mlua.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lua.h b/lua.h @@ -1,5 +1,5 @@ /* -** $Id: lua.h,v 1.256 2009/12/22 15:32:50 roberto Exp roberto $ +** $Id: lua.h,v 1.257 2009/12/22 16:47:00 roberto Exp roberto $ ** Lua - A Scripting Language ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) ** See Copyright Notice at the end of this file @@ -404,9 +404,9 @@ struct lua_Debug { const char *what; /* (S) 'Lua', 'C', 'main', 'tail' */ const char *source; /* (S) */ int currentline; /* (l) */ - int nups; /* (u) number of upvalues */ int linedefined; /* (S) */ int lastlinedefined; /* (S) */ + unsigned char nups; /* (u) number of upvalues */ char istailcall; /* (t) */ char short_src[LUA_IDSIZE]; /* (S) */ /* private part */