RetroArch
lcode.h
Go to the documentation of this file.
1 /*
2 ** $Id: lcode.h,v 1.64.1.1 2017/04/19 17:20:42 roberto Exp $
3 ** Code generator for Lua
4 ** See Copyright Notice in lua.h
5 */
6 
7 #ifndef lcode_h
8 #define lcode_h
9 
10 #include "llex.h"
11 #include "lobject.h"
12 #include "lopcodes.h"
13 #include "lparser.h"
14 
15 
16 /*
17 ** Marks the end of a patch list. It is an invalid value both as an absolute
18 ** address, and as a list link (would link an element to itself).
19 */
20 #define NO_JUMP (-1)
21 
22 
23 /*
24 ** grep "ORDER OPR" if you change these enums (ORDER OP)
25 */
26 typedef enum BinOpr {
37 } BinOpr;
38 
39 
41 
42 
43 /* get (pointer to) instruction of given 'expdesc' */
44 #define getinstruction(fs,e) ((fs)->f->code[(e)->u.info])
45 
46 #define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx)
47 
48 #define luaK_setmultret(fs,e) luaK_setreturns(fs, e, LUA_MULTRET)
49 
50 #define luaK_jumpto(fs,t) luaK_patchlist(fs, luaK_jump(fs), t)
51 
52 LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx);
53 LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C);
54 LUAI_FUNC int luaK_codek (FuncState *fs, int reg, int k);
55 LUAI_FUNC void luaK_fixline (FuncState *fs, int line);
56 LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n);
57 LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n);
58 LUAI_FUNC void luaK_checkstack (FuncState *fs, int n);
67 LUAI_FUNC void luaK_self (FuncState *fs, expdesc *e, expdesc *key);
71 LUAI_FUNC void luaK_storevar (FuncState *fs, expdesc *var, expdesc *e);
72 LUAI_FUNC void luaK_setreturns (FuncState *fs, expdesc *e, int nresults);
74 LUAI_FUNC int luaK_jump (FuncState *fs);
75 LUAI_FUNC void luaK_ret (FuncState *fs, int first, int nret);
76 LUAI_FUNC void luaK_patchlist (FuncState *fs, int list, int target);
77 LUAI_FUNC void luaK_patchtohere (FuncState *fs, int list);
78 LUAI_FUNC void luaK_patchclose (FuncState *fs, int list, int level);
79 LUAI_FUNC void luaK_concat (FuncState *fs, int *l1, int l2);
81 LUAI_FUNC void luaK_prefix (FuncState *fs, UnOpr op, expdesc *v, int line);
84  expdesc *v2, int line);
85 LUAI_FUNC void luaK_setlist (FuncState *fs, int base, int nelems, int tostore);
86 
87 
88 #endif
Definition: lcode.h:34
const GLint * first
Definition: glext.h:6478
LUAI_FUNC void luaK_indexed(FuncState *fs, expdesc *t, expdesc *k)
Definition: lcode.c:946
LUAI_FUNC void luaK_setreturns(FuncState *fs, expdesc *e, int nresults)
Definition: lcode.c:515
LUAI_FUNC void luaK_ret(FuncState *fs, int first, int nret)
Definition: lcode.c:149
Definition: lcode.h:30
set set set set set set set macro pixldst1 op
Definition: pixman-arm-neon-asm.h:54
LUAI_FUNC void luaK_goiftrue(FuncState *fs, expdesc *e)
Definition: lcode.c:857
Definition: lcode.h:27
Definition: lcode.h:35
LUAI_FUNC void luaK_goiffalse(FuncState *fs, expdesc *e)
Definition: lcode.c:884
LUAI_FUNC int luaK_getlabel(FuncState *fs)
Definition: lcode.c:168
LUAI_FUNC void luaK_dischargevars(FuncState *fs, expdesc *e)
Definition: lcode.c:556
Unknown compiler Device disconnected from port File already exists Saving to backup buffer Got connection from
Definition: msg_hash_ar.h:34
Ιστορικό Εικόνα Πληροφορίες Όλοι Οι Χρήστες Χειρίζονται Το Μενού Αριστερό Αναλογικό Αριστερό Αναλογικό Αριστερό Αναλογικό Y Αριστερό Αναλογικό Δεξί Αναλογικό X Δεξί Αναλογικό Δεξί Αναλογικό Y Δεξί Αναλογικό Σκανδάλη Όπλου Όπλο Aux A Όπλο Aux C Όπλο Select Όπλο D pad Κάτω Όπλο D pad Δεξιά Νεκρή Ζώνη Αναλογικού Σύνδεση Όλων Λήξη Χρόνου Σύνδεσης Hide Unbound Core Input Descriptors Κατάλογος Συσκευών Κατάλογος Ποντικιού Duty Cycle Keyboard Gamepad Mapping Enable Κουμπί B(κάτω)" ) MSG_HASH( MENU_ENUM_LABEL_VALUE_INPUT_JOYPAD_DOWN
Definition: lcode.h:36
GLdouble GLdouble t
Definition: glext.h:6398
bf_uint8_t l2
Definition: connect_ps4.c:75
LUAI_FUNC void luaK_patchclose(FuncState *fs, int list, int level)
Definition: lcode.c:278
BinOpr
Definition: lcode.h:26
Definition: lcode.h:40
GLdouble s
Definition: glext.h:6390
LUAI_FUNC void luaK_exp2val(FuncState *fs, expdesc *e)
Definition: lcode.c:744
Definition: lcode.h:32
LUAI_FUNC int luaK_intK(FuncState *fs, lua_Integer n)
Definition: lcode.c:471
LUAI_FUNC int luaK_codek(FuncState *fs, int reg, int k)
Definition: lcode.c:346
#define LUAI_FUNC
Definition: luaconf.h:282
LUAI_FUNC void luaK_patchlist(FuncState *fs, int list, int target)
Definition: lcode.c:263
LUA_INTEGER lua_Integer
Definition: lua.h:93
GLfloat GLfloat GLfloat v2
Definition: glext.h:6703
Definition: lcode.h:40
Definition: lcode.h:40
LUAI_FUNC void luaK_nil(FuncState *fs, int from, int n)
Definition: lcode.c:64
Definition: lcode.h:29
bf_uint8_t l1
Definition: connect_ps4.c:73
LUAI_FUNC void luaK_checkstack(FuncState *fs, int n)
Definition: lcode.c:361
LUAI_FUNC void luaK_exp2anyregup(FuncState *fs, expdesc *e)
Definition: lcode.c:734
Definition: lcode.h:33
LUAI_FUNC void luaK_exp2nextreg(FuncState *fs, expdesc *e)
Definition: lcode.c:703
LUAI_FUNC void luaK_setlist(FuncState *fs, int base, int nelems, int tostore)
Definition: lcode.c:1189
LUAI_FUNC int luaK_codeABx(FuncState *fs, OpCode o, int A, unsigned int Bx)
Definition: lcode.c:324
GLint level
Definition: glext.h:6293
LUAI_FUNC void luaK_setoneret(FuncState *fs, expdesc *e)
Definition: lcode.c:539
LUAI_FUNC void luaK_patchtohere(FuncState *fs, int list)
Definition: lcode.c:252
LUAI_FUNC void luaK_fixline(FuncState *fs, int line)
Definition: lcode.c:1177
Definition: lcode.h:30
OpCode
Definition: lopcodes.h:167
Definition: lcode.h:35
#define A(i)
Definition: ecp_curves.c:884
Definition: lparser.h:111
Definition: lcode.h:30
Definition: lcode.h:40
Definition: lcode.h:27
LUAI_FUNC void luaK_concat(FuncState *fs, int *l1, int l2)
Definition: lcode.c:116
LUAI_FUNC int luaK_stringK(FuncState *fs, TString *s)
Definition: lcode.c:458
const GLdouble * v
Definition: glext.h:6391
LUAI_FUNC void luaK_prefix(FuncState *fs, UnOpr op, expdesc *v, int line)
Definition: lcode.c:1066
LUAI_FUNC int luaK_exp2anyreg(FuncState *fs, expdesc *e)
Definition: lcode.c:715
LUAI_FUNC int luaK_codeABC(FuncState *fs, OpCode o, int A, int B, int C)
Definition: lcode.c:312
Definition: lcode.h:34
UnOpr
Definition: lcode.h:40
LUAI_FUNC void luaK_self(FuncState *fs, expdesc *e, expdesc *key)
Definition: lcode.c:809
Definition: lcode.h:28
LUAI_FUNC void luaK_reserveregs(FuncState *fs, int n)
Definition: lcode.c:375
Definition: lcode.h:27
Definition: lcode.h:27
LUAI_FUNC void luaK_storevar(FuncState *fs, expdesc *var, expdesc *e)
Definition: lcode.c:782
LUAI_FUNC void luaK_posfix(FuncState *fs, BinOpr op, expdesc *v1, expdesc *v2, int line)
Definition: lcode.c:1124
Definition: ffmpeg_fft.c:36
Definition: lcode.h:34
Definition: lcode.h:33
Definition: lcode.h:40
Definition: lcode.h:27
LUAI_FUNC int luaK_jump(FuncState *fs)
Definition: lcode.c:136
LUAI_FUNC void luaK_infix(FuncState *fs, BinOpr op, expdesc *v)
Definition: lcode.c:1086
GLfloat GLfloat v1
Definition: glext.h:6702
Definition: lcode.h:31
Definition: lcode.h:33
GLdouble n
Definition: glext.h:8396
Definition: lcode.h:31
Definition: lobject.h:303
LUAI_FUNC int luaK_exp2RK(FuncState *fs, expdesc *e)
Definition: lcode.c:758
Definition: lparser.h:54