Changeset 24 for branches/FREEBSD/src/kmk/lst.lib/lstDeQueue.c
- Timestamp:
- Nov 26, 2002, 10:24:54 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/FREEBSD/src/kmk/lst.lib/lstDeQueue.c
r9 r24 34 34 * SUCH DAMAGE. 35 35 * 36 * @(#)lstDeQueue.c 8.1 (Berkeley) 6/6/9336 * $FreeBSD: src/usr.bin/make/lst.lib/lstDeQueue.c,v 1.6 1999/08/28 01:03:48 peter Exp $ 37 37 */ 38 38 39 39 #ifndef lint 40 #include <sys/cdefs.h> 41 __FBSDID("$FreeBSD: src/usr.bin/make/lst.lib/lstDeQueue.c,v 1.10 2002/10/09 02:00:22 jmallett Exp $"); 40 static char sccsid[] = "@(#)lstDeQueue.c 8.1 (Berkeley) 6/6/93"; 42 41 #endif /* not lint */ 43 42 … … 55 54 * 56 55 * Results: 57 * The datum in the node at the head or (ick) N ULL if the list56 * The datum in the node at the head or (ick) NIL if the list 58 57 * is empty. 59 58 * … … 63 62 *----------------------------------------------------------------------- 64 63 */ 65 void * 64 ClientData 66 65 Lst_DeQueue (l) 67 66 Lst l; 68 67 { 69 void *rd;68 ClientData rd; 70 69 register ListNode tln; 71 70 72 71 tln = (ListNode) Lst_First (l); 73 if (tln == N ULL) {74 return (( void *) NULL);72 if (tln == NilListNode) { 73 return ((ClientData) NIL); 75 74 } 76 75 77 76 rd = tln->datum; 78 77 if (Lst_Remove (l, (LstNode)tln) == FAILURE) { 79 return (( void *) NULL);78 return ((ClientData) NIL); 80 79 } else { 81 80 return (rd);
Note:
See TracChangeset
for help on using the changeset viewer.