diff options
Keep a linked list sorted
A general linked list function, llist_reorder(), is introduced that will reorder
a list after a list element has changed.
Some refactoring to avoid code dupliction.
Background
The four linked lists of appointment panel items (appointments, recurring
appointments, events, recurring events) are kept sorted by inserting elements
in order, either when they are first loaded from disk or when new are added.
The ordering is by start time (numerical) and description (alphabetical).
The user is allowed to change start time as well as description. A change is
committed directly to the list item (unlike cut/paste where an item is deleted
and then inserted). This may break the order.
The order property is used when events are loaded from the evenlist into the
day_item vector, see LLIST_FIND_FOREACH_CONT, and when looking for the next
upcoming appointment, see apoint_check_next().
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to '%2525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525253dbe5cf3578d06388ba8368f0b0793e525193ec28e%25252525252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525252525253dbe5cf3578d06388ba8368f0b0793e525193ec28e%252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525253dbe5cf3578d06388ba8368f0b0793e525193ec28e&id2%252525252525252525252525252525252525252525252525253d81c26f8fd588c286cd262068a76234599191a4e9%2525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525253dbe5cf3578d06388ba8368f0b0793e525193ec28e&id2%2525252525252525252525252525252525252525252525253d81c26f8fd588c286cd262068a76234599191a4e9%25252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525253dbe5cf3578d06388ba8368f0b0793e525193ec28e&id2%25252525252525252525252525252525252525252525253d81c26f8fd588c286cd262068a76234599191a4e9%252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525253dbe5cf3578d06388ba8368f0b0793e525193ec28e%2525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525253dbe5cf3578d06388ba8368f0b0793e525193ec28e&id2%2525252525252525252525252525252525252525253d81c26f8fd588c286cd262068a76234599191a4e9%25252525252525252525252525252525252525253fid%25252525252525252525252525252525252525253dbe5cf3578d06388ba8368f0b0793e525193ec28e&id2%25252525252525252525252525252525252525253d81c26f8fd588c286cd262068a76234599191a4e9%252525252525252525252525252525252525253fid%252525252525252525252525252525252525253dbe5cf3578d06388ba8368f0b0793e525193ec28e&id2%252525252525252525252525252525252525253d81c26f8fd588c286cd262068a76234599191a4e9%2525252525252525252525252525252525253fid%2525252525252525252525252525252525253dbe5cf3578d06388ba8368f0b0793e525193ec28e%25252525252525252525252525252525253fid%25252525252525252525252525252525253dbe5cf3578d06388ba8368f0b0793e525193ec28e%252525252525252525252525252525253fid%252525252525252525252525252525253dbe5cf3578d06388ba8368f0b0793e525193ec28e%2525252525252525252525252525253fid%2525252525252525252525252525253dbe5cf3578d06388ba8368f0b0793e525193ec28e&id2%2525252525252525252525252525253d81c26f8fd588c286cd262068a76234599191a4e9%25252525252525252525252525253fid%25252525252525252525252525253dbe5cf3578d06388ba8368f0b0793e525193ec28e&id2%25252525252525252525252525253d81c26f8fd588c286cd262068a76234599191a4e9%252525252525252525252525253fid%252525252525252525252525253dbe5cf3578d06388ba8368f0b0793e525193ec28e%2525252525252525252525253fid%2525252525252525252525253d81c26f8fd588c286cd262068a76234599191a4e9%25252525252525252525253fid%25252525252525252525253d3e8bba2fd1e71899adaa88fc1fbdeacd7b51815e%252525252525252525253fid%252525252525252525253d3e8bba2fd1e71899adaa88fc1fbdeacd7b51815e%2525252525252525253fid%2525252525252525253d3e8bba2fd1e71899adaa88fc1fbdeacd7b51815e%25252525252525253fid%25252525252525253db36e603997e5534b9173d4e0de856309d7d56b3d%252525252525253fid%252525252525253df1e84bd18bc6f9e0ce52b9f1dd08590e97d438a7%2525252525253fid%2525252525253df1e84bd18bc6f9e0ce52b9f1dd08590e97d438a7%25252525253fid%25252525253df1e84bd18bc6f9e0ce52b9f1dd08590e97d438a7%252525253fid%252525253df1e84bd18bc6f9e0ce52b9f1dd08590e97d438a7%2525253fid%2525253d594bd62378b525de2d1551f156ef3804ddfe394f%25253fid%25253d594bd62378b525de2d1551f156ef3804ddfe394f%253fid%253d594bd62378b525de2d1551f156ef3804ddfe394f%3fid%3d4777c60056e42d985cff4e48beb06cdb4cd9b83f?id=b44307cc83c730618bec85e91bab490d11f8dc64')
0 files changed, 0 insertions, 0 deletions