⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rawtypes.h

📁 魔兽2Linux版
💻 H
字号:
//==========================================================================////  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE//  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR//  PURPOSE.////  Copyright (c) 1999 - 2001  On2 Technologies Inc. All Rights Reserved.////--------------------------------------------------------------------------#ifndef rawTypes_h#define rawTypes_h 1// Typedefs for known width integral types and convenience.#include <stddef.h>#include <limits.h>#include "machine.h"#ifdef unix#include <sys/types.h>#endif// We define types int16 and int32.// They are the smallest native types having at least 16 and 32 bits.// Cannot count on existence of int64, so we put that in a special header// (int64.h) to better track our dependence.// No integral type has less than 8 bits, so no "int8" typedef is necessary.typedef unsigned char uchar;typedef signed char schar;typedef const char cchar;typedef const uchar cuchar;typedef const schar cschar;// Shorts are guaranteed to have at least 16 bits;// it's possible (though unlikely) that chars have 16 bits.#if !defined(unix) || defined(__dietlibc__)typedef unsigned short ushort;#endiftypedef const short cshort;typedef const ushort cushort;#if CHAR_BIT >= 16	typedef schar int16;	typedef uchar uint16;#else	typedef short int16;	typedef ushort uint16;#endiftypedef const int16 cint16;typedef const uint16 cuint16;// Longs are guaranteed to have at least 32 bits.// Ints are somewhere between shorts and longs.#if !defined(unix) || defined(__dietlibc__)typedef unsigned int uint;typedef unsigned long ulong;#endiftypedef const int cint;typedef const uint cuint;typedef const long clong;typedef const long culong;#if UCHAR_MAX >= 0xFFFFffffUL	typedef schar int32;	typedef uchar uint32;#elif USHRT_MAX >= 0xFFFFffffUL	typedef short int32;	typedef ushort uint32;#elif UINT_MAX >= 0xFFFFffffUL	typedef int int32;	typedef uint uint32;#else	typedef long int32;	typedef ulong uint32;#endiftypedef const int32 cint32;typedef const uint32 cuint32;typedef const float cfloat;typedef const double cdouble;//typedef const bool cbool;typedef const size_t csize_t;#endif 	// rawTypes_h

⌨️ 快捷键说明

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