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

📄 envdep.h

📁 中国石油二期加油站IC系统后台通讯软件
💻 H
📖 第 1 页 / 共 5 页
字号:
typedef long            S32;      /* signed - 32 bits */
typedef unsigned long   U32;      /* unsigned - 32 bits */

#else /* ALPHA  & BIT_64 */
typedef int             S32;      /* signed - 32 bits */
typedef unsigned int    U32;      /* unsigned - 32 bits */
typedef long            S64;      /* signed - 64 bits */
typedef unsigned long   U64;      /* unsigned - 64 bits */
#endif /* ALPHA  & BIT_64 */

#else /* update */

typedef unsigned char       Bool;     /* boolean */

#ifndef _DEF_S8_
#define _DEF_S8_
typedef char                S8;             /* 8 bit signed integer     */
#endif

#ifndef _DEF_U8_
#define _DEF_U8_
typedef	    unsigned char	U8;
#endif

#ifndef _DEF_S16_
#define _DEF_S16_
typedef short             S16;    		/* 16 bit signed integer    */
#endif


#ifndef _DEF_U16_
#define _DEF_U16_
typedef	    unsigned short	U16;
#endif

#if !(defined(ALPHA) || defined(BIT_64))

#ifndef _DEF_S32_
#define _DEF_S32_
typedef int 	            S32;
#endif

#ifndef _DEF_U32_
#define _DEF_U32_

typedef	    unsigned int	U32;
#endif

#else /* ALPHA  & BIT_64 */
typedef int             S32;      /* signed - 32 bits */
typedef unsigned int    U32;      /* unsigned - 32 bits */
typedef long            S64;      /* signed - 64 bits */
typedef unsigned long   U64;      /* unsigned - 64 bits */
#endif /* ALPHA  & BIT_64 */

#endif /* update */
/*** modify by shang is over ***/



/*
   void

   note: if typedef Void is set to S16 then RETVOID must be set
   to: return(ROK). if typedef Void is set to void then RETVOID
   must be set to: return
*/

#ifdef __cplusplus
#define Void void
#else
typedef void Void;                /* void */
#endif

typedef S8   (*PFS8) ARGS((void ));   /* pointer to function returning S8 */
typedef S16  (*PFS16) ARGS((void ));  /* pointer to function returning S16 */
typedef S32  (*PFS32) ARGS((void ));  /* pointer to function returning S32 */
typedef Void (*PFVOID) ARGS((void )); /* pointer to function returning VOID */
typedef Void (INTERRPT *PIF) ARGS((void ));    /* pointer to interrupt function */

#else /* not UNIX */
#ifdef PROC_68302                 /* embedded, motorola ads */
#ifdef DOSMRI42D                  /* dos microtec c cross-compiler */

typedef unsigned char   Bool;     /* boolean */
typedef char            S8;       /* signed - 8 bits */
typedef unsigned char   U8;       /* unsigned - 8 bits */

typedef short           S16;      /* signed - 16 bits */
typedef unsigned short  U16;      /* unsigned - 16 bits */

typedef int             S32;      /* signed - 32 bits */
typedef unsigned int    U32;      /* unsigned - 32 bits */

#ifndef ANSI

/*** modify by shang , 2002-1-3 ***/
#if 0
/* size_t is not defined, for some odd reason, in mcc68k's stddef.h */
typedef unsigned size_t;          /* size_t */
#else
#endif
/*** modify by shang is over ***/

#endif /* not ANSI */

/*
   void

   note: if typedef Void is set to S16 then RETVOID must be set
   to: return(ROK). if typedef Void is set to void then RETVOID
   must be set to: return
*/

typedef void  Void;               /* void */
typedef Void  VOID;               /* void */

typedef S8   (*PFS8) ARGS((void ));   /* pointer to function returning S8 */
typedef S16  (*PFS16) ARGS((void ));  /* pointer to function returning S16 */
typedef S32  (*PFS32) ARGS((void ));  /* pointer to function returning S32 */
typedef Void (*PFVOID) ARGS((void )); /* pointer to function returning Void */
typedef Void (*PIF) ARGS((void )); /* pointer to interrupt function */

#else /* not DOSMRI42D */
#ifdef SOLMRI43                   /* solaris microtec c cross-compiler */

typedef unsigned char   Bool;     /* boolean */
typedef char            S8;       /* signed - 8 bits */
typedef unsigned char   U8;       /* unsigned - 8 bits */

typedef short           S16;      /* signed - 16 bits */
typedef unsigned short  U16;      /* unsigned - 16 bits */

typedef int             S32;      /* signed - 32 bits */
typedef unsigned int    U32;      /* unsigned - 32 bits */

/*
   void

   note: if typedef Void is set to S16 then RETVOID must be set
   to: return(ROK). if typedef Void is set to void then RETVOID
   must be set to: return
*/

typedef void  Void;               /* void */
typedef Void  VOID;               /* void */

typedef S8   (*PFS8) ARGS((void ));   /* pointer to function returning S8 */
typedef S16  (*PFS16) ARGS((void ));  /* pointer to function returning S16 */
typedef S32  (*PFS32) ARGS((void ));  /* pointer to function returning S32 */
typedef Void (*PFVOID) ARGS((void )); /* pointer to function returning Void */
typedef Void (*PIF) ARGS((void ));    /* pointer to interrupt function */

#else  /* not SOLMRI43 */
#ifdef SOLOAS186                  /* solaris oasys c cross-compiler */

typedef unsigned char   Bool;     /* boolean */
typedef char            S8;       /* signed - 8 bits */
typedef unsigned char   U8;       /* unsigned - 8 bits */

typedef short           S16;      /* signed - 16 bits */
typedef unsigned short  U16;      /* unsigned - 16 bits */

typedef int             S32;      /* signed - 32 bits */
typedef unsigned int    U32;      /* unsigned - 32 bits */

/*
   void

   note: if typedef Void is set to S16 then RETVOID must be set
   to: return(ROK). if typedef Void is set to void then RETVOID
   must be set to: return
*/

typedef void  Void;               /* void */
typedef Void  VOID;               /* void */

typedef S8   (*PFS8) ARGS((void ));   /* pointer to function returning S8 */
typedef S16  (*PFS16) ARGS((void ));  /* pointer to function returning S16 */
typedef S32  (*PFS32) ARGS((void ));  /* pointer to function returning S32 */
typedef Void (*PFVOID) ARGS((void )); /* pointer to function returning Void */
typedef Void (INTERRPT *PIF) ARGS((void )); /* pointer to interrupt function */

#else /* not SOLOAS186 */
#ifdef __GNUC__    /* if  GNUC cross compiler */

typedef unsigned char   Bool;     /* boolean */
typedef char            S8;       /* signed - 8 bits */
typedef unsigned char   U8;       /* unsigned - 8 bits */

typedef short           S16;      /* signed - 16 bits */
typedef unsigned short  U16;      /* unsigned - 16 bits */

typedef int             S32;      /* signed - 32 bits */
typedef unsigned int    U32;      /* unsigned - 32 bits */

/*
   void

   note: if typedef Void is set to S16 then RETVOID must be set
   to: return(ROK). if typedef Void is set to void then RETVOID
   must be set to: return
*/

typedef void  Void;               /* void */
typedef Void  VOID;               /* void */

typedef S8   (*PFS8) ARGS((void ));   /* pointer to function returning S8 */
typedef S16  (*PFS16) ARGS((void ));  /* pointer to function returning S16 */
typedef S32  (*PFS32) ARGS((void ));  /* pointer to function returning S32 */
typedef Void (*PFVOID) ARGS((void )); /* pointer to function returning Void */
typedef Void (INTERRPT *PIF) ARGS((void )); /* pointer to interrupt function */

#else /* not __GNUC__ */
#endif /* __GNUC */
#endif /* SOLOAS186 */
#endif /* SOLMRI43 */
#endif /* DOSMRI42D */
#else  /* not PROC_68302 */
#ifdef PROC_68040

#ifdef SOLMRI43                   /* solaris microtec c cross-compiler */
typedef unsigned char   Bool;     /* boolean */
typedef char            S8;       /* signed - 8 bits */
typedef unsigned char   U8;       /* unsigned - 8 bits */

typedef short           S16;      /* signed - 16 bits */
typedef unsigned short  U16;      /* unsigned - 16 bits */

typedef int             S32;      /* signed - 32 bits */
typedef unsigned int    U32;      /* unsigned - 32 bits */

/*
   void

   note: if typedef Void is set to S16 then RETVOID must be set
   to: return(ROK). if typedef Void is set to void then RETVOID
   must be set to: return
*/

typedef void  Void;               /* void */
typedef Void  VOID;               /* void */

typedef S8   (*PFS8) ARGS((void ));   /* pointer to function returning S8 */
typedef S16  (*PFS16) ARGS((void ));  /* pointer to function returning S16 */
typedef S32  (*PFS32) ARGS((void ));  /* pointer to function returning S32 */
typedef Void (*PFVOID) ARGS((void )); /* pointer to function returning Void */
typedef INTERRPT Void (*PIF) ARGS((void)); /* pointer to interrupt function */
#endif /* SOLMRI43 */
#else /* not PROC_68040 */
#ifdef PROC_68360

typedef unsigned char   Bool;     /* boolean */
typedef char            S8;       /* signed - 8 bits */
typedef unsigned char   U8;       /* unsigned - 8 bits */

typedef short           S16;      /* signed - 16 bits */
typedef unsigned short  U16;      /* unsigned - 16 bits */

typedef long            S32;      /* signed - 32 bits */
typedef unsigned long   U32;      /* unsigned - 32 bits */

/*
   void

   note: if typedef Void is set to S16 then RETVOID must be set
   to: return(ROK). if typedef Void is set to void then RETVOID
   must be set to: return
*/

typedef void Void;                /* void */

typedef S8   (*PFS8) ARGS((void ));   /* pointer to function returning S8 */
typedef S16  (*PFS16) ARGS((void ));  /* pointer to function returning S16 */
typedef S32  (*PFS32) ARGS((void ));  /* pointer to function returning S32 */
typedef Void (*PFVOID) ARGS((void )); /* pointer to function returning Void */
typedef INTERRPT Void (*PIF) ARGS((void )); /* pointer to interrupt function */

#else /* not PROC_68360 */

#ifdef WIN32
typedef unsigned char   Bool;     /* boolean */
typedef char            S8;       /* signed - 8 bits */
typedef unsigned char   U8;       /* unsigned - 8 bits */

typedef short           S16;      /* signed - 16 bits */
typedef unsigned short  U16;      /* unsigned - 16 bits */
 
typedef int             S32;      /* signed - 32 bits */
typedef unsigned int    U32;      /* unsigned - 32 bits */
 
typedef long            S64;      /* signed - 64 bits */
typedef unsigned long   U64;      /* unsigned - 64 bits */
/*
   void
 
   note: if typedef Void is set to S16 then RETVOID must be set
   to: return(ROK). if typedef Void is set to void then RETVOID
   must be set to: return
*/
 
typedef void Void;                /* void */
 
typedef S8   (*PFS8) ARGS((void ));   /* pointer to function returning S8 */
typedef S16  (*PFS16) ARGS((void ));  /* pointer to function returning S16 */
typedef S32  (*PFS32) ARGS((void ));  /* pointer to function returning S32 */
typedef Void (*PFVOID) ARGS((void )); /* pointer to function returning Void */
typedef Void (INTERRPT *PIF) ARGS((void )); /* pointer to interrupt function */

#else /* not WIN32 */
#ifdef PROC_68349
typedef unsigned char   Bool;     /* boolean */
typedef char            S8;       /* signed - 8 bits */
typedef unsigned char   U8;       /* unsigned - 8 bits */

typedef short           S16;      /* signed - 16 bits */
typedef unsigned short  U16;      /* unsigned - 16 bits */

typedef long            S32;      /* signed - 32 bits */
typedef unsigned long   U32;      /* unsigned - 32 bits */

/*
   void

   note: if typedef Void is set to S16 then RETVOID must be set
   to: return(ROK). if typedef Void is set to void then RETVOID
   must be set to: return
*/

typedef void Void;                /* void */

typedef S8   (*PFS8) ARGS((void ));   /* pointer to function returning S8 */
typedef S16  (*PFS16) ARGS((void ));  /* pointer to function returning S16 */
typedef S32  (*PFS32) ARGS((void ));  /* pointer to function returning S32 */
typedef Void (*PFVOID) ARGS((void )); /* pointer to function returning Void */
typedef INTERRPT Void (*PIF) ARGS((void )); /* pointer to interrupt function */

#else  /* not PROC_68349 */

#ifdef PROC_PPC
typedef unsigned char   Bool;     /* boolean */
typedef char            S8;       /* signed - 8 bits */
typedef unsigned char   U8;       /* unsigned - 8 bits */
 
typedef short           S16;      /* signed - 16 bits */
typedef unsigned short  U16;      /* unsigned - 16 bits */
 
#ifndef BIT_64
typedef long            S32;      /* signed - 32 bits */
typedef unsigned long   U32;      /* unsigned - 32 bits */
#else /* BIT_64 */
typedef int             S32;      /* signed - 32 bits */
typedef unsigned int    U32;      /* unsigned - 32 bits */
typedef long            S64;      /* signed - 64 bits */
typedef unsigned long   U64;      /* unsigned - 64 bits */
#endif /* BIT_64 */

/*
   void
 
   note: if typedef Void is set to S16 then RETVOID must be set
   to: return(ROK). if typedef Void is set to void then RETVOID
   must be set to: return
*/

typedef void Void;                /* void */
 
typedef S8   (*PFS8) ARGS((void ));   /* pointer to function returning S8 */
typedef S16  (*PFS16) ARGS((void ));  /* pointer to function returning S16 */
typedef S32  (*PFS32) ARGS((void ));  /* pointer to function returning S32 */
typedef Void (*PFVOID) ARGS((void )); /* pointer to function returning Void */
typedef INTERRPT Void (*PIF) ARGS((void )); /* pointer to interrupt function */
 
#else /* not PROC_PPC */

#ifdef SS_PS
typedef unsigned char   Bool;     /* boolean */
typedef char            S8;       /* signed - 8 bits */
typedef unsigned char   U8;       /* unsigned - 8 bits */

⌨️ 快捷键说明

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