mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
whitespace fixes
svn:r5682
This commit is contained in:
parent
0dc8e284f8
commit
6005e110b9
@ -228,6 +228,7 @@ smartlist_del(smartlist_t *sl, int idx)
|
|||||||
tor_assert(idx < sl->num_used);
|
tor_assert(idx < sl->num_used);
|
||||||
sl->list[idx] = sl->list[--sl->num_used];
|
sl->list[idx] = sl->list[--sl->num_used];
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Remove the <b>idx</b>th element of sl; if idx is not the last element,
|
/** Remove the <b>idx</b>th element of sl; if idx is not the last element,
|
||||||
* moving all subsequent elements back one space. Return the old value
|
* moving all subsequent elements back one space. Return the old value
|
||||||
* of the <b>idx</b>th element.
|
* of the <b>idx</b>th element.
|
||||||
@ -242,6 +243,7 @@ smartlist_del_keeporder(smartlist_t *sl, int idx)
|
|||||||
if (idx < sl->num_used)
|
if (idx < sl->num_used)
|
||||||
memmove(sl->list+idx, sl->list+idx+1, sizeof(void*)*(sl->num_used-idx));
|
memmove(sl->list+idx, sl->list+idx+1, sizeof(void*)*(sl->num_used-idx));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Insert the value <b>val</b> as the new <b>idx</b>th element of
|
/** Insert the value <b>val</b> as the new <b>idx</b>th element of
|
||||||
* <b>sl</b>, moving all items previously at <b>idx</b> or later
|
* <b>sl</b>, moving all items previously at <b>idx</b> or later
|
||||||
* forward one space.
|
* forward one space.
|
||||||
|
Loading…
Reference in New Issue
Block a user