1 #ifndef SCRIPT_INTERNAL_H
2 #define SCRIPT_INTERNAL_H
16 #define EXPORT_FUNCTION 1
24 #define FIXUP_GLOBALDATA 1 // code[fixup] += &globaldata[0]
25 #define FIXUP_FUNCTION 2 // code[fixup] += &code[0]
26 #define FIXUP_STRING 3 // code[fixup] += &strings[0]
27 #define FIXUP_IMPORT 4 // code[fixup] = &imported_thing[code[fixup]]
28 #define FIXUP_DATADATA 5 // globaldata[fixup] += &globaldata[0]
29 #define FIXUP_STACK 6 // code[fixup] += &stack[0]
30 #define FIXUP_MAX FIXUP_STACK
32 unsigned count
[FIXUP_MAX
+1];
34 unsigned *codeindex_per
[FIXUP_MAX
+1];
38 struct varinfo
{size_t numrefs
; unsigned varsize
;};