97 Commits

Author SHA1 Message Date
Lukas Fleischer
57b62a1e49 Use do-while loops when reading start time and duration in apoint_add().
Using do-while loops seems more appropriate here as "item_time" hasn't
even been read when either of the loops are entered. Spotted by
clang-analyzer.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-12 12:02:39 +02:00
Lukas Fleischer
5fc6d92866 Remove some more dead assignments spotted by clang-analyzer.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-12 12:02:38 +02:00
Lukas Fleischer
6fb0f6f4c6 Compare pointers to "NULL" instead of "0".
"bad_zero.cocci" spatch from http://coccinelle.lip6.fr/impact_linux.php.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-05 09:27:04 +02:00
Lukas Fleischer
9c9fd5da15 Overall indentation fixes.
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-14 19:03:53 +01:00
Lukas Fleischer
2030a0563c Parse appointment end times correctly if they date back.
End times used to be parsed incorrectly if start and end time's hour
components were equal, but the end time was smaller than the start time.
This is fixed by comparing the minute components as well in case of
equal hour components.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-13 12:57:55 +01:00
Lukas Fleischer
c22dcaf6be Update website links to match the new URL.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 11:07:49 +01:00
Lukas Fleischer
73e9649387 Update mail addresses to match the new mailing lists.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 11:07:40 +01:00
Lukas Fleischer
91c9cac898 Remove CVS "$Id" headers.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-03 16:19:45 +01:00
Lukas Fleischer
56b9cbcb84 Fixed file permissions. 2011-03-03 12:21:16 +01:00
Frederic Culot
a8cb1c92ef All headers gathered into a single one. Typedefs suppressed. 2010-03-20 10:54:41 +00:00
Frederic Culot
5dcc213c16 Make use of erase_note() whenever possible. 2009-07-19 08:19:37 +00:00
Frederic Culot
5694955002 stdbool header removed, unsigned type used instead 2009-07-12 16:21:57 +00:00
Frederic Culot
27b25548a4 Switch to BSD license. 2009-07-05 20:33:13 +00:00
Frederic Culot
3f6aff84e6 The buffer should be allocated dynamically, but I am quite busy right now :'( Anyway, thanks Kamil for feedback 2009-05-22 19:59:17 +00:00
Frederic Culot
936b6fe373 more code cleanup 2009-01-03 21:32:10 +00:00
Frederic Culot
bf3bce0ab2 code cleanup 2009-01-02 22:28:53 +00:00
Frederic Culot
aa7d6c5eb7 various bugfixes 2009-01-02 19:52:32 +00:00
Frederic Culot
cac30a7e14 cut/paste feature aded
fixed a 2-years old bug that made repeated items with exceptions to load
uncorrectly in some cases (thanks Jan for reporting it)
2009-01-01 17:50:41 +00:00
Frederic Culot
5352496984 Added wrappers around libc's memory management functions, to easily debug memory usage 2008-12-28 13:13:58 +00:00
Frederic Culot
b1d3178bba small bugfixes and a major one (freeze when deleting an appointment's note, thanks Jan for reporting it) 2008-12-15 20:02:00 +00:00
Frederic Culot
65ec1bb0fa small bugfixes and code cleanup 2008-12-14 15:54:50 +00:00
Frederic Culot
53db22a380 code cleanup 2008-12-12 20:44:50 +00:00
Frederic Culot
639058740a Checks added while loading key bindings configuration. 2008-12-07 09:20:38 +00:00
Frederic Culot
9d4899110a More work on implementing user-definable keybindings 2008-11-16 17:42:53 +00:00
Frederic Culot
2341c90003 some memory leaks fixed using valgrind and some minor code cleanup 2008-04-19 21:04:47 +00:00
Frederic Culot
efd782699b Yet another style for source code. GNU style now used (I am fed up with tabs...) 2008-04-12 21:14:03 +00:00
Frederic Culot
407a262938 Code parts related to item update rewritten 2008-01-20 10:45:38 +00:00
Frederic Culot
738a3a4170 Ability to attach notes to appointments and events added 2008-01-13 12:40:45 +00:00
Frederic Culot
478b2762e6 Ability to attach notes to todo items added 2007-12-30 16:27:58 +00:00
Frederic Culot
53ead324ad routines updated to handle new window_t and window_e types 2007-10-21 13:42:34 +00:00
Frederic Culot
2beb88e473 hilt_app moved to the static variable hilt
apoint_hilt(), apoint_hilt_set(), apoint_hilt_decrease(), and
apoint_hilt_increase() added
scroll_pad_down() and scroll_pad_up() moved to apoint_scroll_pad_down()
and apoint_scroll_pad_up()
2007-08-15 15:33:54 +00:00
Frederic Culot
73dce825b8 apoint_update_panel() updated to display the phase of the moon 2007-08-12 13:08:03 +00:00
Frederic Culot
ff60394c8e error handling while in ncurses mode improved 2007-08-04 14:34:03 +00:00
Frederic Culot
2767b1f0e9 compiler warnings fixed 2007-07-29 20:59:09 +00:00
Frederic Culot
4b987f70ac unuseful headers removed and some functions became static 2007-07-28 13:11:42 +00:00
Frederic Culot
648580f963 apoint_update_panel(), apoint_add() and apoint_delete() added 2007-07-21 19:35:14 +00:00
Frederic Culot
10a6d6d570 apoint_switch_notify() prototype updated to take into account date_t type 2007-07-01 17:54:33 +00:00
Frederic Culot
be46b49384 use of DAYINSEC define 2007-04-04 19:35:09 +00:00
Frederic Culot
eed40f2fbe apoint_check_next() modified to handle item state
apoint_switch_notify() updated
updated call to notify_check_added()
2007-02-25 19:31:44 +00:00
Frederic Culot
8955f5e7e6 apoint_switch_notify() created
apoint_write() updated to save item state
apoint_scan() and apoint_new() updated to load item state
2007-02-24 17:37:08 +00:00
Frederic Culot
9d7650295c strcpy replaced by strncpy 2006-12-15 15:25:09 +00:00
Frederic Culot
7a84b132d1 display_item_date() updated to add an asterisk in front of recurrent items 2006-10-28 13:09:59 +00:00
Frederic Culot
9c8c943c6d apoint_check_next() updated 2006-09-16 15:22:20 +00:00
Frederic Culot
c52da6cace apoint_recur_s2apoint_s() added, appoint_check_next() and apoint_delete_bynum() updated 2006-09-14 15:08:08 +00:00
Frederic Culot
64b6d4bccf implementation of a mutex lock to prevent appointment linked list from race conditions
apoint_llist_init() created
2006-09-12 14:57:06 +00:00
Frederic Culot
b44651364f apoint_check_next() created 2006-09-11 13:42:57 +00:00
Frederic Culot
ac36e94341 Initial revision 2006-07-31 21:00:02 +00:00