From c53c7a0b4c2362e3985290c57a6ca756b84c7f59 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 31 Jan 2005 00:24:59 +0000 Subject: [PATCH] clarify what smartlist_remove promises, since we rely on it. svn:r3473 --- src/common/container.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;