X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fcompiler.h;h=1374d39b776fa2124d44f6f89b8d0dfe157ef6cb;hp=c5e447fe84dbcbb57345becd9fbd33bef9790c8e;hb=7d79fea75fc664e54a5d5a2668a55f554296a845;hpb=f1a387482a9270a34ae684109ad8be7c104148d6 diff --git a/src/compiler.h b/src/compiler.h index c5e447f..1374d39 100644 --- a/src/compiler.h +++ b/src/compiler.h @@ -9,8 +9,12 @@ typedef struct PSI_Compiler { impls *impls; char *lib; char *fn; + void *context; } PSI_Compiler; -PSI_Compiler *PSI_CompilerInit(PSI_Compiler *C, PSI_Validator *V); +PSI_Compiler *PSI_CompilerInit(PSI_Compiler *C, PSI_Validator *V, void *context); +void PSI_CompilerDtor(PSI_Compiler *C); +void PSI_CompilerFree(PSI_Compiler **C); +zend_function_entry *PSI_CompilerCompile(PSI_Compiler *C); #endif