X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Floader%2FCompiler.h;h=d406bbf2c8cbf016873472941c333e961ac65812;hb=refs%2Fheads%2Flinker;hp=2f89752690664d3a33426621cc33a3a4f8c92a30;hpb=1970312e983541d32d4ff73c81b8d90156a7bb99;p=l2e.git diff --git a/src/loader/Compiler.h b/src/loader/Compiler.h index 2f89752..d406bbf 100644 --- a/src/loader/Compiler.h +++ b/src/loader/Compiler.h @@ -8,6 +8,8 @@ #include #include #include +#include +#include #include namespace loader { @@ -33,10 +35,12 @@ private: void WriteExports(std::ostream &); void WriteExternals(std::ostream &); void WriteImages(std::ostream &); + void WriteScripts(std::ostream &); void Relocate(std::iostream &); void RelocateArray(char *, int size); void Relocate(unsigned int pos, char *dest, const TypeDescription &); + void RelocateScript(char *, unsigned int); void PrepareExport(Export &, const std::string &); void PrepareExternal(External &, const Interpreter::PostponedDefinition &); @@ -54,6 +58,7 @@ private: std::map addressMap; std::map images; + std::vector > scripts; };