/*
 * ucode.h
 * $Id: ucode.h,v 1.7 2004/10/18 23:15:49 brad Exp $
 */

#ifdef linux
typedef long long int64;
#endif

#ifdef WIN32
typedef __int64 int64;
typedef __int64 uint64;

struct timeval {
	unsigned int tv_sec;
	unsigned int tv_usec;
};

typedef unsigned char u_char;
typedef unsigned long off_t;

#define inline 
#endif

typedef /*unsigned*/ int64 ucw_t;

extern int trace;
#define tracef	if (trace) printf

extern int trace_io_flag;
#define traceio	if (trace_io_flag) printf

extern int trace_disk_flag;
#define tracedio if (trace_disk_flag) printf

extern int trace_int_flag;
#define traceint if (trace_int_flag) printf

extern int trace_vm_flag;
#define tracevm if (trace_vm_flag) printf

extern int trace_mcr_labels_flag;
extern int trace_lod_labels_flag;
extern int trace_prom_flag;
extern int trace_mcr_flag;
extern int stop_after_prom_flag;

extern unsigned long max_cycles;
extern unsigned long max_trace_cycles;

extern char *sym_find_by_val(int mcr, int v);
extern char *sym_find_last(int mcr, int v, int *poffset);
extern char *sym_find_by_type_val(int mcr, int t, int v);
