irtypes.h
来自「S3C24A0的完整BSP包,对开发此芯片的开发者很有用.」· C头文件 代码 · 共 123 行
H
123 行
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
/*
** irtypes.h - Local Standard Data Types
**
** $Id$
**
** $Log$
**
**
*/
#ifndef _irtypes_h_
#define _irtypes_h_ 1
#ifdef __BORLANDC__
#define MSDOS 1
#endif
#ifdef sparc
#define _FAR_
#define cdecl
#endif
#ifdef NDIS_NT
#define _FAR_
#endif
#ifdef NDIS40_MINIPORT
#define _FAR_
#endif
#ifdef SCO_UNIX
#define _FAR_
#endif
#ifdef MSDOS
#define _FAR_ __far
#endif
#ifdef ODI32
#define _FAR_
#endif
#ifdef CHICAGO
#define _FAR_
#endif
#ifdef DOS_32
#ifdef _FAR_
#undef _FAR_
#endif
#define _FAR_
#endif
#ifndef NDIS40_MINIPORT
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE (!FALSE)
#endif
#endif
#ifndef NULL
#define NULL 0
#endif
#ifndef min
#define min(a,b) ((a)<(b)?(a):(b))
#endif
#ifndef max
#define max(a,b) ((a)>(b)?(a):(b))
#endif
typedef unsigned long uint32;
typedef unsigned short uint16;
typedef unsigned char uchar;
typedef long int32;
typedef short int16;
typedef int bool;
typedef uint32 _FAR_ *uint32P;
typedef uint16 _FAR_ *uint16P;
typedef uchar _FAR_ *ucharP;
typedef char _FAR_ *charP;
typedef void _FAR_ *PVOID;
typedef unsigned char BYTE;
typedef unsigned char UCHAR;
typedef unsigned short WORD;
typedef unsigned long DWORD;
typedef unsigned long ULONG;
typedef unsigned int UINT;
/* macro useful for converting structure field names to
** byte offsets */
#define FieldOffset(s,x) ((int)&(((s *)0)->x))
#ifndef UNDER_CE
#ifndef CHICAGO
#ifndef GUI_BUILD
#define LOBYTE(w) ((uchar)(w))
#define HIBYTE(w) ((uchar)((uint16)(w) >> 8))
#define LOWORD(l) ((uint16)(uint32)(l))
#define HIWORD(l) ((uint16)(((uint32)(l)) >> 16))
#endif /* GUI_BUILD */
#endif /* CHICAGO */
#endif
#define MAKEUINT16( msb, lsb ) (((uint16)msb << 8) + lsb)
#define MAKEUINT32(hi, lo) ((uint32)(((uint16)(lo)) | (((uint32)((uint16)(hi))) << 16)))
#define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
#endif //_irtypes_h_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?