mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 15:52:25 +00:00
782e428284
This provides macros for managing intrusive doubly linked lists. There are many ways how to do those in a "generic" way in C. For example Solaris style lists are pretty nice: https://github.com/illumos/illumos-gate/blob/master/usr/src/uts/common/sys/list.h https://github.com/illumos/illumos-gate/blob/master/usr/src/common/list/list.c I even have an independent implementation of this, which could be ISC licensed. But I think it's easier to vomit ~100 lines of preprocessor garbage, which has a lower footprint, and I think it wins slightly on the side of type safety, simplicity, and ease of use, even if it doesn't look as magically nice. |
||
---|---|---|
.. | ||
chmap_sel.c | ||
chmap.c | ||
gl_video.c | ||
json.c | ||
linked_list.c | ||
test_helpers.h |