summaryrefslogtreecommitdiff
path: root/src/recur.c
AgeCommit message (Collapse)Author
2011-06-09Fix whitespace issuesLukas Fleischer
Strip trailing whitespaces in all source files. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-22Update copyright notices in source files, documentation and "COPYING".Lukas Fleischer
* Update copyright dates (use 2004-2011 as date range everywhere). * Change copyright holder from "Frederic Culot" to "calcurse Development Team". Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-22Use generic lists for recurring item exceptions.Lukas Fleischer
Rename "days" structure to "excp" which seems to be a better name here. Use generic linked lists of excp structures instead of using the "days" structure which again contains a linked list implementation. Do some cleanups and invocation fixes. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-19Use generic lists for recurring apointments and events.Lukas Fleischer
Use them instead of "recur_apoint_list" and "next" pointers in "recur_event" type variables. Includes some code simplifications and cleanups. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-19Add recur_apoint_inday() and recur_event_inday().Lukas Fleischer
To be used with llist_fn_match_t callbacks later. I feel a bit ill adding those functions. This definitely is a hack. Ultimately, there should be some generic recur_item_inday() function that accepts both recurring apointments and events (or some wrapper structure) instead of parameter galeere. This is not the right place to fix that tho. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-05Compare pointers to "NULL" instead of "0".Lukas Fleischer
"bad_zero.cocci" spatch from http://coccinelle.lip6.fr/impact_linux.php. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-03Remove dead assignments spotted by clang-analyzer.Lukas Fleischer
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-15Use upper case for macro names.Lukas Fleischer
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-14Overall indentation fixes.Lukas Fleischer
Use spaces instead of tabs for source code indentation only, strip trailing whitespaces from lines. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04Update website links to match the new URL.Lukas Fleischer
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04Update mail addresses to match the new mailing lists.Lukas Fleischer
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-03Remove CVS "$Id" headers.Lukas Fleischer
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-03Fixed file permissions.Lukas Fleischer
2011-01-11Make parse_date accept several short forms.Lukas Fleischer
Short forms are only accepted in interactive mode (e.g. when using the "Go to" function, editing a recurrent item's end date, and so on). Samples: "1/1/30" for "01/01/2030", "26" for the 26th of the currently selected month/year or "3/1" for Mar 01 (or Jan 03, depending on the date format) of the currently selected year.
2010-03-20All headers gathered into a single one. Typedefs suppressed.Frederic Culot
2010-03-08Patch to correct the wrong calculation of recurrent items' dates after aFrederic Culot
turn of year (submitted by Lukas Fleischer, thanks!).
2009-07-19Make use of erase_note() whenever possible.Frederic Culot
2009-07-05Switch to BSD license.Frederic Culot
2009-05-22The buffer should be allocated dynamically, but I am quite busy right now ↵Frederic Culot
:'( Anyway, thanks Kamil for feedback
2009-01-03more code cleanupFrederic Culot
2009-01-02various bugfixesFrederic Culot
2009-01-01cut/paste feature adedFrederic Culot
fixed a 2-years old bug that made repeated items with exceptions to load uncorrectly in some cases (thanks Jan for reporting it)
2008-12-28Added wrappers around libc's memory management functions, to easily debug ↵Frederic Culot
memory usage
2008-12-14small bugfixes and code cleanupFrederic Culot
2008-12-14exceptions now properly taken into account while exporting dataFrederic Culot
2008-12-13daylight saving time related problems fixed (thanks youshe and Jan for ↵Frederic Culot
reporting them)
2008-12-12code cleanupFrederic Culot
2008-12-08color configuration menu adapted to handle user-defined key bindingsFrederic Culot
2008-12-07Checks added while loading key bindings configuration.Frederic Culot
2008-11-16More work on implementing user-definable keybindingsFrederic Culot
2008-09-16New functions added to handle ical importFrederic Culot
2008-08-10pcal export addedFrederic Culot
2008-05-03memory leaks fixed, thanks Tony for reporting themFrederic Culot
2008-04-12Yet another style for source code. GNU style now used (I am fed up with tabs...)Frederic Culot
2008-04-09Tony's patch concerning date format configuration importedFrederic Culot
2008-01-20Code parts related to item update rewrittenFrederic Culot
2008-01-13Ability to attach notes to appointments and events addedFrederic Culot
2007-12-10bugfix in recur_item_inday(): leap years should now be properly handledFrederic Culot
2007-10-21routines updated to handle new window_t and window_e typesFrederic Culot
2007-08-15recur_repeat_item() updated to use apoint_hilt()Frederic Culot
2007-07-29compiler warnings fixedFrederic Culot
2007-07-28unuseful headers removed and some functions became staticFrederic Culot
2007-07-01recur_repeat_item() and recur_item_inday() prototypes updated to take into ↵Frederic Culot
account date_t type
2007-04-14bugfix: forgot to save item state for endless recurrent appointmentsFrederic Culot
2007-04-04MAX_LENGTH replaced by stdio.h's BUFSIZFrederic Culot
2007-03-10recur_item_inday() improved, thanks to Tony's patchFrederic Culot
2007-03-10global variable 'colr' suppressedFrederic Culot
2007-02-25recur_apoint_check_next() and recur_apoint_check_repeated() modifiedFrederic Culot
to handle item state
2007-02-24recur_apoint_new() modified to handle item stateFrederic Culot
recur_apoint_switch_notify() created recur_apoint_write() and recur_apoint_scan() updated to handle item state
2007-01-16use of getstring() definesFrederic Culot