X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fabc.h;h=998f34ac159fb1eee811a4f6bec1efb05827eb22;hb=f674f67572814639b77ef5337590d719bda36c3e;hp=f74a4598de24a315e2a4a7291ad4146631109144;hpb=1042606c080e543c2c03e0c16cc593c6f156f539;p=swftools.git diff --git a/lib/as3/abc.h b/lib/as3/abc.h index f74a459..998f34a 100644 --- a/lib/as3/abc.h +++ b/lib/as3/abc.h @@ -40,9 +40,18 @@ DECLARE_LIST(exception); DECLARE(trait); + +#define METHOD_NEED_ARGUMENTS 1 +#define METHOD_NEED_ACTIVATION 2 +#define METHOD_NEED_REST 4 +#define METHOD_HAS_OPTIONAL 8 +#define METHOD_SET_DXNS 0x40 +#define METHOD_HAS_PARAM_NAMES 0x80 + struct _abc_method { multiname_t*return_type; multiname_list_t*parameters; + constant_list_t*optional_parameters; const char*name; U8 flags; abc_method_body_t*body; @@ -71,6 +80,7 @@ abc_file_t*abc_file_new(); #define TRAIT_FUNCTION 5 #define TRAIT_CONST 6 + struct _trait { unsigned char kind; unsigned char attributes; @@ -87,8 +97,7 @@ struct _trait { multiname_t*type_name; int data2; }; - int vindex; - int vkind; + constant_t*value; }; struct _abc_class { @@ -147,6 +156,7 @@ struct _abc_method_body { trait_list_t*traits; int index; // filled in during writing + codestats_t*stats; //filled in during writing }; typedef struct _abc_script {