diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-04-19 10:36:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-04-19 10:36:25 -0300 |
commit | 89a9c3628122dccf5297460646038d4def1a098c (patch) | |
tree | de6d6e9da4cb6bbbc34bfa05f0e665d02d5afa26 | |
parent | 8f2fba587784673332976db8a6f48c01349b6e33 (diff) | |
download | lua-89a9c3628122dccf5297460646038d4def1a098c.tar.gz lua-89a9c3628122dccf5297460646038d4def1a098c.tar.bz2 lua-89a9c3628122dccf5297460646038d4def1a098c.zip |
no more `register' declarations: leave it to the compiler.
-rw-r--r-- | lvm.c | 10 | ||||
-rw-r--r-- | lvm.h | 4 |
2 files changed, 7 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 1.102 2000/04/13 16:51:01 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.103 2000/04/14 17:45:25 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 | */ |
@@ -334,10 +334,10 @@ static void adjust_varargs (lua_State *L, StkId base, int nfixargs) { | |||
334 | ** Executes the given Lua function. Parameters are between [base,top). | 334 | ** Executes the given Lua function. Parameters are between [base,top). |
335 | ** Returns n such that the the results are between [n,top). | 335 | ** Returns n such that the the results are between [n,top). |
336 | */ | 336 | */ |
337 | StkId luaV_execute (lua_State *L, const Closure *cl, register StkId base) { | 337 | StkId luaV_execute (lua_State *L, const Closure *cl, StkId base) { |
338 | const Proto *tf = cl->f.l; | 338 | const Proto *tf = cl->f.l; |
339 | register StkId top; /* keep top local, for performance */ | 339 | StkId top; /* keep top local, for performance */ |
340 | register const Instruction *pc = tf->code; | 340 | const Instruction *pc = tf->code; |
341 | TString **kstr = tf->kstr; | 341 | TString **kstr = tf->kstr; |
342 | luaD_checkstack(L, tf->maxstacksize+EXTRA_STACK); | 342 | luaD_checkstack(L, tf->maxstacksize+EXTRA_STACK); |
343 | if (tf->is_vararg) { /* varargs? */ | 343 | if (tf->is_vararg) { /* varargs? */ |
@@ -348,7 +348,7 @@ StkId luaV_execute (lua_State *L, const Closure *cl, register StkId base) { | |||
348 | luaD_adjusttop(L, base, tf->numparams); | 348 | luaD_adjusttop(L, base, tf->numparams); |
349 | top = L->top; | 349 | top = L->top; |
350 | for (;;) { | 350 | for (;;) { |
351 | register Instruction i = *pc++; | 351 | Instruction i = *pc++; |
352 | switch (GET_OPCODE(i)) { | 352 | switch (GET_OPCODE(i)) { |
353 | 353 | ||
354 | case OP_END: | 354 | case OP_END: |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.h,v 1.19 2000/03/10 18:37:44 roberto Exp roberto $ | 2 | ** $Id: lvm.h,v 1.20 2000/03/29 20:19:20 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 | */ |
@@ -26,7 +26,7 @@ void luaV_settable (lua_State *L, StkId t, StkId top); | |||
26 | void luaV_rawsettable (lua_State *L, StkId t); | 26 | void luaV_rawsettable (lua_State *L, StkId t); |
27 | void luaV_getglobal (lua_State *L, GlobalVar *gv, StkId top); | 27 | void luaV_getglobal (lua_State *L, GlobalVar *gv, StkId top); |
28 | void luaV_setglobal (lua_State *L, GlobalVar *gv, StkId top); | 28 | void luaV_setglobal (lua_State *L, GlobalVar *gv, StkId top); |
29 | StkId luaV_execute (lua_State *L, const Closure *cl, register StkId base); | 29 | StkId luaV_execute (lua_State *L, const Closure *cl, StkId base); |
30 | void luaV_Cclosure (lua_State *L, lua_CFunction c, int nelems); | 30 | void luaV_Cclosure (lua_State *L, lua_CFunction c, int nelems); |
31 | void luaV_Lclosure (lua_State *L, Proto *l, int nelems); | 31 | void luaV_Lclosure (lua_State *L, Proto *l, int nelems); |
32 | int luaV_lessthan (lua_State *L, const TObject *l, const TObject *r, StkId top); | 32 | int luaV_lessthan (lua_State *L, const TObject *l, const TObject *r, StkId top); |