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
U8, U16, U32 data type changes
[o-du/l2.git]
/
src
/
cm
/
cm_llist.c
diff --git
a/src/cm/cm_llist.c
b/src/cm/cm_llist.c
index
12fb582
..
e9f070d
100644
(file)
--- a/
src/cm/cm_llist.c
+++ b/
src/cm/cm_llist.c
@@
-76,7
+76,7
@@
CmLListCp *lCp; /* list control point */
lCp->crnt = (CmLList *)NULLP;
lCp->count = 0;
lCp->crnt = (CmLList *)NULLP;
lCp->count = 0;
-
RETVOID
;
+
return
;
} /* end of cmLListInit */
\f
} /* end of cmLListInit */
\f
@@
-110,7
+110,7
@@
CmLList *node; /* node to be added */
#ifdef ERRCHK
if (lCp == (CmLListCp *)NULLP)
#ifdef ERRCHK
if (lCp == (CmLListCp *)NULLP)
-
RETVOID
;
+
return
;
#endif
lCp->count++;
#endif
lCp->count++;
@@
-122,11
+122,11
@@
CmLList *node; /* node to be added */
if (!node->next)
{
lCp->last = node;
if (!node->next)
{
lCp->last = node;
-
RETVOID
;
+
return
;
}
node->next->prev = node;
}
node->next->prev = node;
-
RETVOID
;
+
return
;
} /* end of cmLListAdd2Head */
} /* end of cmLListAdd2Head */
@@
-158,7
+158,7
@@
CmLList *node; /* node to be added */
#ifdef ERRCHK
if (lCp == (CmLListCp *)NULLP)
#ifdef ERRCHK
if (lCp == (CmLListCp *)NULLP)
-
RETVOID
;
+
return
;
#endif
lCp->count++;
#endif
lCp->count++;
@@
-170,11
+170,11
@@
CmLList *node; /* node to be added */
if (!node->prev)
{
lCp->first = node;
if (!node->prev)
{
lCp->first = node;
-
RETVOID
;
+
return
;
}
node->prev->next = node;
}
node->prev->next = node;
-
RETVOID
;
+
return
;
} /* end of cmLListAdd2Tail */
\f
} /* end of cmLListAdd2Tail */
\f
@@
-206,7
+206,7
@@
CmLList *node; /* node to be added */
#ifdef ERRCHK
if (!lCp)
#ifdef ERRCHK
if (!lCp)
-
RETVOID
;
+
return
;
#endif
lCp->count++;
#endif
lCp->count++;
@@
-215,7
+215,7
@@
CmLList *node; /* node to be added */
{
lCp->crnt = lCp->first = lCp->last = node;
node->next = NULLP;
{
lCp->crnt = lCp->first = lCp->last = node;
node->next = NULLP;
-
RETVOID
;
+
return
;
}
node->next = lCp->crnt;
}
node->next = lCp->crnt;
@@
-228,7
+228,7
@@
CmLList *node; /* node to be added */
lCp->first = node;
lCp->crnt = node;
lCp->first = node;
lCp->crnt = node;
-
RETVOID
;
+
return
;
} /* end of cmLListInsCrnt */
\f
/* cm_llist_c_001.main_7 - Add function */
} /* end of cmLListInsCrnt */
\f
/* cm_llist_c_001.main_7 - Add function */
@@
-260,7
+260,7
@@
CmLList *node; /* node to be added */
#ifdef ERRCHK
if (!lCp)
#ifdef ERRCHK
if (!lCp)
-
RETVOID
;
+
return
;
#endif
lCp->count++;
#endif
lCp->count++;
@@
-268,7
+268,7
@@
CmLList *node; /* node to be added */
if (lCp->count == 1)
{
lCp->crnt = lCp->first = lCp->last = node;
if (lCp->count == 1)
{
lCp->crnt = lCp->first = lCp->last = node;
-
RETVOID
;
+
return
;
}
node->prev = lCp->crnt;
}
node->prev = lCp->crnt;
@@
-281,7
+281,7
@@
CmLList *node; /* node to be added */
lCp->last = node;
lCp->crnt = node;
lCp->last = node;
lCp->crnt = node;
-
RETVOID
;
+
return
;
} /* end of cmLListInsAfterCrnt */
} /* end of cmLListInsAfterCrnt */
@@
-386,7
+386,7
@@
Void cmLListCatLList(list1, list2)
/*-- if the second list is empty nothing to do --*/
if(list2->count == 0)
{
/*-- if the second list is empty nothing to do --*/
if(list2->count == 0)
{
-
RETVOID
;
+
return
;
}
/*-- if the first list is empty make first the same as second*/
}
/*-- if the first list is empty make first the same as second*/
@@
-408,7
+408,7
@@
Void cmLListCatLList(list1, list2)
cmLListInit(list2);
cmLListInit(list2);
-
RETVOID
;
+
return
;
} /*-- end of cmLListCatLList --*/
/**********************************************************************
} /*-- end of cmLListCatLList --*/
/**********************************************************************