Tor  0.4.7.0-alpha-dev
smartlist_core Directory Reference

lib/smartlist_core: Minimal dynamic array implementation

More...

Files

file  smartlist_core.c [code]
 Implements the core functionality of a smartlist (a resizeable dynamic array). For more functionality and helper functions, see the container library.
 
file  smartlist_core.h [code]
 Top-level declarations for the smartlist_t dynamic array type.
 
file  smartlist_foreach.h [code]
 Macros for iterating over the elements of a smartlist_t.
 
file  smartlist_split.c [code]
 Split a string into a smartlist_t of substrings.
 
file  smartlist_split.h [code]
 Header for smartlist_split.c.
 

Detailed Description

lib/smartlist_core: Minimal dynamic array implementation

A smartlist_t is a dynamic array type for holding void *. We use it throughout the rest of the codebase.

There are higher-level pieces in lib/container but the ones in lib/smartlist_core are used by the logging code, and therefore cannot use the logging code.