From 3e977f02ac1ec62c012c5ceb8de4420285630290 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 15 May 2014 17:08:32 -0300 Subject: [PATCH] added a few comments --- lvm.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lvm.c b/lvm.c index 64829962..e92757a0 100644 --- a/lvm.c +++ b/lvm.c @@ -1,5 +1,5 @@ /* -** $Id: lvm.c,v 2.209 2014/05/12 21:44:17 roberto Exp roberto $ +** $Id: lvm.c,v 2.210 2014/05/14 19:47:11 roberto Exp roberto $ ** Lua virtual machine ** See Copyright Notice in lua.h */ @@ -492,6 +492,9 @@ lua_Integer luaV_mod (lua_State *L, lua_Integer m, lua_Integer n) { /* number of bits in an integer */ #define NBITS cast_int(sizeof(lua_Integer) * CHAR_BIT) +/* +** Shift left operation. (Shift right just negates 'y'.) +*/ lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) { if (y < 0) { /* shift right? */ if (y <= -NBITS) return 0; @@ -614,6 +617,14 @@ void luaV_finishOp (lua_State *L) { + +/* +** {================================================================== +** Function 'luaV_execute': main interpreter loop +** =================================================================== +*/ + + /* ** some macros for common tasks in `luaV_execute' */ @@ -1140,3 +1151,5 @@ void luaV_execute (lua_State *L) { } } +/* }================================================================== */ +