diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-10-14 17:46:57 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-10-14 17:46:57 -0200 |
commit | 8e7451512f01a89b4230be65cf086f7c1d41d2e2 (patch) | |
tree | 2679a6305b6d7612ca9705142e3d4dbdcf32d676 /lvm.c | |
parent | 4e9f2d13d5b6fa71ca480394e0b7e75463d4aeec (diff) | |
download | lua-8e7451512f01a89b4230be65cf086f7c1d41d2e2.tar.gz lua-8e7451512f01a89b4230be65cf086f7c1d41d2e2.tar.bz2 lua-8e7451512f01a89b4230be65cf086f7c1d41d2e2.zip |
some more `const's
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 1.62 1999/09/17 16:53:54 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.63 1999/10/14 19:13:31 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 | */ |
@@ -35,7 +35,7 @@ | |||
35 | 35 | ||
36 | 36 | ||
37 | 37 | ||
38 | static TaggedString *strconc (TaggedString *l, TaggedString *r) { | 38 | static TaggedString *strconc (const TaggedString *l, const TaggedString *r) { |
39 | long nl = l->u.s.len; | 39 | long nl = l->u.s.len; |
40 | long nr = r->u.s.len; | 40 | long nr = r->u.s.len; |
41 | char *buffer = luaL_openspace(nl+nr); | 41 | char *buffer = luaL_openspace(nl+nr); |
@@ -296,7 +296,7 @@ static void adjust_varargs (StkId first_extra_arg) { | |||
296 | ** [stack+base,top). Returns n such that the the results are between | 296 | ** [stack+base,top). Returns n such that the the results are between |
297 | ** [stack+n,top). | 297 | ** [stack+n,top). |
298 | */ | 298 | */ |
299 | StkId luaV_execute (Closure *cl, TProtoFunc *tf, StkId base) { | 299 | StkId luaV_execute (const Closure *cl, const TProtoFunc *tf, StkId base) { |
300 | struct Stack *S = &L->stack; /* to optimize */ | 300 | struct Stack *S = &L->stack; /* to optimize */ |
301 | register const Byte *pc = tf->code; | 301 | register const Byte *pc = tf->code; |
302 | const TObject *consts = tf->consts; | 302 | const TObject *consts = tf->consts; |