Tor
0.4.7.0-alpha-dev
|
#include <smartlist_core.h>
Data Fields | |
void ** | list |
int | num_used |
int | capacity |
A resizeable list of pointers, with associated helpful functionality.
The members of this struct are exposed only so that macros and inlines can use them; all access to smartlist internals should go through the functions and macros defined here.
Expands the first path fragment of pattern that contains globs. The path fragment is between prev_sep and next_sep. If the path fragment is the last fragment of pattern, next_sep will be the index of the last char. Returns a list of paths resulting from the glob expansion of the path fragment. Anything after next_sep is not included in the returned list. Returns NULL on failure.
Definition at line 26 of file smartlist_core.h.
void** list |
list has enough capacity to store exactly capacity elements before it needs to be resized. Only the first num_used (<= capacity) elements point to valid data.
Definition at line 32 of file smartlist_core.h.
Referenced by smartlist_add(), smartlist_clear(), smartlist_contains(), smartlist_contains_digest(), smartlist_contains_string(), smartlist_contains_string_case(), smartlist_free_(), smartlist_get_most_frequent_(), smartlist_grow(), smartlist_intersect(), smartlist_join_strings2(), smartlist_overlap(), smartlist_pos(), smartlist_pqueue_assert_ok(), smartlist_pqueue_pop(), smartlist_remove(), smartlist_remove_keeporder(), smartlist_reverse(), smartlist_sort(), smartlist_string_pos(), smartlist_string_remove(), smartlist_subtract(), and smartlist_uniq().