clarify what smartlist_remove promises, since we rely on it.

svn:r3473
This commit is contained in:
Roger Dingledine 2005-01-31 00:24:59 +00:00
parent 5d8659429e
commit c53c7a0b4c

View File

@ -100,8 +100,9 @@ void smartlist_add_all(smartlist_t *sl, const smartlist_t *s2)
SMARTLIST_FOREACH(s2, void *, element, smartlist_add(sl, element)); SMARTLIST_FOREACH(s2, void *, element, smartlist_add(sl, element));
} }
/** Remove all elements E from sl such that E==element. Does not preserve /** Remove all elements E from sl such that E==element. Preserve
* the order of s1. * the order of any elements before E, but elements after E can be
* rearranged.
*/ */
void smartlist_remove(smartlist_t *sl, void *element) { void smartlist_remove(smartlist_t *sl, void *element) {
int i; int i;