From: Roger Dingledine Date: Mon, 31 Jan 2005 00:24:59 +0000 (+0000) Subject: clarify what smartlist_remove promises, since we rely on it. X-Git-Tag: tor-0.1.0.1-rc~367 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c53c7a0b4c2362e3985290c57a6ca756b84c7f59;p=thirdparty%2Ftor.git clarify what smartlist_remove promises, since we rely on it. svn:r3473 --- diff --git a/src/common/container.c b/src/common/container.c index b76b94f013..4dc0a7ad77 100644 --- a/src/common/container.c +++ b/src/common/container.c @@ -100,8 +100,9 @@ void smartlist_add_all(smartlist_t *sl, const smartlist_t *s2) 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;