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
remove/replaced PRIVATE and EXTERN keywords
[o-du/l2.git]
/
src
/
mt
/
ss_queue.c
diff --git
a/src/mt/ss_queue.c
b/src/mt/ss_queue.c
index
ba0b311
..
91fc301
100644
(file)
--- a/
src/mt/ss_queue.c
+++ b/
src/mt/ss_queue.c
@@
-102,7
+102,6
@@
S16 SInitQueue(q)
Queue *q; /* queue */
#endif
{
Queue *q; /* queue */
#endif
{
- TRC1(SInitQueue)
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check queue pointer */
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check queue pointer */
@@
-158,10
+157,9
@@
Queue *q; /* queue */
#ifdef T2K_MEM_LEAK_DBG
char* file = __FILE__;
#ifdef T2K_MEM_LEAK_DBG
char* file = __FILE__;
-
U32
line = __LINE__;
+
uint32_t
line = __LINE__;
#endif
#endif
- TRC1(SFlushQueue)
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check queue */
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check queue */
@@
-231,7
+229,6
@@
Queue *q2; /* queue 2 */
Order order; /* order */
#endif
{
Order order; /* order */
#endif
{
- TRC1(SCatQueue)
#if (ERRCLASS & ERRCLS_INT_PAR)
if (q1 == NULLP)
#if (ERRCLASS & ERRCLS_INT_PAR)
if (q1 == NULLP)
@@
-341,7
+338,6
@@
Queue *q; /* queue */
QLen *lngPtr; /* pointer to length */
#endif
{
QLen *lngPtr; /* pointer to length */
#endif
{
- TRC1(SFndLenQueue)
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check queue */
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check queue */
@@
-403,7
+399,6
@@
QLen idx; /* index */
Buffer *tmpBuf;
QLen i;
Buffer *tmpBuf;
QLen i;
- TRC1(SExamQueue)
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check buffer pointer */
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check buffer pointer */
@@
-498,7
+493,6
@@
QLen idx; /* index */
Buffer *tBuf;
QLen i;
Buffer *tBuf;
QLen i;
- TRC1(SAddQueue)
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check queue */
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check queue */
@@
-623,7
+617,6
@@
QLen idx; /* index */
Buffer *tBuf;
QLen i;
Buffer *tBuf;
QLen i;
- TRC1(SRemQueue)
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check buffer pointer */
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check buffer pointer */
@@
-715,18
+708,17
@@
QLen idx; /* index */
*
*/
#ifdef ANSI
*
*/
#ifdef ANSI
-
INLINE
S16 SQueueFirst
+
inline
S16 SQueueFirst
(
Buffer *buf, /* buffer */
Queue *q /* queue */
)
#else
(
Buffer *buf, /* buffer */
Queue *q /* queue */
)
#else
-
INLINE
S16 SQueueFirst(buf, q)
+
inline
S16 SQueueFirst(buf, q)
Buffer *buf; /* buffer */
Queue *q; /* queue */
#endif
{
Buffer *buf; /* buffer */
Queue *q; /* queue */
#endif
{
- TRC1(SQueueFirst)
return (SAddQueue(buf, q, 0));
} /* end of SQueueFirst */
return (SAddQueue(buf, q, 0));
} /* end of SQueueFirst */
@@
-754,18
+746,17
@@
Queue *q; /* queue */
*
*/
#ifdef ANSI
*
*/
#ifdef ANSI
-
INLINE
S16 SDequeueFirst
+
inline
S16 SDequeueFirst
(
Buffer **bufPtr, /* pointer to buffer */
Queue *q /* queue */
)
#else
(
Buffer **bufPtr, /* pointer to buffer */
Queue *q /* queue */
)
#else
-
INLINE
S16 SDequeueFirst(bufPtr, q)
+
inline
S16 SDequeueFirst(bufPtr, q)
Buffer **bufPtr; /* pointer to buffer */
Queue *q; /* queue */
#endif
{
Buffer **bufPtr; /* pointer to buffer */
Queue *q; /* queue */
#endif
{
- TRC2(SDequeueFirst)
return (SRemQueue(bufPtr, q, 0));
} /* end of SDequeueFirst */
return (SRemQueue(bufPtr, q, 0));
} /* end of SDequeueFirst */
@@
-802,7
+793,6
@@
Buffer *buf; /* buffer */
Queue *q; /* queue */
#endif
{
Queue *q; /* queue */
#endif
{
- TRC1(SQueueLast)
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check queue */
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check queue */
@@
-858,7
+848,6
@@
Queue *q; /* queue */
{
S16 ret;
{
S16 ret;
- TRC1(SDequeueLast)
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check buffer pointer */
#if (ERRCLASS & ERRCLS_INT_PAR)
/* check buffer pointer */
@@
-909,10
+898,9
@@
S16 ssInitDmndQ(dQueue)
SsDmndQ *dQueue; /* Demand Queue */
#endif
{
SsDmndQ *dQueue; /* Demand Queue */
#endif
{
-
U8
i;
+
uint8_t
i;
S16 ret;
S16 ret;
- TRC0(ssInitDmnddQ)
#if (ERRCLASS & ERRCLS_INT_PAR)
if (dQueue == NULLP)
#if (ERRCLASS & ERRCLS_INT_PAR)
if (dQueue == NULLP)
@@
-1007,11
+995,10
@@
S16 ssDestroyDmndQ(dQueue)
SsDmndQ *dQueue; /* demand Queue */
#endif
{
SsDmndQ *dQueue; /* demand Queue */
#endif
{
-
U8
i;
+
uint8_t
i;
Buffer *tBuf;
S16 ret;
Buffer *tBuf;
S16 ret;
- TRC0(ssDestroyDmndQ)
#if (ERRCLASS & ERRCLS_INT_PAR)
if (dQueue == NULLP)
#if (ERRCLASS & ERRCLS_INT_PAR)
if (dQueue == NULLP)
@@
-1098,22
+1085,21
@@
Order order; /* position */
#endif
{
#ifndef TENB_RTLIN_CHANGES
#endif
{
#ifndef TENB_RTLIN_CHANGES
-
U8
maskIndex; /* mask Index */
-
U8
bitPosition; /* bit position in index */
+
uint8_t
maskIndex; /* mask Index */
+
uint8_t
bitPosition; /* bit position in index */
#else
#else
-
U8
qIndex;
+
uint8_t
qIndex;
#endif
Queue *queue; /* queue in demand queue */
S16 ret; /* return value */
#ifdef SS_PERF
int value;
#endif
Queue *queue; /* queue in demand queue */
S16 ret; /* return value */
#ifdef SS_PERF
int value;
-
U32
size;
+
uint32_t
size;
#endif
#ifdef MSPD_MLOG_NEW
#endif
#ifdef MSPD_MLOG_NEW
-
U32
t = MacGetTick();
+
uint32_t
t = MacGetTick();
#endif
#endif
- TRC0(ssDmndQPut)
#if (ERRCLASS & ERRCLS_INT_PAR)
if (dQueue == NULLP)
#if (ERRCLASS & ERRCLS_INT_PAR)
if (dQueue == NULLP)
@@
-1299,7
+1285,6
@@
SsDmndQ *dQueue; /* demand queue */
{
S16 ret;
{
S16 ret;
- TRC0(ssDmndQWait)
#if (ERRCLASS & ERRCLS_INT_PAR)
if (dQueue == NULLP)
#if (ERRCLASS & ERRCLS_INT_PAR)
if (dQueue == NULLP)
@@
-1360,11
+1345,10
@@
Order order; /* position */
S16 ret;
S16 i;
#ifndef TENB_RTLIN_CHANGES
S16 ret;
S16 i;
#ifndef TENB_RTLIN_CHANGES
-
U8
bitPosition;
-
U8
qIndex;
+
uint8_t
bitPosition;
+
uint8_t
qIndex;
#endif
#endif
- TRC0(ssDmndQGet)
#if (ERRCLASS & ERRCLS_INT_PAR)
if (mBuf == NULLP)
#if (ERRCLASS & ERRCLS_INT_PAR)
if (mBuf == NULLP)
@@
-1542,9
+1526,8
@@
QLen *len; /* queue length */
{
S16 ret; /* return value */
{
S16 ret; /* return value */
-
U8
i;
+
uint8_t
i;
- TRC0(ssFndLenDmndQ)
#if (ERRCLASS & ERRCLS_INT_PAR)
if ((dQueue == NULLP) || (len == NULLP))
#if (ERRCLASS & ERRCLS_INT_PAR)
if ((dQueue == NULLP) || (len == NULLP))