compiler.h

来自「In-system Programming with C51 MCU and E」· C头文件 代码 · 共 33 行

H
33
字号
/*H***************************************************************************
* NAME: compiler.h           
*----------------------------------------------------------------------------
* PURPOSE: 
* Defines compiler dependant definitions to enhance program portability. 
* Allows to remap exotic syntaxes to another exotic syntaxe without changing 
* C source files.
*****************************************************************************/

#ifndef _COMPILER_H_
#define _COMPILER_H_

/*_____ M A C R O S ________________________________________________________*/
#define FALSE  0
#define TRUE   1

/*_____ D E F I N I T I O N ________________________________________________*/
typedef unsigned char   Uchar;
typedef unsigned short  Uint16;
typedef signed int      Int16;
typedef float           Float16;
typedef unsigned char   Bool;

/* KEIL compiler syntax redefinition */
#define Reentrant(x)    x reentrant
#define Sfr(x,y)        sfr x = y
#define Sbit(x,y,z)     sbit x = y ^ z
#define Interrupt(x,y)  x interrupt y
#define At(x)           _at_ x

#endif /* _COMPILER_H_ */

⌨️ 快捷键说明

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