void opdis_display_cb ( const opdis_insn_t * insn, void * arg ) { opdis_insn_t * i; opdis_insn_tree_t tree = (opdis_insn_tree_t) arg; if (! tree ) { return; } i = opdis_insn_dupe( insn ); opdis_insn_tree_add( tree, i ); }
static void store_insn( const opdis_insn_t * insn, void * arg ) { opdis_insn_tree_t tree = (opdis_insn_tree_t) arg; opdis_insn_t * i = opdis_insn_dupe( insn ); opdis_insn_tree_add( tree, i ); }