]> granicus.if.org Git - postgresql/blobdiff - src/backend/lib/ilist.c
Rely on inline functions even if that causes warnings in older compilers.
[postgresql] / src / backend / lib / ilist.c
index 957a11812277b9991e6a0f6a82912e7c33532c6d..c26baf35f079088ec12810e2fd084f16ecbd56c5 100644 (file)
@@ -3,7 +3,7 @@
  * ilist.c
  *       support for integrated/inline doubly- and singly- linked lists
  *
- * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
  *
  */
 #include "postgres.h"
 
-/* See ilist.h */
-#define ILIST_INCLUDE_DEFINITIONS
-
 #include "lib/ilist.h"
 
 /*
  * Delete 'node' from list.
  *
- * It is not allowed to delete a 'node' which is is not in the list 'head'
+ * It is not allowed to delete a 'node' which is not in the list 'head'
  *
- * Caution: this is O(n)
+ * Caution: this is O(n); consider using slist_delete_current() instead.
  */
 void
 slist_delete(slist_head *head, slist_node *node)