aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-10-14 17:46:57 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-10-14 17:46:57 -0200
commit8e7451512f01a89b4230be65cf086f7c1d41d2e2 (patch)
tree2679a6305b6d7612ca9705142e3d4dbdcf32d676 /lvm.c
parent4e9f2d13d5b6fa71ca480394e0b7e75463d4aeec (diff)
downloadlua-8e7451512f01a89b4230be65cf086f7c1d41d2e2.tar.gz
lua-8e7451512f01a89b4230be65cf086f7c1d41d2e2.tar.bz2
lua-8e7451512f01a89b4230be65cf086f7c1d41d2e2.zip
some more `const's
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lvm.c b/lvm.c
index 69044464..a2bb09e4 100644
--- a/lvm.c
+++ b/lvm.c
@@ -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
38static TaggedString *strconc (TaggedString *l, TaggedString *r) { 38static 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*/
299StkId luaV_execute (Closure *cl, TProtoFunc *tf, StkId base) { 299StkId 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;