X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fas3%2Fexpr.h;h=f8252a214b397bb93cbfae0ab8d87c34b966b130;hp=e43ecc1f43ed58bcbda5a223cdcc8886896fa513;hb=3dea7306ae2c9590673c10dec1fbabcd6d7e1806;hpb=a75ba56a3af5826224448fd26867eeac7c4bb395 diff --git a/lib/as3/expr.h b/lib/as3/expr.h index e43ecc1..f8252a2 100644 --- a/lib/as3/expr.h +++ b/lib/as3/expr.h @@ -25,6 +25,7 @@ #include "../q.h" #include "code.h" #include "registry.h" +#include "pool.h" DECLARE(node); DECLARE(typedcode); @@ -44,6 +45,7 @@ struct _nodetype { typedcode_t (*write)(node_t*n); typedcode_t (*read)(node_t*n); code_t* (*exec)(node_t*n); + constant_t (*eval)(node_t*n); }; extern nodetype_t node_plus; @@ -138,6 +140,7 @@ node_t* mknode3(nodetype_t*t, node_t*one, node_t*two, node_t*three); void node_free(node_t*n); typedcode_t node_read(node_t*n); //read and free code_t* node_exec(node_t*n); //exec and free +constant_t node_eval(node_t*n); //eval and free void node_dump(node_t*n); #endif