X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibspiderscript.so_src%2Fbytecode_gen.h;fp=Usermode%2FLibraries%2Flibspiderscript.so_src%2Fbytecode_gen.h;h=9ec6eb51162a018bf5926ba74ef4d6e549135a8f;hb=239f2374299c1471a40b1087725b32f3f163d9b3;hp=19d240c8fa966cee2c703fc82bc07c07a936f4eb;hpb=2c8989ea0849b0e207e6c357626d41c991dc423f;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libspiderscript.so_src/bytecode_gen.h b/Usermode/Libraries/libspiderscript.so_src/bytecode_gen.h index 19d240c8..9ec6eb51 100644 --- a/Usermode/Libraries/libspiderscript.so_src/bytecode_gen.h +++ b/Usermode/Libraries/libspiderscript.so_src/bytecode_gen.h @@ -8,12 +8,12 @@ #ifndef _BYTECODE_GEN_H_ #define _BYTECODE_GEN_H_ +#include "common.h" #include "ast.h" #include "bytecode.h" typedef struct sStringList tStringList; typedef struct sString tString; -//typedef struct sAST_Function tAST_Function; struct sString { @@ -32,13 +32,13 @@ struct sStringList extern int Bytecode_ConvertScript(tSpiderScript *Script, const char *DestFile); -extern tBC_Function *Bytecode_ConvertFunction(tAST_Function *ASTFcn); +extern tBC_Function *Bytecode_ConvertFunction(tScript_Function *Fcn); extern tBC_Function *Bytecode_NewBlankFunction(void); extern void Bytecode_DeleteFunction(tBC_Function *Fcn); extern char *Bytecode_SerialiseFunction(const tBC_Function *Function, int *Length, tStringList *Strings); extern int StringList_GetString(tStringList *List, const char *String, int Length); -extern tBC_Function *Bytecode_CreateFunction(const char *Name, int ArgCount, char **ArgNames, int *ArgTypes); +extern tBC_Function *Bytecode_CreateFunction(tScript_Function *Fcn); extern int Bytecode_AllocateLabel(tBC_Function *Handle); extern void Bytecode_SetLabel(tBC_Function *Handle, int Label);