X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fcm_tkns.c;h=d3ce6dbda9f218efcb0bbf975992692ba7d7a8d6;hb=5d74fef7c9fe6b65a965ceac6bfe812872dab323;hp=1543860e5b88bf7fbadbd699190eab4ee35f8e8f;hpb=4d45b914f9e94203603d3b9fdbcb1aad361301dd;p=o-du%2Fl2.git diff --git a/src/cm/cm_tkns.c b/src/cm/cm_tkns.c index 1543860e5..d3ce6dbda 100644 --- a/src/cm/cm_tkns.c +++ b/src/cm/cm_tkns.c @@ -67,18 +67,17 @@ * */ #ifdef ANSI -PUBLIC S16 cmPkTknS16 +S16 cmPkTknS16 ( TknS16 *tknS16, /* token S16 */ Buffer *mBuf /* message buffer */ ) #else -PUBLIC S16 cmPkTknS16(tknS16, mBuf) +S16 cmPkTknS16(tknS16, mBuf) TknS16 *tknS16; /* token S16 */ Buffer *mBuf; /* message buffer */ #endif { - TRC2(cmPkTknS16) if (tknS16->pres) { @@ -108,18 +107,17 @@ Buffer *mBuf; /* message buffer */ */ #ifdef ANSI -PUBLIC S16 cmPkTknBStr32 +S16 cmPkTknBStr32 ( TknBStr32 *tknStr, /* token string */ Buffer *mBuf /* message buffer */ ) #else -PUBLIC S16 cmPkTknBStr32(tknStr, mBuf) +S16 cmPkTknBStr32(tknStr, mBuf) TknBStr32 *tknStr; /* token string */ Buffer *mBuf; /* message buffer */ #endif { - TRC2(cmPkTknBStr32) CMPKTKNBSTR(tknStr, mBuf); @@ -142,18 +140,17 @@ Buffer *mBuf; /* message buffer */ */ #ifdef ANSI -PUBLIC S16 cmPkTknStr8 +S16 cmPkTknStr8 ( TknStr8 *tknStr, /* token string */ Buffer *mBuf /* message buffer */ ) #else -PUBLIC S16 cmPkTknStr8(tknStr, mBuf) +S16 cmPkTknStr8(tknStr, mBuf) TknStr8 *tknStr; /* token string */ Buffer *mBuf; /* message buffer */ #endif { - TRC2(cmPkTknStr8) CMPKTKNSTR(tknStr, mBuf); @@ -177,18 +174,17 @@ Buffer *mBuf; /* message buffer */ */ #ifdef ANSI -PUBLIC S16 cmPkTknStr16 +S16 cmPkTknStr16 ( TknStr16 *tknStr, /* token string */ Buffer *mBuf /* message buffer */ ) #else -PUBLIC S16 cmPkTknStr16(tknStr, mBuf) +S16 cmPkTknStr16(tknStr, mBuf) TknStr16 *tknStr; /* token string */ Buffer *mBuf; /* message buffer */ #endif { - TRC2(cmPkTknStr16) CMPKTKNSTR(tknStr, mBuf); @@ -212,20 +208,19 @@ Buffer *mBuf; /* message buffer */ */ #ifdef ANSI -PUBLIC S16 cmPkTknStrOSXL +S16 cmPkTknStrOSXL ( TknStrOSXL *tknStr, /* token string */ Buffer *mBuf /* message buffer */ ) #else -PUBLIC S16 cmPkTknStrOSXL(tknStr, mBuf) +S16 cmPkTknStrOSXL(tknStr, mBuf) TknStrOSXL *tknStr; /* token string */ Buffer *mBuf; /* message buffer */ #endif { U16 ndx; - TRC2(cmPkTknStrOSXL) if(tknStr->pres) { @@ -261,13 +256,13 @@ Buffer *mBuf; /* message buffer */ */ #ifdef ANSI -PUBLIC S16 cmPkTknStrBSXL +S16 cmPkTknStrBSXL ( TknStrBSXL *tknStr, /* token string */ Buffer *mBuf /* message buffer */ ) #else -PUBLIC S16 cmPkTknStrBSXL(tknStr, mBuf) +S16 cmPkTknStrBSXL(tknStr, mBuf) TknStrBSXL *tknStr; /* token string */ Buffer *mBuf; /* message buffer */ #endif @@ -275,7 +270,6 @@ Buffer *mBuf; /* message buffer */ U16 ndx; U16 len; - TRC2(cmPkTknStrBSXL) if(tknStr->pres) { @@ -315,20 +309,19 @@ Buffer *mBuf; /* message buffer */ */ #ifdef ANSI -PUBLIC S16 cmPkTknStrBMP4 +S16 cmPkTknStrBMP4 ( TknStrBMP4 *tknStr, /* token string */ Buffer *mBuf /* message buffer */ ) #else -PUBLIC S16 cmPkTknStrBMP4(tknStr, mBuf) +S16 cmPkTknStrBMP4(tknStr, mBuf) TknStrBMP4 *tknStr; /* token string */ Buffer *mBuf; /* message buffer */ #endif { U8 ndx; - TRC2(cmPkTknStrBMP4) if(tknStr->pres) { @@ -364,20 +357,19 @@ Buffer *mBuf; /* message buffer */ */ #ifdef ANSI -PUBLIC S16 cmPkTknStrBMPXL +S16 cmPkTknStrBMPXL ( TknStrBMPXL *tknStr, /* token string */ Buffer *mBuf /* message buffer */ ) #else -PUBLIC S16 cmPkTknStrBMPXL(tknStr, mBuf) +S16 cmPkTknStrBMPXL(tknStr, mBuf) TknStrBMPXL *tknStr; /* token string */ Buffer *mBuf; /* message buffer */ #endif { U16 ndx; - TRC2(cmPkTknStrBMPXL) if(tknStr->pres) { @@ -411,20 +403,19 @@ Buffer *mBuf; /* message buffer */ */ #ifdef ANSI -PUBLIC S16 cmPkTknStrUNI4 +S16 cmPkTknStrUNI4 ( TknStrUNI4 *tknStr, /* token string */ Buffer *mBuf /* message buffer */ ) #else -PUBLIC S16 cmPkTknStrUNI4(tknStr, mBuf) +S16 cmPkTknStrUNI4(tknStr, mBuf) TknStrUNI4 *tknStr; /* token string */ Buffer *mBuf; /* message buffer */ #endif { U8 ndx; - TRC2(cmPkTknStrUNI4) if(tknStr->pres) { @@ -460,20 +451,19 @@ Buffer *mBuf; /* message buffer */ */ #ifdef ANSI -PUBLIC S16 cmPkTknStrUNIXL +S16 cmPkTknStrUNIXL ( TknStrUNIXL *tknStr, /* token string */ Buffer *mBuf /* message buffer */ ) #else -PUBLIC S16 cmPkTknStrUNIXL(tknStr, mBuf) +S16 cmPkTknStrUNIXL(tknStr, mBuf) TknStrUNIXL *tknStr; /* token string */ Buffer *mBuf; /* message buffer */ #endif { U16 ndx; - TRC2(cmPkTknStrUNIXL) if(tknStr->pres) { @@ -510,18 +500,17 @@ Buffer *mBuf; /* message buffer */ * */ #ifdef ANSI -PUBLIC S16 cmUnpkTknS16 +S16 cmUnpkTknS16 ( TknS16 *tknS16, /* token S16 */ Buffer *mBuf /* message buffer */ ) #else -PUBLIC S16 cmUnpkTknS16(tknS16, mBuf) +S16 cmUnpkTknS16(tknS16, mBuf) TknS16 *tknS16; /* token S16 */ Buffer *mBuf; /* message buffer */ #endif { - TRC2(cmUnpkTknS16) /* Token Header */ CMCHKUNPK(oduPackUInt8, &tknS16->pres, mBuf); @@ -551,18 +540,17 @@ Buffer *mBuf; /* message buffer */ */ #ifdef ANSI -PUBLIC S16 cmUnpkTknBStr32 +S16 cmUnpkTknBStr32 ( TknBStr32 *tknStr, /* token string */ Buffer *mBuf /* message buffer */ ) #else -PUBLIC S16 cmUnpkTknBStr32(tknStr, mBuf) +S16 cmUnpkTknBStr32(tknStr, mBuf) TknBStr32 *tknStr; /* token string */ Buffer *mBuf; /* message buffer */ #endif { - TRC2(cmUnpkTknBStr32) CMUNPKTKNBSTR(tknStr, mBuf); @@ -586,18 +574,17 @@ Buffer *mBuf; /* message buffer */ */ #ifdef ANSI -PUBLIC S16 cmUnpkTknStr8 +S16 cmUnpkTknStr8 ( TknStr8 *tknStr, /* token string */ Buffer *mBuf /* message buffer */ ) #else -PUBLIC S16 cmUnpkTknStr8(tknStr, mBuf) +S16 cmUnpkTknStr8(tknStr, mBuf) TknStr8 *tknStr; /* token string */ Buffer *mBuf; /* message buffer */ #endif { - TRC2(cmUnpkTknStr8) CMUNPKTKNSTR(tknStr, mBuf); @@ -621,18 +608,17 @@ Buffer *mBuf; /* message buffer */ */ #ifdef ANSI -PUBLIC S16 cmUnpkTknStr16 +S16 cmUnpkTknStr16 ( TknStr16 *tknStr, /* token string */ Buffer *mBuf /* message buffer */ ) #else -PUBLIC S16 cmUnpkTknStr16(tknStr, mBuf) +S16 cmUnpkTknStr16(tknStr, mBuf) TknStr16 *tknStr; /* token string */ Buffer *mBuf; /* message buffer */ #endif { - TRC2(cmUnpkTknStr16) CMUNPKTKNSTR(tknStr, mBuf); @@ -656,14 +642,14 @@ Buffer *mBuf; /* message buffer */ */ #ifdef ANSI -PUBLIC S16 cmUnpkTknStrOSXL +S16 cmUnpkTknStrOSXL ( TknStrOSXL *tknStr, /* token string */ Buffer *mBuf, /* message buffer */ Ptr ptr /* pointer to memory control block */ ) #else -PUBLIC S16 cmUnpkTknStrOSXL(tknStr, mBuf, ptr) +S16 cmUnpkTknStrOSXL(tknStr, mBuf, ptr) TknStrOSXL *tknStr; /* token string */ Buffer *mBuf; /* message buffer */ Ptr ptr; /* pointer to control memory block */ @@ -671,8 +657,6 @@ Ptr ptr; /* pointer to control memory block */ { U16 ndx; - TRC2(cmUnpkTknStrOSXL) - CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf); if(tknStr->pres) @@ -712,14 +696,14 @@ Ptr ptr; /* pointer to control memory block */ */ #ifdef ANSI -PUBLIC S16 cmUnpkTknStrBSXL +S16 cmUnpkTknStrBSXL ( TknStrBSXL *tknStr, /* token string */ Ptr ptr, /* pointer to memory control block */ Buffer *mBuf /* message buffer */ ) #else -PUBLIC S16 cmUnpkTknStrBSXL(tknStr, ptr, mBuf) +S16 cmUnpkTknStrBSXL(tknStr, ptr, mBuf) TknStrBSXL *tknStr; /* token string */ Ptr ptr; /* pointer to control memory block */ Buffer *mBuf; /* message buffer */ @@ -728,7 +712,6 @@ Buffer *mBuf; /* message buffer */ U16 ndx; U16 len; - TRC2(cmUnpkTknStrBSXL) CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf); @@ -773,20 +756,19 @@ Buffer *mBuf; /* message buffer */ */ #ifdef ANSI -PUBLIC S16 cmUnpkTknStrBMP4 +S16 cmUnpkTknStrBMP4 ( TknStrBMP4 *tknStr, /* token string */ Buffer *mBuf /* message buffer */ ) #else -PUBLIC S16 cmUnpkTknStrBMP4(tknStr, mBuf) +S16 cmUnpkTknStrBMP4(tknStr, mBuf) TknStrBMP4 *tknStr; /* token string */ Buffer *mBuf; /* message buffer */ #endif { U8 ndx; - TRC2(cmUnpkTknStrBMP4) /* Token Header */ CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf); @@ -822,14 +804,14 @@ Buffer *mBuf; /* message buffer */ */ #ifdef ANSI -PUBLIC S16 cmUnpkTknStrBMPXL +S16 cmUnpkTknStrBMPXL ( TknStrBMPXL *tknStr, /* token string */ Buffer *mBuf, /* message buffer */ Ptr ptr /* pointer to memory control block */ ) #else -PUBLIC S16 cmUnpkTknStrBMPXL(tknStr, mBuf, ptr) +S16 cmUnpkTknStrBMPXL(tknStr, mBuf, ptr) TknStrBMPXL *tknStr; /* token string */ Buffer *mBuf; /* message buffer */ Ptr ptr; /* pointer to control memory block */ @@ -837,7 +819,6 @@ Ptr ptr; /* pointer to control memory block */ { U16 ndx; - TRC2(cmUnpkTknStrBMPXL) CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf); @@ -878,20 +859,19 @@ Ptr ptr; /* pointer to control memory block */ */ #ifdef ANSI -PUBLIC S16 cmUnpkTknStrUNI4 +S16 cmUnpkTknStrUNI4 ( TknStrUNI4 *tknStr, /* token string */ Buffer *mBuf /* message buffer */ ) #else -PUBLIC S16 cmUnpkTknStrUNI4(tknStr, mBuf) +S16 cmUnpkTknStrUNI4(tknStr, mBuf) TknStrUNI4 *tknStr; /* token string */ Buffer *mBuf; /* message buffer */ #endif { U8 ndx; - TRC2(cmUnpkTknStrUNI4) /* Token Header */ CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf); @@ -927,14 +907,14 @@ Buffer *mBuf; /* message buffer */ */ #ifdef ANSI -PUBLIC S16 cmUnpkTknStrUNIXL +S16 cmUnpkTknStrUNIXL ( TknStrUNIXL *tknStr, /* token string */ Buffer *mBuf, /* message buffer */ Ptr ptr /* pointer to memory control block */ ) #else -PUBLIC S16 cmUnpkTknStrUNIXL(tknStr, mBuf, ptr) +S16 cmUnpkTknStrUNIXL(tknStr, mBuf, ptr) TknStrUNIXL *tknStr; /* token string */ Buffer *mBuf; /* message buffer */ Ptr ptr; /* pointer to control memory block */ @@ -942,7 +922,6 @@ Ptr ptr; /* pointer to control memory block */ { U16 ndx; - TRC2(cmUnpkTknStrUNIXL) CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);