stdint.h

来自「An complete pmp solution for mattel juic」· C头文件 代码 · 共 44 行

H
44
字号
#ifndef __STDINT_H
#define __STDINT_H

typedef unsigned long long u64;
typedef unsigned long u32;
typedef unsigned short u16;
typedef unsigned char u08;

typedef long long i64;
typedef long i32;
typedef short i16;
typedef char i08;

typedef unsigned char	BYTE;
typedef unsigned short	WORD;
typedef unsigned long	DWORD;

typedef unsigned char	BOOL;
#define FALSE	0
#define TRUE	1
#define NULL    0

typedef unsigned long uint32_t;
typedef unsigned short uint16_t;
typedef unsigned char uint8_t;

typedef long int32_t;
typedef short int16_t;
typedef char int8_t;

union
{ 	
  	char 	int8_t_incorrect[(sizeof(i08)==1)?1:-1]; 	
  	char 	u08_incorrect[(sizeof(u08)==1)?1:-1]; 	

  	char 	int16_t_incorrect[(sizeof(i16)==2)?1:-1]; 	
  	char 	u16_incorrect[(sizeof(u16)==2)?1:-1]; 	

  	char 	int32_t_incorrect[(sizeof(i32)==4)?1:-1]; 	
  	char 	u32_incorrect[(sizeof(u32)==4)?1:-1]; 	
} __unused_anonymous_struct_to_test_fixed_width_ints;

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?