DragonFly submit List (threaded) for 2004-12
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
usr.bin/make ANSIfy stuff in lst.lib
---------------------
PatchSet 380
Date: 2004/11/26 12:17:22
Author: harti
Log:
Style: prototypes, un-register and remove some empty lines.
Members:
lst.lib/lstAppend.c:1.10->1.11
lst.lib/lstAtEnd.c:1.9->1.10
lst.lib/lstAtFront.c:1.9->1.10
lst.lib/lstClose.c:1.8->1.9
lst.lib/lstConcat.c:1.11->1.12
lst.lib/lstDatum.c:1.9->1.10
lst.lib/lstDeQueue.c:1.10->1.11
lst.lib/lstDestroy.c:1.12->1.13
lst.lib/lstDupl.c:1.12->1.13
lst.lib/lstEnQueue.c:1.9->1.10
lst.lib/lstFind.c:1.11->1.12
lst.lib/lstFindFrom.c:1.12->1.13
lst.lib/lstFirst.c:1.8->1.9
lst.lib/lstForEach.c:1.10->1.11
lst.lib/lstForEachFrom.c:1.12->1.13
lst.lib/lstInit.c:1.9->1.10
lst.lib/lstInsert.c:1.10->1.11
lst.lib/lstIsAtEnd.c:1.7->1.8
lst.lib/lstIsEmpty.c:1.8->1.9
lst.lib/lstMember.c:1.10->1.11
lst.lib/lstNext.c:1.9->1.10
lst.lib/lstOpen.c:1.8->1.9
lst.lib/lstRemove.c:1.10->1.11
lst.lib/lstReplace.c:1.9->1.10
lst.lib/lstSucc.c:1.8->1.9
Index: lst.lib/lstAppend.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstAppend.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- lst.lib/lstAppend.c 9 Oct 2002 02:00:22 -0000 1.10
+++ lst.lib/lstAppend.c 26 Nov 2004 12:17:22 -0000 1.11
@@ -56,6 +56,11 @@
* Results:
* SUCCESS if all went well.
*
+ * Arguments:
+ * l affected list
+ * ln node after which to append the datum
+ * d said datum
+ *
* Side Effects:
* A new ListNode is created and linked in to the List. The lastPtr
* field of the List will be altered if ln is the last node in the
@@ -65,14 +70,11 @@
*-----------------------------------------------------------------------
*/
ReturnStatus
-Lst_Append (l, ln, d)
- Lst l; /* affected list */
- LstNode ln; /* node after which to append the datum */
- void * d; /* said datum */
+Lst_Append (Lst l, LstNode ln, void *d)
{
- register List list;
- register ListNode lNode;
- register ListNode nLNode;
+ List list;
+ ListNode lNode;
+ ListNode nLNode;
if (LstValid (l) && (ln == NULL && LstIsEmpty (l))) {
goto ok;
@@ -113,4 +115,3 @@
return (SUCCESS);
}
-
Index: lst.lib/lstAtEnd.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstAtEnd.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- lst.lib/lstAtEnd.c 9 Oct 2002 02:00:22 -0000 1.9
+++ lst.lib/lstAtEnd.c 26 Nov 2004 12:17:22 -0000 1.10
@@ -56,17 +56,19 @@
* Results:
* SUCCESS if life is good.
*
+ * Arguments:
+ * l List to which to add the datum
+ * d Datum to add
+ *
* Side Effects:
* A new ListNode is created and added to the list.
*
*-----------------------------------------------------------------------
*/
ReturnStatus
-Lst_AtEnd (l, d)
- Lst l; /* List to which to add the datum */
- void * d; /* Datum to add */
+Lst_AtEnd(Lst l, void *d)
{
- register LstNode end;
+ LstNode end;
end = Lst_Last (l);
return (Lst_Append (l, end, d));
Index: lst.lib/lstAtFront.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstAtFront.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- lst.lib/lstAtFront.c 9 Oct 2002 02:00:22 -0000 1.9
+++ lst.lib/lstAtFront.c 26 Nov 2004 12:17:22 -0000 1.10
@@ -63,11 +63,9 @@
*-----------------------------------------------------------------------
*/
ReturnStatus
-Lst_AtFront (l, d)
- Lst l;
- void * d;
+Lst_AtFront(Lst l, void *d)
{
- register LstNode front;
+ LstNode front;
front = Lst_First (l);
return (Lst_Insert (l, front, d));
Index: lst.lib/lstClose.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstClose.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- lst.lib/lstClose.c 9 Oct 2002 02:00:22 -0000 1.8
+++ lst.lib/lstClose.c 26 Nov 2004 12:17:22 -0000 1.9
@@ -61,16 +61,18 @@
* Results:
* None.
*
+ * Arguments:
+ * l The list to close
+ *
* Side Effects:
* The list is closed.
*
*-----------------------------------------------------------------------
*/
void
-Lst_Close (l)
- Lst l; /* The list to close */
+Lst_Close(Lst l)
{
- register List list = (List) l;
+ List list = (List) l;
if (LstValid(l) == TRUE) {
list->isOpen = FALSE;
Index: lst.lib/lstConcat.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstConcat.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- lst.lib/lstConcat.c 9 Oct 2002 02:00:22 -0000 1.11
+++ lst.lib/lstConcat.c 26 Nov 2004 12:17:22 -0000 1.12
@@ -61,23 +61,25 @@
* Results:
* SUCCESS if all went well. FAILURE otherwise.
*
+ * Arguments:
+ * l1 The list to which l2 is to be appended
+ * l2 The list to append to l1
+ * flags LST_CONCNEW if LstNode's should be duplicated
+ * LST_CONCLINK if should just be relinked
+ *
* Side Effects:
* New elements are created and appended the the first list.
*-----------------------------------------------------------------------
*/
ReturnStatus
-Lst_Concat (l1, l2, flags)
- Lst l1; /* The list to which l2 is to be appended */
- Lst l2; /* The list to append to l1 */
- int flags; /* LST_CONCNEW if LstNode's should be duplicated
- * LST_CONCLINK if should just be relinked */
+Lst_Concat(Lst l1, Lst l2, int flags)
{
- register ListNode ln; /* original LstNode */
- register ListNode nln; /* new LstNode */
- register ListNode last; /* the last element in the list. Keeps
+ ListNode ln; /* original LstNode */
+ ListNode nln; /* new LstNode */
+ ListNode last; /* the last element in the list. Keeps
* bookkeeping until the end */
- register List list1 = (List)l1;
- register List list2 = (List)l2;
+ List list1 = (List)l1;
+ List list2 = (List)l2;
if (!LstValid (l1) || !LstValid (l2)) {
return (FAILURE);
@@ -176,4 +178,3 @@
return (SUCCESS);
}
-
Index: lst.lib/lstDatum.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstDatum.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- lst.lib/lstDatum.c 9 Oct 2002 02:00:22 -0000 1.9
+++ lst.lib/lstDatum.c 26 Nov 2004 12:17:22 -0000 1.10
@@ -62,13 +62,12 @@
*-----------------------------------------------------------------------
*/
void *
-Lst_Datum (ln)
- LstNode ln;
+Lst_Datum(LstNode ln)
{
+
if (ln != NULL) {
return (((ListNode)ln)->datum);
} else {
return ((void *) NULL);
}
}
-
Index: lst.lib/lstDeQueue.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstDeQueue.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- lst.lib/lstDeQueue.c 9 Oct 2002 02:00:22 -0000 1.10
+++ lst.lib/lstDeQueue.c 26 Nov 2004 12:17:22 -0000 1.11
@@ -63,11 +63,10 @@
*-----------------------------------------------------------------------
*/
void *
-Lst_DeQueue (l)
- Lst l;
+Lst_DeQueue(Lst l)
{
- void * rd;
- register ListNode tln;
+ void * rd;
+ ListNode tln;
tln = (ListNode) Lst_First (l);
if (tln == NULL) {
@@ -81,4 +80,3 @@
return (rd);
}
}
-
Index: lst.lib/lstDestroy.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstDestroy.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- lst.lib/lstDestroy.c 9 Oct 2002 02:00:22 -0000 1.12
+++ lst.lib/lstDestroy.c 26 Nov 2004 12:17:22 -0000 1.13
@@ -64,13 +64,11 @@
*-----------------------------------------------------------------------
*/
void
-Lst_Destroy (l, freeProc)
- Lst l;
- register void (*freeProc)(void *);
+Lst_Destroy(Lst l, void (*freeProc)(void *))
{
- register ListNode ln;
- register ListNode tln = NULL;
- register List list = (List)l;
+ ListNode ln;
+ ListNode tln = NULL;
+ List list = (List)l;
if (l == NULL || ! l) {
/*
Index: lst.lib/lstDupl.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstDupl.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- lst.lib/lstDupl.c 9 Oct 2002 02:00:22 -0000 1.12
+++ lst.lib/lstDupl.c 26 Nov 2004 12:17:22 -0000 1.13
@@ -58,19 +58,20 @@
* Results:
* The new Lst structure or NULL if failure.
*
+ * Arguments:
+ * l the list to duplicate
+ * copyProc A function to duplicate each void
+ *
* Side Effects:
* A new list is created.
*-----------------------------------------------------------------------
*/
Lst
-Lst_Duplicate (l, copyProc)
- Lst l; /* the list to duplicate */
- /* A function to duplicate each void * */
- void * (*copyProc)(void *);
+Lst_Duplicate(Lst l, void *(*copyProc)(void *))
{
- register Lst nl;
- register ListNode ln;
- register List list = (List)l;
+ Lst nl;
+ ListNode ln;
+ List list = (List)l;
if (!LstValid (l)) {
return (NULL);
Index: lst.lib/lstEnQueue.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstEnQueue.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- lst.lib/lstEnQueue.c 9 Oct 2002 02:00:22 -0000 1.9
+++ lst.lib/lstEnQueue.c 26 Nov 2004 12:17:22 -0000 1.10
@@ -63,14 +63,12 @@
*-----------------------------------------------------------------------
*/
ReturnStatus
-Lst_EnQueue (l, d)
- Lst l;
- void * d;
+Lst_EnQueue(Lst l, void *d)
{
+
if (LstValid (l) == FALSE) {
return (FAILURE);
}
return (Lst_Append (l, Lst_Last(l), d));
}
-
Index: lst.lib/lstFind.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstFind.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- lst.lib/lstFind.c 9 Oct 2002 02:00:22 -0000 1.11
+++ lst.lib/lstFind.c 26 Nov 2004 12:17:22 -0000 1.12
@@ -63,11 +63,8 @@
*-----------------------------------------------------------------------
*/
LstNode
-Lst_Find (l, d, cProc)
- Lst l;
- void * d;
- int (*cProc)(void *, void *);
+Lst_Find(Lst l, void *d, int (*cProc)(void *, void *))
{
+
return (Lst_FindFrom (l, Lst_First(l), d, cProc));
}
-
Index: lst.lib/lstFindFrom.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstFindFrom.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- lst.lib/lstFindFrom.c 9 Oct 2002 02:00:22 -0000 1.12
+++ lst.lib/lstFindFrom.c 26 Nov 2004 12:17:22 -0000 1.13
@@ -64,14 +64,10 @@
*-----------------------------------------------------------------------
*/
LstNode
-Lst_FindFrom (l, ln, d, cProc)
- Lst l;
- register LstNode ln;
- register void * d;
- register int (*cProc)(void *, void *);
+Lst_FindFrom(Lst l, LstNode ln, void *d, int (*cProc)(void *, void *))
{
- register ListNode tln;
- Boolean found = FALSE;
+ ListNode tln;
+ Boolean found = FALSE;
if (!LstValid (l) || LstIsEmpty (l) || !LstNodeValid (ln, l)) {
return (NULL);
@@ -94,4 +90,3 @@
return (NULL);
}
}
-
Index: lst.lib/lstFirst.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstFirst.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- lst.lib/lstFirst.c 9 Oct 2002 02:00:22 -0000 1.8
+++ lst.lib/lstFirst.c 26 Nov 2004 12:17:22 -0000 1.9
@@ -62,13 +62,12 @@
*-----------------------------------------------------------------------
*/
LstNode
-Lst_First (l)
- Lst l;
+Lst_First(Lst l)
{
+
if (!LstValid (l) || LstIsEmpty (l)) {
return (NULL);
} else {
return ((LstNode)((List)l)->firstPtr);
}
}
-
Index: lst.lib/lstForEach.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstForEach.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- lst.lib/lstForEach.c 9 Oct 2002 02:00:22 -0000 1.10
+++ lst.lib/lstForEach.c 26 Nov 2004 12:17:22 -0000 1.11
@@ -63,13 +63,9 @@
*
*-----------------------------------------------------------------------
*/
-/*VARARGS2*/
void
-Lst_ForEach (l, proc, d)
- Lst l;
- register int (*proc)(void *, void *);
- register void * d;
+Lst_ForEach(Lst l, int (*proc)(void *, void *), void *d)
{
+
Lst_ForEachFrom(l, Lst_First(l), proc, d);
}
-
Index: lst.lib/lstForEachFrom.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstForEachFrom.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- lst.lib/lstForEachFrom.c 9 Oct 2002 02:00:22 -0000 1.12
+++ lst.lib/lstForEachFrom.c 26 Nov 2004 12:17:22 -0000 1.13
@@ -64,19 +64,14 @@
*
*-----------------------------------------------------------------------
*/
-/*VARARGS2*/
void
-Lst_ForEachFrom (l, ln, proc, d)
- Lst l;
- LstNode ln;
- register int (*proc)(void *, void *);
- register void * d;
+Lst_ForEachFrom(Lst l, LstNode ln, int (*proc)(void *, void *), void *d)
{
- register ListNode tln = (ListNode)ln;
- register List list = (List)l;
- register ListNode next;
- Boolean done;
- int result;
+ ListNode tln = (ListNode)ln;
+ List list = (List)l;
+ ListNode next;
+ Boolean done;
+ int result;
if (!LstValid (list) || LstIsEmpty (list)) {
return;
@@ -110,6 +105,4 @@
}
tln = next;
} while (!result && !LstIsEmpty(list) && !done);
-
}
-
Index: lst.lib/lstInit.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstInit.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- lst.lib/lstInit.c 9 Oct 2002 02:00:22 -0000 1.9
+++ lst.lib/lstInit.c 26 Nov 2004 12:17:22 -0000 1.10
@@ -56,16 +56,18 @@
* Results:
* The created list.
*
+ * Arguments:
+ * circ TRUE if the list should be made circular
+ *
* Side Effects:
* A list is created, what else?
*
*-----------------------------------------------------------------------
*/
Lst
-Lst_Init(circ)
- Boolean circ; /* TRUE if the list should be made circular */
+Lst_Init(Boolean circ)
{
- register List nList;
+ List nList;
PAlloc (nList, List);
Index: lst.lib/lstInsert.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstInsert.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- lst.lib/lstInsert.c 9 Oct 2002 02:00:22 -0000 1.10
+++ lst.lib/lstInsert.c 26 Nov 2004 12:17:22 -0000 1.11
@@ -57,6 +57,10 @@
* Results:
* SUCCESS or FAILURE.
*
+ * l list to manipulate
+ * ln node before which to insert d
+ * d datum to be inserted
+ *
* Side Effects:
* the firstPtr field will be changed if ln is the first node in the
* list.
@@ -64,15 +68,11 @@
*-----------------------------------------------------------------------
*/
ReturnStatus
-Lst_Insert (l, ln, d)
- Lst l; /* list to manipulate */
- LstNode ln; /* node before which to insert d */
- void * d; /* datum to be inserted */
+Lst_Insert(Lst l, LstNode ln, void *d)
{
- register ListNode nLNode; /* new lnode for d */
- register ListNode lNode = (ListNode)ln;
- register List list = (List)l;
-
+ ListNode nLNode; /* new lnode for d */
+ ListNode lNode = (ListNode)ln;
+ List list = (List)l;
/*
* check validity of arguments
@@ -113,4 +113,3 @@
return (SUCCESS);
}
-
Index: lst.lib/lstIsAtEnd.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstIsAtEnd.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- lst.lib/lstIsAtEnd.c 9 Oct 2002 02:00:22 -0000 1.7
+++ lst.lib/lstIsAtEnd.c 26 Nov 2004 12:17:22 -0000 1.8
@@ -73,12 +73,10 @@
*-----------------------------------------------------------------------
*/
Boolean
-Lst_IsAtEnd (l)
- Lst l;
+Lst_IsAtEnd(Lst l)
{
- register List list = (List) l;
+ List list = (List) l;
return (!LstValid (l) || !list->isOpen ||
(list->atEnd == Head) || (list->atEnd == Tail));
}
-
Index: lst.lib/lstIsEmpty.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstIsEmpty.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- lst.lib/lstIsEmpty.c 9 Oct 2002 02:00:22 -0000 1.8
+++ lst.lib/lstIsEmpty.c 26 Nov 2004 12:17:22 -0000 1.9
@@ -64,9 +64,8 @@
*-----------------------------------------------------------------------
*/
Boolean
-Lst_IsEmpty (l)
- Lst l;
+Lst_IsEmpty(Lst l)
{
+
return ( ! LstValid (l) || LstIsEmpty(l));
}
-
Index: lst.lib/lstMember.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstMember.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- lst.lib/lstMember.c 9 Oct 2002 02:00:22 -0000 1.10
+++ lst.lib/lstMember.c 26 Nov 2004 12:17:22 -0000 1.11
@@ -49,12 +49,10 @@
#include "lstInt.h"
LstNode
-Lst_Member (l, d)
- Lst l;
- void * d;
+Lst_Member(Lst l, void *d)
{
- List list = (List) l;
- register ListNode lNode;
+ List list = (List) l;
+ ListNode lNode;
lNode = list->firstPtr;
if (lNode == NULL) {
Index: lst.lib/lstNext.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstNext.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- lst.lib/lstNext.c 9 Oct 2002 02:00:22 -0000 1.9
+++ lst.lib/lstNext.c 26 Nov 2004 12:17:22 -0000 1.10
@@ -69,11 +69,10 @@
*-----------------------------------------------------------------------
*/
LstNode
-Lst_Next (l)
- Lst l;
+Lst_Next(Lst l)
{
- register ListNode tln;
- register List list = (List)l;
+ ListNode tln;
+ List list = (List)l;
if ((LstValid (l) == FALSE) ||
(list->isOpen == FALSE)) {
@@ -114,4 +113,3 @@
return ((LstNode)tln);
}
-
Index: lst.lib/lstOpen.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstOpen.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- lst.lib/lstOpen.c 9 Oct 2002 02:00:22 -0000 1.8
+++ lst.lib/lstOpen.c 26 Nov 2004 12:17:22 -0000 1.9
@@ -69,9 +69,9 @@
*-----------------------------------------------------------------------
*/
ReturnStatus
-Lst_Open (l)
- register Lst l;
+Lst_Open(Lst l)
{
+
if (LstValid (l) == FALSE) {
return (FAILURE);
}
@@ -81,4 +81,3 @@
return (SUCCESS);
}
-
Index: lst.lib/lstRemove.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstRemove.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- lst.lib/lstRemove.c 9 Oct 2002 02:00:22 -0000 1.10
+++ lst.lib/lstRemove.c 26 Nov 2004 12:17:23 -0000 1.11
@@ -64,12 +64,10 @@
*-----------------------------------------------------------------------
*/
ReturnStatus
-Lst_Remove (l, ln)
- Lst l;
- LstNode ln;
+Lst_Remove(Lst l, LstNode ln)
{
- register List list = (List) l;
- register ListNode lNode = (ListNode) ln;
+ List list = (List) l;
+ ListNode lNode = (ListNode) ln;
if (!LstValid (l) ||
!LstNodeValid (ln, l)) {
Index: lst.lib/lstReplace.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstReplace.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- lst.lib/lstReplace.c 9 Oct 2002 02:00:22 -0000 1.9
+++ lst.lib/lstReplace.c 26 Nov 2004 12:17:23 -0000 1.10
@@ -62,10 +62,9 @@
*-----------------------------------------------------------------------
*/
ReturnStatus
-Lst_Replace (ln, d)
- register LstNode ln;
- void * d;
+Lst_Replace(LstNode ln, void *d)
{
+
if (ln == NULL) {
return (FAILURE);
} else {
Index: lst.lib/lstSucc.c
===================================================================
RCS file: /usr/home/okumoto/Work/make/fbsd-cvs/src/usr.bin/make/lst.lib/lstSucc.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- lst.lib/lstSucc.c 9 Oct 2002 02:00:22 -0000 1.8
+++ lst.lib/lstSucc.c 26 Nov 2004 12:17:23 -0000 1.9
@@ -64,13 +64,12 @@
*-----------------------------------------------------------------------
*/
LstNode
-Lst_Succ (ln)
- LstNode ln;
+Lst_Succ(LstNode ln)
{
+
if (ln == NULL) {
return (NULL);
} else {
return ((LstNode) ((ListNode) ln)->nextPtr);
}
}
-
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]