diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-03-11 10:59:50 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-03-11 10:59:50 -0300 |
commit | 99cc4b20f2c9e33600948fb0489c6d1d1c160518 (patch) | |
tree | f6d49f35b1417962c56c88def347dd6d796360ac | |
parent | 0969a971cd41921bd5ee72c1da880455bcca3bb4 (diff) | |
download | lua-99cc4b20f2c9e33600948fb0489c6d1d1c160518.tar.gz lua-99cc4b20f2c9e33600948fb0489c6d1d1c160518.tar.bz2 lua-99cc4b20f2c9e33600948fb0489c6d1d1c160518.zip |
details
-rw-r--r-- | lopcodes.h | 6 | ||||
-rw-r--r-- | ltm.c | 4 | ||||
-rw-r--r-- | lvm.c | 8 |
3 files changed, 9 insertions, 9 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.h,v 1.14 1997/12/30 19:08:23 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.16 1998/03/10 17:15:05 roberto Exp $ |
3 | ** Opcodes for Lua virtual machine | 3 | ** Opcodes for Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -119,9 +119,9 @@ SETTABLE0,/* - v i t - t[i]=v */ | |||
119 | 119 | ||
120 | SETTABLE,/* b v a_b...a_1 i t a_b...a_1 i t t[i]=v */ | 120 | SETTABLE,/* b v a_b...a_1 i t a_b...a_1 i t t[i]=v */ |
121 | 121 | ||
122 | SETLIST,/* b c v_b...v_1 t - t[i+c*FPF]=v_i */ | 122 | SETLIST,/* b c v_c...v_1 t - t[i+b*FPF]=v_i */ |
123 | SETLIST0,/* b v_b...v_1 t - t[i]=v_i */ | 123 | SETLIST0,/* b v_b...v_1 t - t[i]=v_i */ |
124 | SETLISTW,/* w c v_b...v_1 t - t[i+c*FPF]=v_i */ | 124 | SETLISTW,/* w c v_c...v_1 t - t[i+w*FPF]=v_i */ |
125 | 125 | ||
126 | SETMAP,/* b v_b k_b ...v_0 k_0 t t t[k_i]=v_i */ | 126 | SETMAP,/* b v_b k_b ...v_0 k_0 t t t[k_i]=v_i */ |
127 | SETMAP0,/* - v_0 k_0 t t t[k_0]=v_0 */ | 127 | SETMAP0,/* - v_0 k_0 t t t[k_0]=v_0 */ |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltm.c,v 1.13 1998/01/02 17:46:32 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 1.14 1998/03/09 21:49:52 roberto Exp roberto $ |
3 | ** Tag methods | 3 | ** Tag methods |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -148,7 +148,7 @@ void luaT_settagmethod (int t, char *event, TObject *func) | |||
148 | int e = luaI_checkevent(event, luaT_eventname); | 148 | int e = luaI_checkevent(event, luaT_eventname); |
149 | checktag(t); | 149 | checktag(t); |
150 | if (!validevent(t, e)) | 150 | if (!validevent(t, e)) |
151 | luaL_verror("settagmethod: cannot change internal method `%.20s' for tag %d", | 151 | luaL_verror("settagmethod: cannot change tag method `%.20s' for tag %d", |
152 | luaT_eventname[e], t); | 152 | luaT_eventname[e], t); |
153 | *func = *luaT_getim(t,e); | 153 | *func = *luaT_getim(t,e); |
154 | *luaT_getim(t, e) = temp; | 154 | *luaT_getim(t, e) = temp; |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 1.24 1998/03/06 16:54:42 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.25 1998/03/09 21:49:52 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 | */ |
@@ -136,9 +136,9 @@ void luaV_gettable (void) | |||
136 | 136 | ||
137 | /* | 137 | /* |
138 | ** Function to store indexed based on values at the stack.top | 138 | ** Function to store indexed based on values at the stack.top |
139 | ** mode = 0: raw store (without internal methods) | 139 | ** mode = 0: raw store (without tag methods) |
140 | ** mode = 1: normal store (with internal methods) | 140 | ** mode = 1: normal store (with tag methods) |
141 | ** mode = 2: "deep L->stack.stack" store (with internal methods) | 141 | ** mode = 2: "deep L->stack.stack" store (with tag methods) |
142 | */ | 142 | */ |
143 | void luaV_settable (TObject *t, int mode) | 143 | void luaV_settable (TObject *t, int mode) |
144 | { | 144 | { |