[or-cvs] clarify what smartlist_remove promises, since we rely on it.
Roger Dingledine
arma at seul.org
Mon Jan 31 00:25:01 UTC 2005
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;
More information about the tor-commits
mailing list