From eb7ead0b78a8fbd4538a1abf5fd849ac58916cd2 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Wed, 5 Jul 2017 02:30:12 +0000 Subject: [PATCH] use stdint.h for types --- adis.c | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/adis.c b/adis.c index 054c5cf..47a5883 100755 --- a/adis.c +++ b/adis.c @@ -7,6 +7,7 @@ #include #include #include +#include typedef void (*Handler)( unsigned long int word ); @@ -61,13 +62,13 @@ typedef void (*Handler)( unsigned long int word ); #define flip16(value)\ (unsigned short) ((value&0xFF00)>>8) | ((value&0xFF)<<8) -typedef char u8; -typedef unsigned short u16; -typedef unsigned u32; -typedef signed char s8; -typedef signed short s16; -typedef signed s32; -typedef float f32; +typedef uint8_t u8; +typedef uint16_t u16; +typedef uint32_t u32; +typedef int8_t s8; +typedef int16_t s16; +typedef int32_t s32; +typedef float f32; typedef struct { unsigned addr; @@ -1460,10 +1461,6 @@ char * getOP(unsigned long int word) return dis_op; } -/* prototype: - adis o stalfo.s 2 ZELOOTMA.z64 -*/ - int main(int argc, char * argv[]) { int i;