ss_msg.h

来自「中国石油二期加油站IC系统后台通讯软件」· C头文件 代码 · 共 106 行

H
106
字号
/********************************************************************20**
 
     Name:     System Services -- Message manipulation functions
 
     Type:     C source file
 
     Desc:     Macro definitions for message related functions.
 
     File:     ss_msg.h
 
     Sid:      ss_msg.h 1.2  -  08/11/98 10:47:12
 
     Prg:      sn
 
*********************************************************************21*/

#ifndef __SSMSGH__
#define __SSMSGH__

#ifdef __cplusplus
extern "C" {
#endif


/* default SS region ID */
#define SS_DFLT_REGION                  0
#define SS_DFLT_POOL                    0


/* pool types */
#define SS_POOL_UND                     0
#define SS_POOL_DYNAMIC                 1
#define SS_POOL_STATIC                  2


/* utility macros */
#define FIND_OFFSET(current, idx)   \
   { \
      S16 bufSiz; \
      while (idx) \
      { \
         bufSiz = (current->b_wptr - current->b_rptr); \
         if (bufSiz > idx) \
            break; \
         idx -= bufSiz; \
         current = current->b_cont; \
      } \
   }

#define FIND_OFFSET_AND_PREV(previous, current, idx)   \
   { \
      S16 bufSiz; \
      while (idx) \
      { \
         bufSiz = (current->b_wptr - current->b_rptr); \
         if (bufSiz > idx) \
            break; \
         idx -= bufSiz; \
         previous = current; \
         current = current->b_cont; \
      } \
   }


#ifdef __cplusplus
}
#endif

#endif /* __SSMSGH__ */



/********************************************************************30**
 
         End of file: ss_msg.h 1.2  -  08/11/98 10:47:12
 
*********************************************************************31*/


/********************************************************************40**
 
        Notes:
 
*********************************************************************41*/

/********************************************************************50**
 
*********************************************************************51*/


/********************************************************************60**
 
        Revision history:
 
*********************************************************************61*/

/********************************************************************90**
 
     ver       pat    init                  description
------------ -------- ---- ----------------------------------------------
1.1          ---      sn   1. initial release

1.2          ---      kp   1. C++ compilable, cosmetic changes

*********************************************************************91*/

⌨️ 快捷键说明

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