aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2013-06-25 20:51:44 +0000
committerFlorian Dold <florian.dold@gmail.com>2013-06-25 20:51:44 +0000
commit298adbb1d8ac5355e925c69fae5706518c18d8e9 (patch)
tree57705d41d9cd5d88bbaf29a029d381fec9caf97a
parent7f6d33372f2fdb17724934e55e363b6d31a1b4fa (diff)
downloadgnunet-298adbb1d8ac5355e925c69fae5706518c18d8e9.tar.gz
gnunet-298adbb1d8ac5355e925c69fae5706518c18d8e9.zip
documented corner case of dll remove
-rw-r--r--src/include/gnunet_container_lib.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/include/gnunet_container_lib.h b/src/include/gnunet_container_lib.h
index 1eb55a4c5..c9cfa23d2 100644
--- a/src/include/gnunet_container_lib.h
+++ b/src/include/gnunet_container_lib.h
@@ -999,9 +999,13 @@ GNUNET_CONTAINER_multihashmap32_get_multiple (const struct
999 999
1000 1000
1001/** 1001/**
1002 * Remove an element from a DLL. Assumes 1002 * Remove an element from a DLL. Assumes that head, tail and
1003 * that head, tail and element are structs 1003 * element point to structs with prev and next fields.
1004 * with prev and next fields. 1004 *
1005 * Using the head or tail pointer as the element
1006 * argument does NOT work with this macro.
1007 * Make sure to store head/tail in another pointer
1008 * and use it to remove the head or tail of the list.
1005 * 1009 *
1006 * @param head pointer to the head of the DLL 1010 * @param head pointer to the head of the DLL
1007 * @param tail pointer to the tail of the DLL 1011 * @param tail pointer to the tail of the DLL