basetype.h

来自「在Linux开发环境下实现JPEG_LS压缩标注」· C头文件 代码 · 共 88 行

H
88
字号
#ifndef __Header_basetype__#define __Header_basetype__#include <stdlib.h>#include <string.h>#include <limits.h>#ifdef __SC__#include <types.h>           // has an enum for false and true#define	NOBOOLEANTYPE#define NOINCLUDESUBDIRECTORIES#endif /* __SC__ */#ifdef __MWERKS__#define NOBOOLEANTYPE#define NOINCLUDESUBDIRECTORIES#define ANSILIBRARYPUBSEEK#endif /* __MWERKS__ */#ifdef __BORLANDC__#define	NOBOOLEANTYPE#define	NOBOOLEANVALUES#endif /* __BORLANDC__ */#ifdef NOBOOLEANTYPEtypedef short int bool;#endif /* NOBOOLEANTYPE */#ifdef NOBOOLEANVALUESconst bool false = 0;const bool true = 1;#endif /* NOBOOLEANVALUES */#ifdef ANSILIBRARYPUBSEEK#ifndef PubSeekPos#define PubSeekPos	pubseekpos#endif#ifndef PubSeekOff#define PubSeekOff	pubseekoff#endif#else#ifndef PubSeekPos#define PubSeekPos	seekpos#endif#ifndef PubSeekOff#define PubSeekOff	seekoff#endif#endif /* ANSILIBRARYPUBSEEK */#ifndef PubSeekBad#define PubSeekBad	streampos(-1)#endif#include <assert.h>#define Assert(expr)	assert(expr)	// In case we get more creative later !// The following basic types for internal use, and// must be at least long enough to represent the// expected value range without loss of accuracy// but may be longer.// They should be distinct else stream insertors// will be ambiguoustypedef unsigned char   Uint8;typedef unsigned short	Uint16;typedef unsigned long	Uint32;typedef signed char     Int8;typedef signed short	Int16;typedef signed long	Int32;typedef float		Float32;typedef double		Float64;// These limits may not actually be true, but are desirable ...#define	Uint8_MAX	 0xFF#define	Uint16_MAX	 0xFFFF#define	Uint32_MAX	 0xFFFFFFFF#define	Int8_MIN	-0x80#define	Int8_MAX	 0x7F#define	Int16_MIN	-0x8000#define	Int16_MAX	 0x7FFF#define	Int32_MIN	-0x80000000#define	Int32_MAX	 0x7FFFFFFF#endif /* __Header_basetype__ */

⌨️ 快捷键说明

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