diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-18 13:44:44 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-18 13:44:44 -0200 |
commit | ab07005568a399f2e97996677472d9e6e69c9f4f (patch) | |
tree | 1ddfad16a7840d950db417eed1d2cce2b41aea4a /lcode.h | |
parent | 7024f49c422956259c620fe6673ac42b33398adb (diff) | |
download | lua-ab07005568a399f2e97996677472d9e6e69c9f4f.tar.gz lua-ab07005568a399f2e97996677472d9e6e69c9f4f.tar.bz2 lua-ab07005568a399f2e97996677472d9e6e69c9f4f.zip |
new auxiliary function 'luaK_isKint' + removal of 'luaK_needclose',
which was not being used anywhere.
Diffstat (limited to 'lcode.h')
-rw-r--r-- | lcode.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.h,v 1.68 2017/10/04 21:56:32 roberto Exp roberto $ | 2 | ** $Id: lcode.h,v 1.69 2017/11/30 13:29:18 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 | */ |
@@ -55,6 +55,7 @@ LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx); | |||
55 | LUAI_FUNC int luaK_codeAsBx (FuncState *fs, OpCode o, int A, int Bx); | 55 | LUAI_FUNC int luaK_codeAsBx (FuncState *fs, OpCode o, int A, int Bx); |
56 | LUAI_FUNC int luaK_codeABCk (FuncState *fs, OpCode o, int A, | 56 | LUAI_FUNC int luaK_codeABCk (FuncState *fs, OpCode o, int A, |
57 | int B, int C, int k); | 57 | int B, int C, int k); |
58 | LUAI_FUNC int luaK_isKint (expdesc *e); | ||
58 | LUAI_FUNC void luaK_fixline (FuncState *fs, int line); | 59 | LUAI_FUNC void luaK_fixline (FuncState *fs, int line); |
59 | LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n); | 60 | LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n); |
60 | LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n); | 61 | LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n); |
@@ -80,7 +81,6 @@ LUAI_FUNC void luaK_patchlist (FuncState *fs, int list, int target); | |||
80 | void luaK_patchgoto (FuncState *fs, int list, int target, int hasclose); | 81 | void luaK_patchgoto (FuncState *fs, int list, int target, int hasclose); |
81 | LUAI_FUNC void luaK_patchtohere (FuncState *fs, int list); | 82 | LUAI_FUNC void luaK_patchtohere (FuncState *fs, int list); |
82 | LUAI_FUNC void luaK_patchclose (FuncState *fs, int list); | 83 | LUAI_FUNC void luaK_patchclose (FuncState *fs, int list); |
83 | LUAI_FUNC int luaK_needclose (FuncState *fs, int list); | ||
84 | LUAI_FUNC void luaK_concat (FuncState *fs, int *l1, int l2); | 84 | LUAI_FUNC void luaK_concat (FuncState *fs, int *l1, int l2); |
85 | LUAI_FUNC int luaK_getlabel (FuncState *fs); | 85 | LUAI_FUNC int luaK_getlabel (FuncState *fs); |
86 | LUAI_FUNC void luaK_prefix (FuncState *fs, UnOpr op, expdesc *v, int line); | 86 | LUAI_FUNC void luaK_prefix (FuncState *fs, UnOpr op, expdesc *v, int line); |