mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Ups. Revert the last commits. These have been committed by accident.
This commit is contained in:
parent
d735bf8813
commit
d2f389f5e4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143657
@ -3,7 +3,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= make
|
||||
CFLAGS+=-I${.CURDIR} -std=c99
|
||||
CFLAGS+=-I${.CURDIR}
|
||||
SRCS= arch.c buf.c compat.c cond.c dir.c for.c hash.c job.c lst.c main.c \
|
||||
make.c parse.c str.c suff.c targ.c util.c var.c var_modify.c
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -475,7 +475,6 @@ Lst_Remove(Lst *list, LstNode *ln)
|
||||
if (ln->useCount == 0) {
|
||||
free(ln);
|
||||
} else {
|
||||
printf("USE COUNT %d\n", ln->useCount);
|
||||
ln->flags |= LN_DELETED;
|
||||
}
|
||||
}
|
||||
|
@ -164,17 +164,9 @@ void Lst_ForEach(Lst *, DoProc *, void *);
|
||||
#define Lst_ForEach(LST, FN, D) (Lst_ForEachFrom((LST), Lst_First(LST), \
|
||||
(FN), (D)))
|
||||
|
||||
/*
|
||||
#define LST_FOREACH(PTR, LST) \
|
||||
for ((PTR) = (LST)->firstPtr; (PTR) != NULL; (PTR) = (PTR)->nextPtr)
|
||||
|
||||
*/
|
||||
#define LST_FOREACH(PTR, LST) \
|
||||
for (LstNode *_tmp1 = (LST)->firstPtr, *_tmp2 = Lst_Succ(_tmp1);\
|
||||
((PTR) = _tmp1) != NULL; \
|
||||
(Lst_Succ(_tmp1) != _tmp2 ? abort() : (void)0), \
|
||||
(_tmp1 = _tmp2), _tmp2 = Lst_Succ(_tmp1))
|
||||
|
||||
/*
|
||||
* Apply a function to all elements of a lst starting from a certain point.
|
||||
* If the list is circular, the application will wrap around to the
|
||||
|
Loading…
Reference in New Issue
Block a user