mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01: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 |