Print this page
style fixes
take to dis and libdisasm with an axe; does not yet compile
*** 31,42 ****
#ifndef _DIS_SPARC_H
#define _DIS_SPARC_H
- #pragma ident "%Z%%M% %I% %E% SMI"
-
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/types.h>
--- 31,40 ----
*** 47,68 ****
#define DIS_DEBUG_PRTBIN 0x04L
#define DIS_DEBUG_PRTFMT 0x08L
#define DIS_DEBUG_ALL DIS_DEBUG_SYN_ALL|DIS_DEBUG_PRTBIN|DIS_DEBUG_PRTFMT
! struct dis_handle {
! void *dh_data;
! dis_lookup_f dh_lookup;
! dis_read_f dh_read;
! int dh_flags;
- char *dh_buf;
- size_t dh_buflen;
- uint64_t dh_addr;
- int dh_debug;
- };
-
/* different types of things we can have in inst_t */
#define INST_NONE 0x00
#define INST_DEF 0x01
#define INST_TBL 0x02
--- 45,60 ----
#define DIS_DEBUG_PRTBIN 0x04L
#define DIS_DEBUG_PRTFMT 0x08L
#define DIS_DEBUG_ALL DIS_DEBUG_SYN_ALL|DIS_DEBUG_PRTBIN|DIS_DEBUG_PRTFMT
! typedef struct dis_handle_sparc {
! char *dhx_buf;
! size_t dhx_buflen;
! int dhx_debug;
! } dis_handle_sparc_t;
/* different types of things we can have in inst_t */
#define INST_NONE 0x00
#define INST_DEF 0x01
#define INST_TBL 0x02