summaryrefslogtreecommitdiff
path: root/lcode.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-03-17 10:09:46 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-03-17 10:09:46 -0300
commit2c8e28d75a09fb6de3c3b16a64561a0103866cea (patch)
treef7adc9c14f45e3602390f74cc432be2fc6efb37d /lcode.h
parent4fb8e93c36f3a38bd5041650361d820898122532 (diff)
downloadlua-2c8e28d75a09fb6de3c3b16a64561a0103866cea.tar.gz
lua-2c8e28d75a09fb6de3c3b16a64561a0103866cea.tar.bz2
lua-2c8e28d75a09fb6de3c3b16a64561a0103866cea.zip
small changes
Diffstat (limited to 'lcode.h')
-rw-r--r--lcode.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/lcode.h b/lcode.h
index 61c574cc..ce3901db 100644
--- a/lcode.h
+++ b/lcode.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.h,v 1.7 2000/03/13 20:37:16 roberto Exp roberto $ 2** $Id: lcode.h,v 1.8 2000/03/15 20:50:33 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*/
@@ -13,13 +13,11 @@
13#include "lparser.h" 13#include "lparser.h"
14 14
15 15
16#define luaK_0(ls,o,d) luaK_code(ls, CREATE_0(o), d)
17#define luaK_U(ls,o,u,d) luaK_code(ls, CREATE_U(o,u), d)
18#define luaK_S(ls,o,s,d) luaK_code(ls, CREATE_S(o,s), d)
19#define luaK_AB(ls,o,a,b,d) luaK_code(ls, CREATE_AB(o,a,b), d)
20
21
22void luaK_error (LexState *ls, const char *msg); 16void luaK_error (LexState *ls, const char *msg);
17int luaK_0(FuncState *fs, OpCode o, int d);
18int luaK_U(FuncState *fs, OpCode o, int u, int d);
19int luaK_S(FuncState *fs, OpCode o, int s, int d);
20int luaK_AB(FuncState *fs, OpCode o, int a, int b, int d);
23int luaK_code (FuncState *fs, Instruction i, int delta); 21int luaK_code (FuncState *fs, Instruction i, int delta);
24void luaK_retcode (FuncState *fs, int nlocals, int nexps); 22void luaK_retcode (FuncState *fs, int nlocals, int nexps);
25void luaK_fixjump (FuncState *fs, int pc, int dest); 23void luaK_fixjump (FuncState *fs, int pc, int dest);