File: cm_tkns.c
*
*/
-#ifdef ANSI
S16 cmPkTknS16
(
TknS16 *tknS16, /* token S16 */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknS16(tknS16, mBuf)
-TknS16 *tknS16; /* token S16 */
-Buffer *mBuf; /* message buffer */
-#endif
{
if (tknS16->pres)
}
/* Token Header */
- CMCHKPK(oduUnpackUInt8, tknS16->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknS16->pres, mBuf);
return ROK;
} /* end of cmPkTknS16 */
*
*/
-#ifdef ANSI
S16 cmPkTknBStr32
(
TknBStr32 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknBStr32(tknStr, mBuf)
-TknBStr32 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMPKTKNBSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmPkTknStr8
(
TknStr8 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStr8(tknStr, mBuf)
-TknStr8 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMPKTKNSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmPkTknStr16
(
TknStr16 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStr16(tknStr, mBuf)
-TknStr16 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMPKTKNSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmPkTknStrOSXL
(
TknStrOSXL *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStrOSXL(tknStr, mBuf)
-TknStrOSXL *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
- U16 ndx;
+ uint16_t ndx;
if(tknStr->pres)
/* Value */
for (ndx = 0; ndx < tknStr->len; ndx++)
{
- CMCHKPK(oduUnpackUInt8, tknStr->val[ndx], mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->val[ndx], mBuf);
}
/* Length */
- CMCHKPK(oduUnpackUInt16, tknStr->len, mBuf);
+ CMCHKPK(oduPackUInt16, tknStr->len, mBuf);
}
/* Token Header */
- CMCHKPK(oduUnpackUInt8, tknStr->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->pres, mBuf);
return ROK;
*
*/
-#ifdef ANSI
S16 cmPkTknStrBSXL
(
TknStrBSXL *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStrBSXL(tknStr, mBuf)
-TknStrBSXL *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
- U16 ndx;
- U16 len;
+ uint16_t ndx;
+ uint16_t len;
if(tknStr->pres)
/* Value */
for (ndx = 0; ndx < len; ndx++)
{
- CMCHKPK(oduUnpackUInt8, tknStr->val[ndx], mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->val[ndx], mBuf);
}
/* Length */
- CMCHKPK(oduUnpackUInt16, tknStr->len, mBuf);
+ CMCHKPK(oduPackUInt16, tknStr->len, mBuf);
}
/* Token Header */
- CMCHKPK(oduUnpackUInt8, tknStr->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->pres, mBuf);
return ROK;
*
*/
-#ifdef ANSI
S16 cmPkTknStrBMP4
(
TknStrBMP4 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStrBMP4(tknStr, mBuf)
-TknStrBMP4 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
- U8 ndx;
+ uint8_t ndx;
if(tknStr->pres)
/* Value */
for (ndx = 0; ndx < tknStr->len; ndx++)
{
- CMCHKPK(oduUnpackUInt16, tknStr->val[ndx], mBuf);
+ CMCHKPK(oduPackUInt16, tknStr->val[ndx], mBuf);
}
/* Length */
- CMCHKPK(oduUnpackUInt8, tknStr->len, mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->len, mBuf);
}
/* Token Header */
- CMCHKPK(oduUnpackUInt8, tknStr->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->pres, mBuf);
return ROK;
} /* end of cmPkTknStrBMP4 */
*
*/
-#ifdef ANSI
S16 cmPkTknStrBMPXL
(
TknStrBMPXL *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStrBMPXL(tknStr, mBuf)
-TknStrBMPXL *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
- U16 ndx;
+ uint16_t ndx;
if(tknStr->pres)
/* Value */
for (ndx = 0; ndx < tknStr->len; ndx++)
{
- CMCHKPK(oduUnpackUInt16, tknStr->val[ndx], mBuf);
+ CMCHKPK(oduPackUInt16, tknStr->val[ndx], mBuf);
}
/* Length */
- CMCHKPK(oduUnpackUInt16, tknStr->len, mBuf);
+ CMCHKPK(oduPackUInt16, tknStr->len, mBuf);
}
/* Token Header */
- CMCHKPK(oduUnpackUInt8, tknStr->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->pres, mBuf);
return ROK;
} /* end of cmPkTknStrBMPXL */
*
*/
-#ifdef ANSI
S16 cmPkTknStrUNI4
(
TknStrUNI4 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStrUNI4(tknStr, mBuf)
-TknStrUNI4 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
- U8 ndx;
+ uint8_t ndx;
if(tknStr->pres)
/* Value */
for (ndx = 0; ndx < tknStr->len; ndx++)
{
- CMCHKPK(oduUnpackUInt32, tknStr->val[ndx], mBuf);
+ CMCHKPK(oduPackUInt32, tknStr->val[ndx], mBuf);
}
/* Length */
- CMCHKPK(oduUnpackUInt8, tknStr->len, mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->len, mBuf);
}
/* Token Header */
- CMCHKPK(oduUnpackUInt8, tknStr->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->pres, mBuf);
return ROK;
} /* end of cmPkTknStrUNI4 */
*
*/
-#ifdef ANSI
S16 cmPkTknStrUNIXL
(
TknStrUNIXL *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmPkTknStrUNIXL(tknStr, mBuf)
-TknStrUNIXL *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
- U16 ndx;
+ uint16_t ndx;
if(tknStr->pres)
/* Value */
for (ndx = 0; ndx < tknStr->len; ndx++)
{
- CMCHKPK(oduUnpackUInt32, tknStr->val[ndx], mBuf);
+ CMCHKPK(oduPackUInt32, tknStr->val[ndx], mBuf);
}
/* Length */
- CMCHKPK(oduUnpackUInt16, tknStr->len, mBuf);
+ CMCHKPK(oduPackUInt16, tknStr->len, mBuf);
}
/* Token Header */
- CMCHKPK(oduUnpackUInt8, tknStr->pres, mBuf);
+ CMCHKPK(oduPackUInt8, tknStr->pres, mBuf);
return ROK;
} /* end of cmPkTknStrUNIXL */
File: cm_tkns.c
*
*/
-#ifdef ANSI
S16 cmUnpkTknS16
(
TknS16 *tknS16, /* token S16 */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknS16(tknS16, mBuf)
-TknS16 *tknS16; /* token S16 */
-Buffer *mBuf; /* message buffer */
-#endif
{
/* Token Header */
- CMCHKUNPK(oduPackUInt8, &tknS16->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknS16->pres, mBuf);
if (tknS16->pres)
{
*
*/
-#ifdef ANSI
S16 cmUnpkTknBStr32
(
TknBStr32 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknBStr32(tknStr, mBuf)
-TknBStr32 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMUNPKTKNBSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmUnpkTknStr8
(
TknStr8 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknStr8(tknStr, mBuf)
-TknStr8 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMUNPKTKNSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmUnpkTknStr16
(
TknStr16 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknStr16(tknStr, mBuf)
-TknStr16 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
CMUNPKTKNSTR(tknStr, mBuf);
*
*/
-#ifdef ANSI
S16 cmUnpkTknStrOSXL
(
TknStrOSXL *tknStr, /* token string */
Buffer *mBuf, /* message buffer */
Ptr ptr /* pointer to memory control block */
)
-#else
-S16 cmUnpkTknStrOSXL(tknStr, mBuf, ptr)
-TknStrOSXL *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-Ptr ptr; /* pointer to control memory block */
-#endif
{
- U16 ndx;
+ uint16_t ndx;
- CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->pres, mBuf);
if(tknStr->pres)
{
/* Length */
- CMCHKUNPK(oduPackUInt16, &tknStr->len, mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &tknStr->len, mBuf);
if( cmGetMem(ptr, tknStr->len, (Ptr *)&tknStr->val) != ROK)
{
/* Value */
for (ndx = 1; ndx <= tknStr->len; ndx++)
{
- CMCHKUNPK(oduPackUInt8, &tknStr->val[tknStr->len - ndx], mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->val[tknStr->len - ndx], mBuf);
}
}
*
*/
-#ifdef ANSI
S16 cmUnpkTknStrBSXL
(
TknStrBSXL *tknStr, /* token string */
Ptr ptr, /* pointer to memory control block */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknStrBSXL(tknStr, ptr, mBuf)
-TknStrBSXL *tknStr; /* token string */
-Ptr ptr; /* pointer to control memory block */
-Buffer *mBuf; /* message buffer */
-#endif
{
- U16 ndx;
- U16 len;
+ uint16_t ndx;
+ uint16_t len;
- CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->pres, mBuf);
if(tknStr->pres)
{
/* Length */
- CMCHKUNPK(oduPackUInt16, &tknStr->len, mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &tknStr->len, mBuf);
if (tknStr->len % 8)
len = (tknStr->len/8) + 1;
/* Value */
for (ndx = 1; ndx <= len; ndx++)
{
- CMCHKUNPK(oduPackUInt8, &tknStr->val[len - ndx], mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->val[len - ndx], mBuf);
}
}
*
*/
-#ifdef ANSI
S16 cmUnpkTknStrBMP4
(
TknStrBMP4 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknStrBMP4(tknStr, mBuf)
-TknStrBMP4 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
- U8 ndx;
+ uint8_t ndx;
/* Token Header */
- CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->pres, mBuf);
if(tknStr->pres)
{
/* Length */
- CMCHKUNPK(oduPackUInt8, &tknStr->len, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->len, mBuf);
/* Value */
for (ndx = 1; ndx <= tknStr->len; ndx++)
{
- CMCHKUNPK(oduPackUInt16, &tknStr->val[tknStr->len - ndx], mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &tknStr->val[tknStr->len - ndx], mBuf);
}
}
*
*/
-#ifdef ANSI
S16 cmUnpkTknStrBMPXL
(
TknStrBMPXL *tknStr, /* token string */
Buffer *mBuf, /* message buffer */
Ptr ptr /* pointer to memory control block */
)
-#else
-S16 cmUnpkTknStrBMPXL(tknStr, mBuf, ptr)
-TknStrBMPXL *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-Ptr ptr; /* pointer to control memory block */
-#endif
{
- U16 ndx;
+ uint16_t ndx;
- CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->pres, mBuf);
if(tknStr->pres)
{
/* Length */
- CMCHKUNPK(oduPackUInt16, &tknStr->len, mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &tknStr->len, mBuf);
/* Each BMP Character is 2 octet long */
if( cmGetMem(ptr, 2*(tknStr->len), (Ptr *)&tknStr->val) != ROK)
/* Value */
for (ndx = 1; ndx <= tknStr->len; ndx++)
{
- CMCHKUNPK(oduPackUInt16, &tknStr->val[tknStr->len - ndx], mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &tknStr->val[tknStr->len - ndx], mBuf);
}
}
*
*/
-#ifdef ANSI
S16 cmUnpkTknStrUNI4
(
TknStrUNI4 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-S16 cmUnpkTknStrUNI4(tknStr, mBuf)
-TknStrUNI4 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
- U8 ndx;
+ uint8_t ndx;
/* Token Header */
- CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->pres, mBuf);
if(tknStr->pres)
{
/* Length */
- CMCHKUNPK(oduPackUInt8, &tknStr->len, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->len, mBuf);
/* Value */
for (ndx = 1; ndx <= tknStr->len; ndx++)
{
- CMCHKUNPK(oduPackUInt32, &tknStr->val[tknStr->len - ndx], mBuf);
+ CMCHKUNPK(oduUnpackUInt32, &tknStr->val[tknStr->len - ndx], mBuf);
}
}
*
*/
-#ifdef ANSI
S16 cmUnpkTknStrUNIXL
(
TknStrUNIXL *tknStr, /* token string */
Buffer *mBuf, /* message buffer */
Ptr ptr /* pointer to memory control block */
)
-#else
-S16 cmUnpkTknStrUNIXL(tknStr, mBuf, ptr)
-TknStrUNIXL *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-Ptr ptr; /* pointer to control memory block */
-#endif
{
- U16 ndx;
+ uint16_t ndx;
- CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
+ CMCHKUNPK(oduUnpackUInt8, &tknStr->pres, mBuf);
if(tknStr->pres)
{
/* Length */
- CMCHKUNPK(oduPackUInt16, &tknStr->len, mBuf);
+ CMCHKUNPK(oduUnpackUInt16, &tknStr->len, mBuf);
/* Each UNI Character is 4 octets long */
if( cmGetMem(ptr, 4*tknStr->len, (Ptr *)&tknStr->val) != ROK)
/* Value */
for (ndx = 1; ndx <= tknStr->len; ndx++)
{
- CMCHKUNPK(oduPackUInt32, &tknStr->val[tknStr->len - ndx], mBuf);
+ CMCHKUNPK(oduUnpackUInt32, &tknStr->val[tknStr->len - ndx], mBuf);
}
}