diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/LuaJIT-1.1.7/dynasm/dasm_proto.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/libraries/LuaJIT-1.1.7/dynasm/dasm_proto.h b/libraries/LuaJIT-1.1.7/dynasm/dasm_proto.h deleted file mode 100644 index c194cba..0000000 --- a/libraries/LuaJIT-1.1.7/dynasm/dasm_proto.h +++ /dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | /* | ||
2 | ** DynASM encoding engine prototypes. | ||
3 | ** Copyright (C) 2005-2008 Mike Pall. All rights reserved. | ||
4 | ** Released under the MIT/X license. See dynasm.lua for full copyright notice. | ||
5 | */ | ||
6 | |||
7 | #ifndef _DASM_PROTO_H | ||
8 | #define _DASM_PROTO_H | ||
9 | |||
10 | #include <stddef.h> | ||
11 | #include <stdarg.h> | ||
12 | |||
13 | #define DASM_VERSION 10104 /* 1.1.4 */ | ||
14 | |||
15 | #ifndef Dst_DECL | ||
16 | #define Dst_DECL dasm_State *Dst | ||
17 | #endif | ||
18 | |||
19 | #ifndef Dst_GET | ||
20 | #define Dst_GET (Dst) | ||
21 | #endif | ||
22 | |||
23 | #ifndef DASM_FDEF | ||
24 | #define DASM_FDEF extern | ||
25 | #endif | ||
26 | |||
27 | |||
28 | /* Internal DynASM encoder state. */ | ||
29 | typedef struct dasm_State dasm_State; | ||
30 | |||
31 | /* Action list type. */ | ||
32 | typedef const unsigned char *dasm_ActList; | ||
33 | |||
34 | |||
35 | /* Initialize and free DynASM state. */ | ||
36 | DASM_FDEF void dasm_init(Dst_DECL, int maxsection); | ||
37 | DASM_FDEF void dasm_free(Dst_DECL); | ||
38 | |||
39 | /* Setup global array. Must be called before dasm_setup(). */ | ||
40 | DASM_FDEF void dasm_setupglobal(Dst_DECL, void **gl, unsigned int maxgl); | ||
41 | |||
42 | /* Grow PC label array. Can be called after dasm_setup(), too. */ | ||
43 | DASM_FDEF void dasm_growpc(Dst_DECL, unsigned int maxpc); | ||
44 | |||
45 | /* Setup encoder. */ | ||
46 | DASM_FDEF void dasm_setup(Dst_DECL, dasm_ActList actionlist); | ||
47 | |||
48 | /* Feed encoder with actions. Calls are generated by pre-processor. */ | ||
49 | DASM_FDEF void dasm_put(Dst_DECL, int start, ...); | ||
50 | |||
51 | /* Link sections and return the resulting size. */ | ||
52 | DASM_FDEF int dasm_link(Dst_DECL, size_t *szp); | ||
53 | |||
54 | /* Encode sections into buffer. */ | ||
55 | DASM_FDEF int dasm_encode(Dst_DECL, void *buffer); | ||
56 | |||
57 | /* Get PC label offset. */ | ||
58 | DASM_FDEF int dasm_getpclabel(Dst_DECL, unsigned int pc); | ||
59 | |||
60 | #ifdef DASM_CHECKS | ||
61 | /* Optional sanity checker to call between isolated encoding steps. */ | ||
62 | DASM_FDEF int dasm_checkstep(Dst_DECL, int secmatch); | ||
63 | #else | ||
64 | #define dasm_checkstep(a, b) 0 | ||
65 | #endif | ||
66 | |||
67 | |||
68 | #endif /* _DASM_PROTO_H */ | ||