summaryrefslogtreecommitdiff
path: root/src/util/vec.h
AgeCommit message (Collapse)AuthorFilesLines
2013-04-28hub/manager: No need to do a search to insert something at the endYorhel1-0/+8
2013-04-27util/vec: Added vector macros + test suiteYorhel1-0/+135
The current macros are specially designed for ordered arrays, but it'd be easy to add some macros for unordered arrays, too. Support for sparse arrays (like klib/kvec) isn't on my agenda. I'm no doubt going to need this abstraction for various things in the future (especially share and download queue management), but this current implementation is designed to replace the ugly array in hub/manager.c with something more elegant (and potentially faster, but it likely won't matter).