diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-05-15 17:08:32 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-05-15 17:08:32 -0300 |
commit | 3e977f02ac1ec62c012c5ceb8de4420285630290 (patch) | |
tree | 948181758a0fe1c44648024605ac38683c420c7a | |
parent | a73da6112d4c6f20abf634cb68f89fe31fb9037c (diff) | |
download | lua-3e977f02ac1ec62c012c5ceb8de4420285630290.tar.gz lua-3e977f02ac1ec62c012c5ceb8de4420285630290.tar.bz2 lua-3e977f02ac1ec62c012c5ceb8de4420285630290.zip |
added a few comments
-rw-r--r-- | lvm.c | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.209 2014/05/12 21:44:17 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.210 2014/05/14 19:47:11 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -492,6 +492,9 @@ lua_Integer luaV_mod (lua_State *L, lua_Integer m, lua_Integer n) { | |||
492 | /* number of bits in an integer */ | 492 | /* number of bits in an integer */ |
493 | #define NBITS cast_int(sizeof(lua_Integer) * CHAR_BIT) | 493 | #define NBITS cast_int(sizeof(lua_Integer) * CHAR_BIT) |
494 | 494 | ||
495 | /* | ||
496 | ** Shift left operation. (Shift right just negates 'y'.) | ||
497 | */ | ||
495 | lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) { | 498 | lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) { |
496 | if (y < 0) { /* shift right? */ | 499 | if (y < 0) { /* shift right? */ |
497 | if (y <= -NBITS) return 0; | 500 | if (y <= -NBITS) return 0; |
@@ -614,6 +617,14 @@ void luaV_finishOp (lua_State *L) { | |||
614 | 617 | ||
615 | 618 | ||
616 | 619 | ||
620 | |||
621 | /* | ||
622 | ** {================================================================== | ||
623 | ** Function 'luaV_execute': main interpreter loop | ||
624 | ** =================================================================== | ||
625 | */ | ||
626 | |||
627 | |||
617 | /* | 628 | /* |
618 | ** some macros for common tasks in `luaV_execute' | 629 | ** some macros for common tasks in `luaV_execute' |
619 | */ | 630 | */ |
@@ -1140,3 +1151,5 @@ void luaV_execute (lua_State *L) { | |||
1140 | } | 1151 | } |
1141 | } | 1152 | } |
1142 | 1153 | ||
1154 | /* }================================================================== */ | ||
1155 | |||