aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-04-19 10:36:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-04-19 10:36:25 -0300
commit89a9c3628122dccf5297460646038d4def1a098c (patch)
treede6d6e9da4cb6bbbc34bfa05f0e665d02d5afa26
parent8f2fba587784673332976db8a6f48c01349b6e33 (diff)
downloadlua-89a9c3628122dccf5297460646038d4def1a098c.tar.gz
lua-89a9c3628122dccf5297460646038d4def1a098c.tar.bz2
lua-89a9c3628122dccf5297460646038d4def1a098c.zip
no more `register' declarations: leave it to the compiler.
-rw-r--r--lvm.c10
-rw-r--r--lvm.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/lvm.c b/lvm.c
index e4690985..23f59032 100644
--- a/lvm.c
+++ b/lvm.c
@@ -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*/
337StkId luaV_execute (lua_State *L, const Closure *cl, register StkId base) { 337StkId 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:
diff --git a/lvm.h b/lvm.h
index c1facfc1..c3b2b6cc 100644
--- a/lvm.h
+++ b/lvm.h
@@ -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);
26void luaV_rawsettable (lua_State *L, StkId t); 26void luaV_rawsettable (lua_State *L, StkId t);
27void luaV_getglobal (lua_State *L, GlobalVar *gv, StkId top); 27void luaV_getglobal (lua_State *L, GlobalVar *gv, StkId top);
28void luaV_setglobal (lua_State *L, GlobalVar *gv, StkId top); 28void luaV_setglobal (lua_State *L, GlobalVar *gv, StkId top);
29StkId luaV_execute (lua_State *L, const Closure *cl, register StkId base); 29StkId luaV_execute (lua_State *L, const Closure *cl, StkId base);
30void luaV_Cclosure (lua_State *L, lua_CFunction c, int nelems); 30void luaV_Cclosure (lua_State *L, lua_CFunction c, int nelems);
31void luaV_Lclosure (lua_State *L, Proto *l, int nelems); 31void luaV_Lclosure (lua_State *L, Proto *l, int nelems);
32int luaV_lessthan (lua_State *L, const TObject *l, const TObject *r, StkId top); 32int luaV_lessthan (lua_State *L, const TObject *l, const TObject *r, StkId top);