diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-14 20:06:19 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-06 13:58:09 -0700 |
commit | ebdb3e3c3029d3762207e8dcadfa3a61bf0a9293 (patch) | |
tree | d27db501b1f79a0c89a1d5fbf2790171f843399c /core/picture.c | |
parent | db24f16686b7e704e625f499140848681b31cfde (diff) | |
download | subsurface-ebdb3e3c3029d3762207e8dcadfa3a61bf0a9293.tar.gz |
media: create sort_picture_table function via macro
This needs a slight change to the macro, because here we sort by
value type. Yes, from a C-programming point of view this is horrible,
however a decent compiler should just inline everything and not
pass around value types.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/picture.c')
-rw-r--r-- | core/picture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/picture.c b/core/picture.c index df1304ab8..d7ba597f6 100644 --- a/core/picture.c +++ b/core/picture.c @@ -31,7 +31,7 @@ static MAKE_GROW_TABLE(picture_table, struct picture, pictures) static MAKE_GET_INSERTION_INDEX(picture_table, struct picture, pictures, picture_less_than) MAKE_ADD_TO(picture_table, struct picture, pictures) static MAKE_REMOVE_FROM(picture_table, pictures) -//MAKE_SORT(picture_table, struct picture, pictures, comp_pictures) +MAKE_SORT(picture_table, struct picture, pictures, comp_pictures) //MAKE_REMOVE(picture_table, struct picture, picture) MAKE_CLEAR_TABLE(picture_table, pictures, picture) |