📄 basetype.h
字号:
#ifndef _basetype_H#define _basetype_H//============================================================================// File Name: basetype.h//// (c) Copyright [2002] Cirrus Logic Inc. All rights reserved//// This source code is Cirrus Logic, Inc. proprietary and confidential // information//// Description:// Basic data types and definitions//// Modification History:// $Id: basetype.h,v 1.2 2004/07/20 06:08:40 raphael Exp $//============================================================================#define TRUE 1#define FALSE 0// For functions returning "int", 0 is traditionally success and non-zero an// error code.#define SUCCESS 0 #define FAIL 1#undef NULL#define NULL 0// Someone decided that "Booleans" equate to SUCCESS or FAIL, so beware when // you see functions returning "Boolean", SUCCESS == FALSE and FAIL == TRUE !typedef unsigned char Boolean;typedef unsigned char Byte;typedef unsigned char Uint8;typedef char Int8;typedef unsigned short Uint16;typedef short Int16;typedef unsigned long Uint32;typedef long int Int32;//--begin:Bug#21315,Kate,DRC failed when audio output is 2.0CHtypedef signed long long Int64;typedef unsigned long long Uint64;//--end:Bug#21315#ifndef EXTERN#define EXTERN extern#endif#ifndef LOCAL#define LOCAL static#endif// Macro to define the number of elements in a static array#ifndef NELEMENTS#define NELEMENTS(a) (sizeof(a) / sizeof(a[0]))#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -