diff options
author | David Walter Seikel | 2012-01-23 23:36:30 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-23 23:36:30 +1000 |
commit | 6523585c66c04cea54df50013df8886b589847d8 (patch) | |
tree | 0b22aee7064166d88595eda260ca2d17c0773da5 /libraries/LuaJIT-1.1.7/dynasm/dasm_proto.h | |
parent | Update the EFL to what I'm actually using, coz I'm using some stuff not yet r... (diff) | |
download | SledjHamr-6523585c66c04cea54df50013df8886b589847d8.zip SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.gz SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.bz2 SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.xz |
Add luaproc and LuaJIT libraries.
Two versions of LuaJIT, the stable release, and the dev version. Try the dev version first, until ih fails badly.
Diffstat (limited to 'libraries/LuaJIT-1.1.7/dynasm/dasm_proto.h')
-rw-r--r-- | libraries/LuaJIT-1.1.7/dynasm/dasm_proto.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/libraries/LuaJIT-1.1.7/dynasm/dasm_proto.h b/libraries/LuaJIT-1.1.7/dynasm/dasm_proto.h new file mode 100644 index 0000000..c194cba --- /dev/null +++ b/libraries/LuaJIT-1.1.7/dynasm/dasm_proto.h | |||
@@ -0,0 +1,68 @@ | |||
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 */ | ||