diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-11-08 17:44:31 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-11-08 17:44:31 -0200 |
commit | e43e95553fdb0ebb30ab3c69c227aebd752942dd (patch) | |
tree | c6d9d61a024fd80e678b5c92754ba217217aca0b | |
parent | 930018e273e9abaff9475c156e1367011bc437af (diff) | |
download | lua-e43e95553fdb0ebb30ab3c69c227aebd752942dd.tar.gz lua-e43e95553fdb0ebb30ab3c69c227aebd752942dd.tar.bz2 lua-e43e95553fdb0ebb30ab3c69c227aebd752942dd.zip |
more privacy
-rw-r--r-- | lcode.c | 6 | ||||
-rw-r--r-- | lcode.h | 4 |
2 files changed, 4 insertions, 6 deletions
@@ -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 | ||
562 | void luaK_goiffalse (FuncState *fs, expdesc *e) { | 562 | static 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 | ||
781 | int luaK_code (FuncState *fs, Instruction i, int line) { | 781 | static 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 */ |
@@ -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 | ||
46 | LUAI_FUNC int luaK_code (FuncState *fs, Instruction i, int line); | ||
47 | LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); | 46 | LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); |
48 | LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); | 47 | LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C); |
49 | LUAI_FUNC void luaK_fixline (FuncState *fs, int line); | 48 | LUAI_FUNC void luaK_fixline (FuncState *fs, int line); |
@@ -60,7 +59,6 @@ LUAI_FUNC int luaK_exp2RK (FuncState *fs, expdesc *e); | |||
60 | LUAI_FUNC void luaK_self (FuncState *fs, expdesc *e, expdesc *key); | 59 | LUAI_FUNC void luaK_self (FuncState *fs, expdesc *e, expdesc *key); |
61 | LUAI_FUNC void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k); | 60 | LUAI_FUNC void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k); |
62 | LUAI_FUNC void luaK_goiftrue (FuncState *fs, expdesc *e); | 61 | LUAI_FUNC void luaK_goiftrue (FuncState *fs, expdesc *e); |
63 | LUAI_FUNC void luaK_goiffalse (FuncState *fs, expdesc *e); | ||
64 | LUAI_FUNC void luaK_storevar (FuncState *fs, expdesc *var, expdesc *e); | 62 | LUAI_FUNC void luaK_storevar (FuncState *fs, expdesc *var, expdesc *e); |
65 | LUAI_FUNC void luaK_setreturns (FuncState *fs, expdesc *e, int nresults); | 63 | LUAI_FUNC void luaK_setreturns (FuncState *fs, expdesc *e, int nresults); |
66 | LUAI_FUNC void luaK_setoneret (FuncState *fs, expdesc *e); | 64 | LUAI_FUNC void luaK_setoneret (FuncState *fs, expdesc *e); |