Lukas Fleischer
621b335179
Return -1 in io_file_is_empty() if file cannot be accessed.
...
Ensure files don't appear as empty if fopen() fails (e.g. on temporary
EACCES failures).
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-22 02:47:38 +02:00
Lukas Fleischer
9fab24818a
Use generic lists for recurring apointments and events.
...
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-19 11:42:35 +02:00
Lukas Fleischer
153c638d1d
Use generic lists for generic day items.
...
Use the new generic list implementation instead of "next" pointers in
day_item type variables. Includes some cleanups and fixes.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-19 11:42:35 +02:00
Lukas Fleischer
6f883c0f3f
Use generic lists for events.
...
Use the new generic list implementation instead of those insane "next"
pointers in events. Includes some cleanups.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-19 11:42:34 +02:00
Lukas Fleischer
77ef3fe76e
Use generic lists for appointments.
...
Use the new generic list implementation instead of "apoint_list"
everywhere. Simplify stuff and drop unused variables as well.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-19 11:42:33 +02:00
Lukas Fleischer
b9c1969126
Drop empty notes after editing.
...
Keeping empty notes doesn't make sense here. Also, there doesn't seem to
be a simple way to erase notes yet. This will make calcurse delete any
notes that are empty (meaning that they are either 0-byte files or
contain nothing but a newline character) when returning from the editor.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-12 12:02:23 +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
5b12c236cf
Remove dead assignments spotted by clang-analyzer.
...
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-03 22:09:00 +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
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
fdcfd74823
Remove date_sec2hour_str() from "utils.c".
...
date_sec2hour_str() is superseded by date_sec2date_str() with "%H:%M" as
date format string, so replace all invocations and remove that function
from "utils.c".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 10:08:02 +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
Lukas Fleischer
c8af480f52
Make parse_date accept several short forms.
...
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.
2011-01-11 22:10:48 +00:00
Frederic Culot
a8cb1c92ef
All headers gathered into a single one. Typedefs suppressed.
2010-03-20 10:54:41 +00:00
Frederic Culot
a7c2acc06f
Bugfix in the way time slices are filled.
2009-10-16 15:51:33 +00:00
Frederic Culot
abc03bb86f
More work on the weekly calendar view.
2009-10-08 16:28:05 +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
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
8fdd1510c6
Automatic periodic saves implemented
2008-12-28 19:41:45 +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
53db22a380
code cleanup
2008-12-12 20:44:50 +00:00
Frederic Culot
7ff22e9b3f
color configuration menu adapted to handle user-defined key bindings
2008-12-08 19:17:06 +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
0c281d2c1e
Tony's patch concerning date format configuration imported
2008-04-09 20:38:29 +00:00
Frederic Culot
407a262938
Code parts related to item update rewritten
2008-01-20 10:45:38 +00:00
Frederic Culot
54c2b60041
minor improvements and bugfixes
2008-01-17 19:35:42 +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
9fdc33133c
day_edit_item() updated to use apoint_hilt()
2007-08-15 15:37:10 +00:00
Frederic Culot
7903609259
memory leak fixed in day_item_s2apoint_s()
2007-08-04 15:11:47 +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
52d79ac5b3
day_process_storage() added
2007-07-20 19:05:19 +00:00
Frederic Culot
ff0c8aed71
day_edit_item() and day_check_if_item() prototype updated
2007-07-01 17:52:45 +00:00
Frederic Culot
bfecd760b8
bugfix: item ending time is now assigned to correct day in day_edit_item()
2007-05-06 13:33:06 +00:00
Frederic Culot
2496888682
MAX_LENGTH replaced by stdio.h's BUFSIZ
2007-04-04 19:38:18 +00:00
Frederic Culot
f82590c811
global variable 'colr' suppressed
2007-03-10 15:54:24 +00:00
Frederic Culot
ed40b1f038
updated call to notify_check_added()
2007-02-25 19:32:53 +00:00