summaryrefslogtreecommitdiff
path: root/%252525252525252525253fid%252525252525252525253db44307cc83c730618bec85e91bab4...
diff options
context:
space:
mode:
authorLars Henriksen <LarsHenriksen@get2net.dk>2018-04-14 09:25:40 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2021-01-16 22:37:24 -0500
commitb44307cc83c730618bec85e91bab490d11f8dc64 (patch)
tree40a02b835afeae17b3d4bfe57108b25c2accb6bc /%252525252525252525253fid%252525252525252525253db44307cc83c730618bec85e91bab490d11f8dc64%2525252525252525253fid%2525252525252525253db44307cc83c730618bec85e91bab490d11f8dc64&id2%2525252525252525253de44613411a61e41ce4b1d43bd9a2460b539e366b%25252525252525253fid%25252525252525253db44307cc83c730618bec85e91bab490d11f8dc64&id2%25252525252525253de44613411a61e41ce4b1d43bd9a2460b539e366b%252525252525253fid%252525252525253db44307cc83c730618bec85e91bab490d11f8dc64%2525252525253fid%2525252525253db44307cc83c730618bec85e91bab490d11f8dc64%25252525253fid%25252525253db44307cc83c730618bec85e91bab490d11f8dc64%252525253fid%252525253db44307cc83c730618bec85e91bab490d11f8dc64%2525253fid%2525253db44307cc83c730618bec85e91bab490d11f8dc64&id2%2525253de44613411a61e41ce4b1d43bd9a2460b539e366b%25253fid%25253db44307cc83c730618bec85e91bab490d11f8dc64%253fid%253db44307cc83c730618bec85e91bab490d11f8dc64&id2%253de44613411a61e41ce4b1d43bd9a2460b539e366b%3fid%3db44307cc83c730618bec85e91bab490d11f8dc64?id=b44307cc83c730618bec85e91bab490d11f8dc64
parente44613411a61e41ce4b1d43bd9a2460b539e366b (diff)
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 '%252525252525252525253fid%252525252525252525253db44307cc83c730618bec85e91bab490d11f8dc64%2525252525252525253fid%2525252525252525253db44307cc83c730618bec85e91bab490d11f8dc64&id2%2525252525252525253de44613411a61e41ce4b1d43bd9a2460b539e366b%25252525252525253fid%25252525252525253db44307cc83c730618bec85e91bab490d11f8dc64&id2%25252525252525253de44613411a61e41ce4b1d43bd9a2460b539e366b%252525252525253fid%252525252525253db44307cc83c730618bec85e91bab490d11f8dc64%2525252525253fid%2525252525253db44307cc83c730618bec85e91bab490d11f8dc64%25252525253fid%25252525253db44307cc83c730618bec85e91bab490d11f8dc64%252525253fid%252525253db44307cc83c730618bec85e91bab490d11f8dc64%2525253fid%2525253db44307cc83c730618bec85e91bab490d11f8dc64&id2%2525253de44613411a61e41ce4b1d43bd9a2460b539e366b%25253fid%25253db44307cc83c730618bec85e91bab490d11f8dc64%253fid%253db44307cc83c730618bec85e91bab490d11f8dc64&id2%253de44613411a61e41ce4b1d43bd9a2460b539e366b%3fid%3db44307cc83c730618bec85e91bab490d11f8dc64?id=b44307cc83c730618bec85e91bab490d11f8dc64')
0 files changed, 0 insertions, 0 deletions