echo_fixed.h

来自「在VC环境下的模拟运行,测试全通过,我很长时间才调试通过的」· C头文件 代码 · 共 66 行

H
66
字号

#ifndef echo_fixed_h_____
#define echo_fixed_h_____

#include <stdio.h>

typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned int uint;

typedef int int32;
typedef short int16;
typedef char int8;
typedef unsigned int uint32;
typedef unsigned short uint16;
typedef unsigned char uint8;

typedef int fixed_bool;
typedef int fixed_status;

#ifdef WIN32
typedef __int64 int64;
typedef unsigned __int64 uint64;
#endif

#define FIXED_MAX(x, y) (((x)>(y)) ? (x) : (y))
#define FIXED_MIN(x, y) (((x)<(y)) ? (x) : (y))
#define FIXED_ABS(x) (((x)>0) ? (x) : ((x)*-1))

#ifndef FIXED_OK
#define FIXED_OK 0
#define FIXED_ERROR (-1)
#endif

#ifndef TRUE 
#define TRUE 1
#define FALSE 0
#endif

#ifndef NULL
#define NULL 0
#endif

#ifndef NONE
#define NONE 0
#endif

#ifdef WIN32
#define inline __inline
#else 

#endif



#ifdef WIN32
void debug_output(char *s);
#else
//#define debug_output printf
#endif


#endif


⌨️ 快捷键说明

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