lua

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

commit 9b9becf38402a1787c4f723c705e2e3baa374573
parent 00744a272908d9212fb1c82157260195d62fe81c
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Mon, 29 Apr 2013 13:57:45 -0300

added 'const' to parameters of 'luaG_concaterror'

Diffstat:
Mldebug.c | 4++--
Mldebug.h | 5+++--
2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/ldebug.c b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 2.92 2013/04/26 13:07:53 roberto Exp roberto $ +** $Id: ldebug.c,v 2.93 2013/04/26 16:03:50 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -517,7 +517,7 @@ l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *op) { } -l_noret luaG_concaterror (lua_State *L, StkId p1, StkId p2) { +l_noret luaG_concaterror (lua_State *L, const TValue *p1, const TValue *p2) { if (ttisstring(p1) || ttisnumber(p1)) p1 = p2; lua_assert(!ttisstring(p1) && !ttisnumber(p2)); luaG_typeerror(L, p1, "concatenate"); diff --git a/ldebug.h b/ldebug.h @@ -1,5 +1,5 @@ /* -** $Id: ldebug.h,v 2.7 2011/10/07 20:45:19 roberto Exp roberto $ +** $Id: ldebug.h,v 2.8 2013/04/25 15:59:42 roberto Exp roberto $ ** Auxiliary functions from Debug Interface module ** See Copyright Notice in lua.h */ @@ -23,7 +23,8 @@ LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *opname); -LUAI_FUNC l_noret luaG_concaterror (lua_State *L, StkId p1, StkId p2); +LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1, + const TValue *p2); LUAI_FUNC l_noret luaG_aritherror (lua_State *L, const TValue *p1, const TValue *p2); LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1,