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

📄 types.h

📁 字符匹配(无需区分unicode gbk等字符格式) 语言:c语言
💻 H
字号:
/* ID: MDT_Types.h,v 1.5 2003/12/01 04:18:26 shibata Exp $ */

#ifdef CHECK_REVISION
c_8 REVISION_TYPES_H[]="ID: MDT_Types.h,v 1.5 2003/12/01 04:18:26 shibata Exp $";
#else
#ifndef __mdt_types_h__
#define __mdt_types_h__

#ifdef __cplusplus
#define BEGIN_C_DECLS	extern "C" {
#define END_C_DECLS		}
#else /* __cplusplus */
#define BEGIN_C_DECLS
#define END_C_DECLS
#endif /* __cplusplus */

#define NOUSE_INLINE

#ifdef NOUSE_INLINE
#ifndef INLINE
#define INLINE static
#endif /* INLINE */
#ifdef INLINE_C
#define INLINE_XXX
#endif /* INLINE_C */
#else /* NOUSE_INLINE */
#ifndef INLINE
#ifdef  __cplusplus
#define INLINE inline
#elif defined (_MSC_VER)
#define INLINE __inline
#elif defined (__GNUC__)
#define INLINE __inline__
#else
#define INLINE inline
#endif
#endif /* INLINE */
#endif /* NOUSE_INLINE */

//#define _INFINEON_

#ifndef _INFINEON_
#define HUGE
#define PACKED	__packed//Amy 20071127
#if 0
#define HMEMCPY		memcpy
#define HMEMSET		memset
#define HSTRLEN      	strlen
#define HSTRCPY		strcpy
#define HSTRCMP		strcmp
#define HSTRNCMP	strncmp
#else
///////////////////added by Jack,start
#define HMEMCPY		MDT_hmemcpy
#define HMEMSET		MDT_hmemset
#define HSTRLEN    	MDT_hstrlen
#define HSTRCPY		MDT_hstrcpy
#define HSTRCMP		MDT_hstrcmp
#define HSTRNCMP	MDT_hstrncmp
///////////////////added by Jack,end
#endif
#else
#define HUGE huge
#define PACKED	_packed//Amy 20071127
#if 0
//As customer's define
#define HMEMCPY		hmemcpy
#define HMEMSET		hmemset
#define HSTRLEN      	hstrlen
#define HSTRCPY		hstrcpy
#define HSTRCMP		hstrcmp
#define HSTRNCMP	hstrncmp
#else
///////////////////added by Jack,start
#define HMEMCPY		MDT_hmemcpy
#define HMEMSET		MDT_hmemset
#define HSTRLEN    	MDT_hstrlen
#define HSTRCPY		MDT_hstrcpy
#define HSTRCMP		MDT_hstrcmp
#define HSTRNCMP	MDT_hstrncmp
///////////////////added by Jack,end
#endif
#endif





#define H_VOID 		HUGE void
#define H_STRUCT	HUGE struct
//#define P_STRUCT	PACKED struct
#define P_STRUCT	HUGE struct
#define T_VOID		void
#define T_STRUCT	struct
//#define T_STRUCT	HUGE struct // if struct define need HUGE, Open this T_STRUCT and close the above T_STRUCT define

#ifndef NULL
#define NULL	((H_VOID*)0)
#endif


typedef HUGE char			c_8;
typedef signed HUGE char		s_8;
typedef unsigned HUGE char	u_8;
typedef signed HUGE short		s_16;
typedef unsigned HUGE short	u_16;
typedef signed HUGE long		s_32;
typedef unsigned HUGE long	u_32;
typedef signed HUGE int		int_t;
typedef unsigned HUGE int		uint_t;
typedef HUGE void*			fhandle_t;
typedef u_32					fsize_t;
typedef s_32					fssize_t;
typedef s_32					foff_t;
typedef u_32					ftime_t;

//#ifdef _INFINEON_
/////////////////////////////////////////////////////
typedef char			c_thin8;//Amy 20071127
typedef signed char		s_thin8;
typedef unsigned char 		u_thin8;
typedef signed short		s_thin16;
typedef unsigned short		u_thin16;
typedef signed long		s_thin32;
typedef unsigned long 		u_thin32;
typedef signed int			int_thint;
typedef unsigned int		uint_thint;
typedef u_thin32			fsize_thint;
typedef s_thin32			fssize_thint;
typedef s_thin32			foff_thint;
typedef u_thin32			ftime_thint;
////////////////////////////////////////////////////
//#endif //_INFINEON_


#define MAX_VALUE_FSIZE		(fsize_t)0xFFFFFFFF
#define MAX_VALUE_FSSIZE	(fssize_t)0x7FFFFFFF
#define MAX_VALUE_FOFF		(foff_t)0x7FFFFFFF
#define MAX_VALUE_FTIME		(ftime_t)0xFFFFFFFF

#endif /*__mdt_types_h__*/
#endif /* CHECK_REVISION */

⌨️ 快捷键说明

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