aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-11-08 17:44:31 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-11-08 17:44:31 -0200
commite43e95553fdb0ebb30ab3c69c227aebd752942dd (patch)
treec6d9d61a024fd80e678b5c92754ba217217aca0b
parent930018e273e9abaff9475c156e1367011bc437af (diff)
downloadlua-e43e95553fdb0ebb30ab3c69c227aebd752942dd.tar.gz
lua-e43e95553fdb0ebb30ab3c69c227aebd752942dd.tar.bz2
lua-e43e95553fdb0ebb30ab3c69c227aebd752942dd.zip
more privacy
-rw-r--r--lcode.c6
-rw-r--r--lcode.h4
2 files changed, 4 insertions, 6 deletions
diff --git a/lcode.c b/lcode.c
index c76b899e..16c698a7 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.c,v 2.19 2005/10/13 12:21:51 roberto Exp roberto $ 2** $Id: lcode.c,v 2.20 2005/10/24 17:37:52 roberto Exp roberto $
3** Code generator for Lua 3** Code generator for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -559,7 +559,7 @@ void luaK_goiftrue (FuncState *fs, expdesc *e) {
559} 559}
560 560
561 561
562void luaK_goiffalse (FuncState *fs, expdesc *e) { 562static void luaK_goiffalse (FuncState *fs, expdesc *e) {
563 int pc; /* pc of last jump */ 563 int pc; /* pc of last jump */
564 luaK_dischargevars(fs, e); 564 luaK_dischargevars(fs, e);
565 switch (e->k) { 565 switch (e->k) {
@@ -778,7 +778,7 @@ void luaK_fixline (FuncState *fs, int line) {
778} 778}
779 779
780 780
781int luaK_code (FuncState *fs, Instruction i, int line) { 781static int luaK_code (FuncState *fs, Instruction i, int line) {
782 Proto *f = fs->f; 782 Proto *f = fs->f;
783 dischargejpc(fs); /* `pc' will change */ 783 dischargejpc(fs); /* `pc' will change */
784 /* put new instruction in code array */ 784 /* put new instruction in code array */
diff --git a/lcode.h b/lcode.h
index 792693c6..50adfb78 100644
--- a/lcode.h
+++ b/lcode.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.h,v 1.45 2005/08/29 20:49:21 roberto Exp roberto $ 2** $Id: lcode.h,v 1.46 2005/10/03 14:02:40 roberto Exp roberto $
3** Code generator for Lua 3** Code generator for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -43,7 +43,6 @@ typedef enum UnOpr { OPR_MINUS, OPR_NOT, OPR_LEN, OPR_NOUNOPR } UnOpr;
43 43
44#define luaK_setmultret(fs,e) luaK_setreturns(fs, e, LUA_MULTRET) 44#define luaK_setmultret(fs,e) luaK_setreturns(fs, e, LUA_MULTRET)
45 45
46LUAI_FUNC int luaK_code (FuncState *fs, Instruction i, int line);
47LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); 46LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx);
48LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); 47LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C);
49LUAI_FUNC void luaK_fixline (FuncState *fs, int line); 48LUAI_FUNC void luaK_fixline (FuncState *fs, int line);
@@ -60,7 +59,6 @@ LUAI_FUNC int luaK_exp2RK (FuncState *fs, expdesc *e);
60LUAI_FUNC void luaK_self (FuncState *fs, expdesc *e, expdesc *key); 59LUAI_FUNC void luaK_self (FuncState *fs, expdesc *e, expdesc *key);
61LUAI_FUNC void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k); 60LUAI_FUNC void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k);
62LUAI_FUNC void luaK_goiftrue (FuncState *fs, expdesc *e); 61LUAI_FUNC void luaK_goiftrue (FuncState *fs, expdesc *e);
63LUAI_FUNC void luaK_goiffalse (FuncState *fs, expdesc *e);
64LUAI_FUNC void luaK_storevar (FuncState *fs, expdesc *var, expdesc *e); 62LUAI_FUNC void luaK_storevar (FuncState *fs, expdesc *var, expdesc *e);
65LUAI_FUNC void luaK_setreturns (FuncState *fs, expdesc *e, int nresults); 63LUAI_FUNC void luaK_setreturns (FuncState *fs, expdesc *e, int nresults);
66LUAI_FUNC void luaK_setoneret (FuncState *fs, expdesc *e); 64LUAI_FUNC void luaK_setoneret (FuncState *fs, expdesc *e);