X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fcm_llist.c;h=036cf13b0e849456e3d39272a45c3c18c3680906;hb=refs%2Fchanges%2F97%2F4697%2F5;hp=e9ae20ff2d113d86d36118ff4185b8c8b3e849ba;hpb=829bbd114f1c3dc00c1da47bca0a8207c049df3f;p=o-du%2Fl2.git diff --git a/src/cm/cm_llist.c b/src/cm/cm_llist.c index e9ae20ff2..036cf13b0 100644 --- a/src/cm/cm_llist.c +++ b/src/cm/cm_llist.c @@ -61,12 +61,12 @@ * */ #ifdef ANSI -PUBLIC Void cmLListInit +Void cmLListInit ( CmLListCp *lCp /* list control point */ ) #else -PUBLIC Void cmLListInit(lCp) +Void cmLListInit(lCp) CmLListCp *lCp; /* list control point */ #endif { @@ -97,13 +97,13 @@ CmLListCp *lCp; /* list control point */ * */ #ifdef ANSI -PUBLIC Void cmLListAdd2Head +Void cmLListAdd2Head ( CmLListCp *lCp, /* list control point */ CmLList *node /* node to be added */ ) #else -PUBLIC Void cmLListAdd2Head(lCp, node) +Void cmLListAdd2Head(lCp, node) CmLListCp *lCp; /* list control point */ CmLList *node; /* node to be added */ #endif @@ -146,13 +146,13 @@ CmLList *node; /* node to be added */ * */ #ifdef ANSI -PUBLIC Void cmLListAdd2Tail +Void cmLListAdd2Tail ( CmLListCp *lCp, /* list control point */ CmLList *node /* node to be added */ ) #else -PUBLIC Void cmLListAdd2Tail(lCp, node) +Void cmLListAdd2Tail(lCp, node) CmLListCp *lCp; /* list control point */ CmLList *node; /* node to be added */ #endif @@ -195,13 +195,13 @@ CmLList *node; /* node to be added */ * */ #ifdef ANSI -PUBLIC Void cmLListInsCrnt +Void cmLListInsCrnt ( CmLListCp *lCp, /* list control point */ CmLList *node /* node to be added */ ) #else -PUBLIC Void cmLListInsCrnt(lCp, node) +Void cmLListInsCrnt(lCp, node) CmLListCp *lCp; /* list control point */ CmLList *node; /* node to be added */ #endif @@ -250,13 +250,13 @@ CmLList *node; /* node to be added */ * */ #ifdef ANSI -PUBLIC Void cmLListInsAfterCrnt +Void cmLListInsAfterCrnt ( CmLListCp *lCp, /* list control point */ CmLList *node /* node to be added */ ) #else -PUBLIC Void cmLListInsAfterCrnt(lCp, node) +Void cmLListInsAfterCrnt(lCp, node) CmLListCp *lCp; /* list control point */ CmLList *node; /* node to be added */ #endif @@ -307,13 +307,13 @@ CmLList *node; /* node to be added */ * */ #ifdef ANSI -PUBLIC CmLList *cmLListDelFrm +CmLList *cmLListDelFrm ( CmLListCp *lCp, /* list control pointer */ CmLList *node /* node to be removed */ ) #else -PUBLIC CmLList *cmLListDelFrm(lCp, node) +CmLList *cmLListDelFrm(lCp, node) CmLListCp *lCp; /* list control pointer */ CmLList *node; /* node to be removed */ #endif @@ -324,7 +324,7 @@ CmLList *node; /* node to be removed */ /* cm_llist_c_001.main_8 : added null check for node */ if (lCp == (CmLListCp *)NULLP || lCp->count == 0 || !node) { - RETVALUE(NULLP); + return (NULLP); } #endif @@ -332,7 +332,7 @@ CmLList *node; /* node to be removed */ { lCp->first = lCp->crnt = lCp->last = (CmLList *)NULLP; lCp->count = 0; - RETVALUE(node); + return (node); } lCp->count--; @@ -343,7 +343,7 @@ CmLList *node; /* node to be removed */ node->next->prev = (CmLList *)NULLP; lCp->first = node->next; node->next = node->prev = (CmLList *)NULLP; - RETVALUE(node); + return (node); } if (lCp->last == node) @@ -352,13 +352,13 @@ CmLList *node; /* node to be removed */ node->prev->next = (CmLList *)NULLP; lCp->last = node->prev; node->next = node->prev = (CmLList *)NULLP; - RETVALUE(node); + return (node); } node->prev->next = node->next; node->next->prev = node->prev; node->next = node->prev = (CmLList *)NULLP; - RETVALUE(node); + return (node); } /* end of cmLListDelFrm */ @@ -377,13 +377,13 @@ CmLList *node; /* node to be removed */ * --*/ #ifdef ANSI -PUBLIC Void cmLListCatLList +Void cmLListCatLList ( CmLListCp *list1, /*-- list control point --*/ CmLListCp *list2 /*-- node to be added --*/ ) #else -PUBLIC Void cmLListCatLList(list1, list2) +Void cmLListCatLList(list1, list2) CmLListCp *list1; /*-- list control point --*/ CmLListCp *list2; /*-- node to be added --*/ #endif