summaryrefslogtreecommitdiffstats
path: root/contrib/vdir
diff options
context:
space:
mode:
authorLars Henriksen <LarsHenriksen@get2net.dk>2019-06-04 09:34:45 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2020-04-28 07:32:44 -0400
commitce81c0fa6362f0092f40eab1cddf0a6339c473c5 (patch)
tree4eac07b3b8ce8c24bc2952034b5410ccb5a48838 /contrib/vdir
parent3f7bd331c875dd889c4d69537b5408396b0e8f16 (diff)
downloadcalcurse-ce81c0fa6362f0092f40eab1cddf0a6339c473c5.tar.gz
calcurse-ce81c0fa6362f0092f40eab1cddf0a6339c473c5.zip
Refactor function calls: recurrence parameters as a single argument
The recurrence parameters are type, frequency, until date and exception list (in RFC 5545 parlance FREQ, INTERVAL, UNTIL and EXDATE's). When these are passed in a function call, the argument list becomes long and not very readable. When support for extended recurrence rules is implemented, the number of recurrence parameters increases, and function signatures must be amended. Solution: The "struct rpt" is extended with the exception list; any future recurrence parameters are added here. A pointer to this structure replaces the recurrence parameters in function calls. Note: Each recurrent event and appoinment instance has (a pointer to) a "struct rpt" and in addition an exception list. The latter is retained to avoid the derived changes, and the exception list in the structure is initialized to an empty list when the recurrent instance is created. Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'contrib/vdir')
0 files changed, 0 insertions, 0 deletions