diff options
author | Lars Henriksen <LarsHenriksen@get2net.dk> | 2019-06-04 09:34:45 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2020-04-28 07:32:44 -0400 |
commit | ce81c0fa6362f0092f40eab1cddf0a6339c473c5 (patch) | |
tree | 4eac07b3b8ce8c24bc2952034b5410ccb5a48838 /%25252525253fid%25252525253ddd864316c671e28b4979c9365b59acc3a9a2d031&id2%25252525253d23eb51456a4a2ece4fd8f3ac4db956773350d5ed%252525253fid%252525253ddd864316c671e28b4979c9365b59acc3a9a2d031%2525253fid%2525253ddd864316c671e28b4979c9365b59acc3a9a2d031%25253fid%25253d23eb51456a4a2ece4fd8f3ac4db956773350d5ed%253fid%253dbf3dba2ae2b3c1f0e06191b6878dc7f22570f8f6%3fid%3dbf3dba2ae2b3c1f0e06191b6878dc7f22570f8f6?id=ce81c0fa6362f0092f40eab1cddf0a6339c473c5 | |
parent | 3f7bd331c875dd889c4d69537b5408396b0e8f16 (diff) |
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 '%25252525253fid%25252525253ddd864316c671e28b4979c9365b59acc3a9a2d031&id2%25252525253d23eb51456a4a2ece4fd8f3ac4db956773350d5ed%252525253fid%252525253ddd864316c671e28b4979c9365b59acc3a9a2d031%2525253fid%2525253ddd864316c671e28b4979c9365b59acc3a9a2d031%25253fid%25253d23eb51456a4a2ece4fd8f3ac4db956773350d5ed%253fid%253dbf3dba2ae2b3c1f0e06191b6878dc7f22570f8f6%3fid%3dbf3dba2ae2b3c1f0e06191b6878dc7f22570f8f6?id=ce81c0fa6362f0092f40eab1cddf0a6339c473c5')
0 files changed, 0 insertions, 0 deletions