removed parent element in abc_code
[swftools.git] / lib / as3 / code.h
index fb94bd4..7392377 100644 (file)
@@ -21,15 +21,14 @@ typedef struct _opcode
 } opcode_t;
 
 struct _abc_code {
-    U8 opcode;
-    U8 len;
     void*data[2];
     abc_code_t*next;
     abc_code_t*prev;
-    abc_code_t*parent;
 
     abc_code_t*branch;
     int pos; //used during code path evaluation
+    
+    U8 opcode;
 };
 
 struct _codestats {
@@ -46,5 +45,7 @@ int        code_dump(abc_code_t*c, abc_file_t*file, char*prefix, FILE*fo);
 void       code_write(TAG*tag, abc_code_t*code, pool_t*pool, abc_file_t*file);
 void       code_free(abc_code_t*c);
 
+codestats_t code_get_statistics(abc_code_t*code);
+
 
 #endif