Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "JIRA-ID ODUHIGH-275 classification of logs of RLC part -2"
[o-du/l2.git]
/
src
/
cm
/
cm_tkns.c
diff --git
a/src/cm/cm_tkns.c
b/src/cm/cm_tkns.c
index
1543860
..
165ea0a
100644
(file)
--- a/
src/cm/cm_tkns.c
+++ b/
src/cm/cm_tkns.c
@@
-66,19
+66,12
@@
File: cm_tkns.c
*
*/
File: cm_tkns.c
*
*/
-#ifdef ANSI
-PUBLIC S16 cmPkTknS16
+S16 cmPkTknS16
(
TknS16 *tknS16, /* token S16 */
Buffer *mBuf /* message buffer */
)
(
TknS16 *tknS16, /* token S16 */
Buffer *mBuf /* message buffer */
)
-#else
-PUBLIC S16 cmPkTknS16(tknS16, mBuf)
-TknS16 *tknS16; /* token S16 */
-Buffer *mBuf; /* message buffer */
-#endif
{
{
- TRC2(cmPkTknS16)
if (tknS16->pres)
{
if (tknS16->pres)
{
@@
-107,19
+100,12
@@
Buffer *mBuf; /* message buffer */
*
*/
*
*/
-#ifdef ANSI
-PUBLIC S16 cmPkTknBStr32
+S16 cmPkTknBStr32
(
TknBStr32 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
(
TknBStr32 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-PUBLIC S16 cmPkTknBStr32(tknStr, mBuf)
-TknBStr32 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
{
- TRC2(cmPkTknBStr32)
CMPKTKNBSTR(tknStr, mBuf);
CMPKTKNBSTR(tknStr, mBuf);
@@
-141,19
+127,12
@@
Buffer *mBuf; /* message buffer */
*
*/
*
*/
-#ifdef ANSI
-PUBLIC S16 cmPkTknStr8
+S16 cmPkTknStr8
(
TknStr8 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
(
TknStr8 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-PUBLIC S16 cmPkTknStr8(tknStr, mBuf)
-TknStr8 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
{
- TRC2(cmPkTknStr8)
CMPKTKNSTR(tknStr, mBuf);
CMPKTKNSTR(tknStr, mBuf);
@@
-176,19
+155,12
@@
Buffer *mBuf; /* message buffer */
*
*/
*
*/
-#ifdef ANSI
-PUBLIC S16 cmPkTknStr16
+S16 cmPkTknStr16
(
TknStr16 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
(
TknStr16 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-PUBLIC S16 cmPkTknStr16(tknStr, mBuf)
-TknStr16 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
{
- TRC2(cmPkTknStr16)
CMPKTKNSTR(tknStr, mBuf);
CMPKTKNSTR(tknStr, mBuf);
@@
-211,21
+183,14
@@
Buffer *mBuf; /* message buffer */
*
*/
*
*/
-#ifdef ANSI
-PUBLIC S16 cmPkTknStrOSXL
+S16 cmPkTknStrOSXL
(
TknStrOSXL *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
(
TknStrOSXL *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-PUBLIC S16 cmPkTknStrOSXL(tknStr, mBuf)
-TknStrOSXL *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
{
-
U16
ndx;
+
uint16_t
ndx;
- TRC2(cmPkTknStrOSXL)
if(tknStr->pres)
{
if(tknStr->pres)
{
@@
-260,22
+225,15
@@
Buffer *mBuf; /* message buffer */
*
*/
*
*/
-#ifdef ANSI
-PUBLIC S16 cmPkTknStrBSXL
+S16 cmPkTknStrBSXL
(
TknStrBSXL *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
(
TknStrBSXL *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-PUBLIC S16 cmPkTknStrBSXL(tknStr, mBuf)
-TknStrBSXL *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
{
-
U16
ndx;
-
U16
len;
+
uint16_t
ndx;
+
uint16_t
len;
- TRC2(cmPkTknStrBSXL)
if(tknStr->pres)
{
if(tknStr->pres)
{
@@
-314,21
+272,14
@@
Buffer *mBuf; /* message buffer */
*
*/
*
*/
-#ifdef ANSI
-PUBLIC S16 cmPkTknStrBMP4
+S16 cmPkTknStrBMP4
(
TknStrBMP4 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
(
TknStrBMP4 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-PUBLIC S16 cmPkTknStrBMP4(tknStr, mBuf)
-TknStrBMP4 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
{
-
U8
ndx;
+
uint8_t
ndx;
- TRC2(cmPkTknStrBMP4)
if(tknStr->pres)
{
if(tknStr->pres)
{
@@
-363,21
+314,14
@@
Buffer *mBuf; /* message buffer */
*
*/
*
*/
-#ifdef ANSI
-PUBLIC S16 cmPkTknStrBMPXL
+S16 cmPkTknStrBMPXL
(
TknStrBMPXL *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
(
TknStrBMPXL *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-PUBLIC S16 cmPkTknStrBMPXL(tknStr, mBuf)
-TknStrBMPXL *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
{
-
U16
ndx;
+
uint16_t
ndx;
- TRC2(cmPkTknStrBMPXL)
if(tknStr->pres)
{
if(tknStr->pres)
{
@@
-410,21
+354,14
@@
Buffer *mBuf; /* message buffer */
*
*/
*
*/
-#ifdef ANSI
-PUBLIC S16 cmPkTknStrUNI4
+S16 cmPkTknStrUNI4
(
TknStrUNI4 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
(
TknStrUNI4 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-PUBLIC S16 cmPkTknStrUNI4(tknStr, mBuf)
-TknStrUNI4 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
{
-
U8
ndx;
+
uint8_t
ndx;
- TRC2(cmPkTknStrUNI4)
if(tknStr->pres)
{
if(tknStr->pres)
{
@@
-459,21
+396,14
@@
Buffer *mBuf; /* message buffer */
*
*/
*
*/
-#ifdef ANSI
-PUBLIC S16 cmPkTknStrUNIXL
+S16 cmPkTknStrUNIXL
(
TknStrUNIXL *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
(
TknStrUNIXL *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-PUBLIC S16 cmPkTknStrUNIXL(tknStr, mBuf)
-TknStrUNIXL *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
{
-
U16
ndx;
+
uint16_t
ndx;
- TRC2(cmPkTknStrUNIXL)
if(tknStr->pres)
{
if(tknStr->pres)
{
@@
-509,19
+439,12
@@
Buffer *mBuf; /* message buffer */
File: cm_tkns.c
*
*/
File: cm_tkns.c
*
*/
-#ifdef ANSI
-PUBLIC S16 cmUnpkTknS16
+S16 cmUnpkTknS16
(
TknS16 *tknS16, /* token S16 */
Buffer *mBuf /* message buffer */
)
(
TknS16 *tknS16, /* token S16 */
Buffer *mBuf /* message buffer */
)
-#else
-PUBLIC S16 cmUnpkTknS16(tknS16, mBuf)
-TknS16 *tknS16; /* token S16 */
-Buffer *mBuf; /* message buffer */
-#endif
{
{
- TRC2(cmUnpkTknS16)
/* Token Header */
CMCHKUNPK(oduPackUInt8, &tknS16->pres, mBuf);
/* Token Header */
CMCHKUNPK(oduPackUInt8, &tknS16->pres, mBuf);
@@
-550,19
+473,12
@@
Buffer *mBuf; /* message buffer */
*
*/
*
*/
-#ifdef ANSI
-PUBLIC S16 cmUnpkTknBStr32
+S16 cmUnpkTknBStr32
(
TknBStr32 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
(
TknBStr32 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-PUBLIC S16 cmUnpkTknBStr32(tknStr, mBuf)
-TknBStr32 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
{
- TRC2(cmUnpkTknBStr32)
CMUNPKTKNBSTR(tknStr, mBuf);
CMUNPKTKNBSTR(tknStr, mBuf);
@@
-585,19
+501,12
@@
Buffer *mBuf; /* message buffer */
*
*/
*
*/
-#ifdef ANSI
-PUBLIC S16 cmUnpkTknStr8
+S16 cmUnpkTknStr8
(
TknStr8 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
(
TknStr8 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-PUBLIC S16 cmUnpkTknStr8(tknStr, mBuf)
-TknStr8 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
{
- TRC2(cmUnpkTknStr8)
CMUNPKTKNSTR(tknStr, mBuf);
CMUNPKTKNSTR(tknStr, mBuf);
@@
-620,19
+529,12
@@
Buffer *mBuf; /* message buffer */
*
*/
*
*/
-#ifdef ANSI
-PUBLIC S16 cmUnpkTknStr16
+S16 cmUnpkTknStr16
(
TknStr16 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
(
TknStr16 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-PUBLIC S16 cmUnpkTknStr16(tknStr, mBuf)
-TknStr16 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
{
- TRC2(cmUnpkTknStr16)
CMUNPKTKNSTR(tknStr, mBuf);
CMUNPKTKNSTR(tknStr, mBuf);
@@
-655,23
+557,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 */
)
(
TknStrOSXL *tknStr, /* token string */
Buffer *mBuf, /* message buffer */
Ptr ptr /* pointer to memory control block */
)
-#else
-PUBLIC S16 cmUnpkTknStrOSXL(tknStr, mBuf, ptr)
-TknStrOSXL *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-Ptr ptr; /* pointer to control memory block */
-#endif
{
{
- U16 ndx;
-
- TRC2(cmUnpkTknStrOSXL)
+ uint16_t ndx;
CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
@@
-711,24
+604,16
@@
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 */
)
(
TknStrBSXL *tknStr, /* token string */
Ptr ptr, /* pointer to memory control block */
Buffer *mBuf /* message buffer */
)
-#else
-PUBLIC 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;
- TRC2(cmUnpkTknStrBSXL)
CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
@@
-772,21
+657,14
@@
Buffer *mBuf; /* message buffer */
*
*/
*
*/
-#ifdef ANSI
-PUBLIC S16 cmUnpkTknStrBMP4
+S16 cmUnpkTknStrBMP4
(
TknStrBMP4 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
(
TknStrBMP4 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-PUBLIC S16 cmUnpkTknStrBMP4(tknStr, mBuf)
-TknStrBMP4 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
{
-
U8
ndx;
+
uint8_t
ndx;
- TRC2(cmUnpkTknStrBMP4)
/* Token Header */
CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
/* Token Header */
CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
@@
-821,23
+699,15
@@
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 */
)
(
TknStrBMPXL *tknStr, /* token string */
Buffer *mBuf, /* message buffer */
Ptr ptr /* pointer to memory control block */
)
-#else
-PUBLIC 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;
- TRC2(cmUnpkTknStrBMPXL)
CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
@@
-877,21
+747,14
@@
Ptr ptr; /* pointer to control memory block */
*
*/
*
*/
-#ifdef ANSI
-PUBLIC S16 cmUnpkTknStrUNI4
+S16 cmUnpkTknStrUNI4
(
TknStrUNI4 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
(
TknStrUNI4 *tknStr, /* token string */
Buffer *mBuf /* message buffer */
)
-#else
-PUBLIC S16 cmUnpkTknStrUNI4(tknStr, mBuf)
-TknStrUNI4 *tknStr; /* token string */
-Buffer *mBuf; /* message buffer */
-#endif
{
{
-
U8
ndx;
+
uint8_t
ndx;
- TRC2(cmUnpkTknStrUNI4)
/* Token Header */
CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
/* Token Header */
CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
@@
-926,23
+789,15
@@
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 */
)
(
TknStrUNIXL *tknStr, /* token string */
Buffer *mBuf, /* message buffer */
Ptr ptr /* pointer to memory control block */
)
-#else
-PUBLIC 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;
- TRC2(cmUnpkTknStrUNIXL)
CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);
CMCHKUNPK(oduPackUInt8, &tknStr->pres, mBuf);