1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 07:42:17 +00:00
mpv/test
wm4 782e428284 misc: add linked list helpers
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.
2018-05-24 19:56:35 +02:00
..
chmap_sel.c
chmap.c
gl_video.c tests: stop comparing floats against DBL_EPSILON, use FLT_EPSILON 2018-02-03 13:56:08 -08:00
json.c json: add some non-standard extensions 2018-05-24 19:56:34 +02:00
linked_list.c misc: add linked list helpers 2018-05-24 19:56:35 +02:00
test_helpers.h tests: stop comparing floats against DBL_EPSILON, use FLT_EPSILON 2018-02-03 13:56:08 -08:00