diff options
Diffstat (limited to 'src/arch/instruction-int.h')
-rw-r--r-- | src/arch/instruction-int.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/arch/instruction-int.h b/src/arch/instruction-int.h index 4ecb173..45a8b2d 100644 --- a/src/arch/instruction-int.h +++ b/src/arch/instruction-int.h @@ -28,6 +28,7 @@ #include "archbase.h" #include "instruction.h" #include "../analysis/exporter-int.h" +#include "../common/dllist.h" @@ -46,6 +47,8 @@ struct _GArchInstruction { GContentExporter parent; /* A laisser en premier */ + DL_LIST_ITEM(flow); /* Maillon de liste chaînée */ + off_t offset; /* Position physique de départ */ off_t length; /* Taille de l'instruction */ @@ -69,5 +72,10 @@ struct _GArchInstructionClass }; +#define ainstr_list_next_iter(iter, head) dl_list_next_iter(iter, head, GArchInstruction, flow) +#define ainstr_list_add_tail(new, head) dl_list_add_tail(new, head, GArchInstruction, flow) +#define ainstr_list_for_each(pos, head) dl_list_for_each(pos, head, GArchInstruction, flow) + + #endif /* _ARCH_INSTRUCTION_INT_H */ |