use stdint.h for types

This commit is contained in:
Connor Olding 2017-07-05 02:30:12 +00:00
parent 56e4333bab
commit eb7ead0b78

17
adis.c
View file

@ -7,6 +7,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#include <stdint.h>
typedef void (*Handler)( unsigned long int word ); typedef void (*Handler)( unsigned long int word );
@ -61,12 +62,12 @@ typedef void (*Handler)( unsigned long int word );
#define flip16(value)\ #define flip16(value)\
(unsigned short) ((value&0xFF00)>>8) | ((value&0xFF)<<8) (unsigned short) ((value&0xFF00)>>8) | ((value&0xFF)<<8)
typedef char u8; typedef uint8_t u8;
typedef unsigned short u16; typedef uint16_t u16;
typedef unsigned u32; typedef uint32_t u32;
typedef signed char s8; typedef int8_t s8;
typedef signed short s16; typedef int16_t s16;
typedef signed s32; typedef int32_t s32;
typedef float f32; typedef float f32;
typedef struct { typedef struct {
@ -1460,10 +1461,6 @@ char * getOP(unsigned long int word)
return dis_op; return dis_op;
} }
/* prototype:
adis o stalfo.s 2 ZELOOTMA.z64
*/
int main(int argc, char * argv[]) int main(int argc, char * argv[])
{ {
int i; int i;