src/lib/common.c 1.130
1.130 2009/05/10 02:09:16 markd
convert slAddHead to an inline function, bitten one too many times by it being a macro
Index: src/lib/common.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/lib/common.c,v
retrieving revision 1.129
retrieving revision 1.130
diff -b -B -U 4 -r1.129 -r1.130
--- src/lib/common.c 15 Apr 2009 17:40:39 -0000 1.129
+++ src/lib/common.c 10 May 2009 02:09:16 -0000 1.130
@@ -217,24 +217,8 @@
n->next = NULL;
*ppt = n;
}
-/* Add new node to start of list.
- * Usage:
- * slAddHead(&list, node);
- * where list and nodes are both pointers to structure
- * that begin with a next pointer.
- */
-void slSafeAddHead(void *listPt, void *node)
-{
-struct slList **ppt = (struct slList **)listPt;
-struct slList *n = (struct slList *)node;
-
-n->next = *ppt;
-*ppt = n;
-}
-
-
void *slPopHead(void *vListPt)
/* Return head of list and remove it from list. (Fast) */
{
struct slList **listPt = (struct slList **)vListPt;