[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] clarify what smartlist_remove promises, since we rely on it.
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] clarify what smartlist_remove promises, since we rely on it.
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Sun, 30 Jan 2005 19:25:01 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sun, 30 Jan 2005 19:25:35 -0500
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Update of /home2/or/cvsroot/tor/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/common
Modified Files:
	container.c 
Log Message:
clarify what smartlist_remove promises, since we rely on it.
Index: container.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/common/container.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- container.c	12 Jan 2005 04:53:53 -0000	1.16
+++ container.c	31 Jan 2005 00:24:59 -0000	1.17
@@ -100,8 +100,9 @@
   SMARTLIST_FOREACH(s2, void *, element, smartlist_add(sl, element));
 }
 
-/** Remove all elements E from sl such that E==element.  Does not preserve
- * the order of s1.
+/** Remove all elements E from sl such that E==element.  Preserve
+ * the order of any elements before E, but elements after E can be
+ * rearranged.
  */
 void smartlist_remove(smartlist_t *sl, void *element) {
   int i;