std.h

来自「pic单片机工程」· C头文件 代码 · 共 50 行

H
50
字号
/*
 *                         Copyright 1999 by KVASER AB            
 *                   P.O Box 4076 SE-51104 KINNAHULT, SWEDEN
 *             E-mail: staff@kvaser.se   WWW: http://www.kvaser.se
 *
 * This software is a part of the MCP2510 Evaluation Kit from Microchip, Inc.
 *
 * $Header: /Customers/MicroChip/Code/mcTest/inc/std.h 1     99-06-29 15:26 Mats $
 * $Revision:: 1    $   $NoKeywords: $
 *
 * Description:
 *   Standard definitions of general use.
 */
#ifndef _STD_H_
#define _STD_H_

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

#ifdef TRUE
#undef TRUE
#endif

#ifdef FALSE
#undef FALSE
#endif

typedef enum {FALSE, TRUE} Bool;

#define FAR far
#define NEAR near
#define PUBLIC
#define PRIVATE static

#define COUNTOF(x) ((signed int)(sizeof(x)/sizeof(x[0])))

#ifdef uchar
  #undef uchar
#endif

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



#endif

⌨️ 快捷键说明

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