145 Commits

Author SHA1 Message Date
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
cc49f1e262 Fix io_file_is_empty() behaviour when file starts with a newline.
Read second byte if the first byte is a newline character to ensure the
file doesn't contain any further data.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-04-12 18:31:48 +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
Erik Saule
6ff9523876 ignore the lock file if the pointed process is dead.
Lukas: Small formatting and logic changes.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-29 10:35:14 +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
061f74108b Simplify str_toupper() in "utils.c".
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-04 08:54:01 +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
6892b59622 Avoid concurrent screen refreshes. 2010-03-21 10:17:03 +00:00
Frederic Culot
cc77e839d8 More work on sidebar customization. 2010-03-21 09:21:06 +00:00
Frederic Culot
a8cb1c92ef All headers gathered into a single one. Typedefs suppressed. 2010-03-20 10:54:41 +00:00
Frederic Culot
9ac8389823 Check for data directory availability added (thanks Brandon for reporting this bug). 2009-11-01 11:06:37 +00:00
Frederic Culot
758d5ff035 Code to save the calendar default view in the configuration file. 2009-10-28 15:15:43 +00:00
Frederic Culot
220f49f206 Memory leak fixed in ical_read_note. 2009-08-09 16:00:01 +00:00
Frederic Culot
989b6c885f Save and restore daemon configuration options. 2009-08-01 17:44:51 +00:00
Frederic Culot
35e4aa61c7 bugfixes 2009-07-29 18:20:54 +00:00
Frederic Culot
4f0c71585d io_file_exist(): new function 2009-07-27 21:00:41 +00:00
Frederic Culot
bccd37ef96 --status flag added 2009-07-26 20:26:14 +00:00
Frederic Culot
3d23af73c0 More work on implementing calcurse daemon. 2009-07-26 12:47:15 +00:00
Frederic Culot
23817b6b7d Incorrect duration format when exporting to ical (thanks Chris for reporting it). 2009-07-23 19:16:03 +00:00
Frederic Culot
ade0470197 Functions added to implement a logging mechanism for calcurse daemon. 2009-07-23 18:33:20 +00:00
Frederic Culot
5dcc213c16 Make use of erase_note() whenever possible. 2009-07-19 08:19:37 +00:00
Frederic Culot
3fe8550373 Fixed a bug related to memory management (a free on a null pointer causes an abort now, which induces side effects on file import). 2009-07-15 18:48:43 +00:00
Frederic Culot
834a7e9aaf New wrappers around memory functions. 2009-07-12 17:48:12 +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
e3d2e58b67 Support for ical import of events which spans over several days added (thanks Andreas for reporting the bug). 2009-07-05 19:37:34 +00:00
Frederic Culot
6d67689b4f Simplified the way data are loaded and saved. 2009-06-28 09:53:16 +00:00
Frederic Culot
e36039dd6c Do not export completed tasks. 2009-06-27 08:38:55 +00:00
Frederic Culot
1a1dda24c3 bugfix: missing 'T' letter in ical export DURATION field (thanks cuz for reporting it) 2009-06-23 08:11:07 +00:00
Frederic Culot
9b1a006678 Exit directly to avoid lock removal by another instance 2009-06-21 18:54:11 +00:00
Frederic Culot
627fd8a8aa Basic lock mechanism implemented to avoid having two calcurse instances running at the same time. 2009-06-21 18:16:21 +00:00
Frederic Culot
8859475550 Fixes gcc 'format-scurity' issue (thanks Francois Boulogne for reporting this) 2009-06-01 08:04:04 +00:00
Frederic Culot
87f010ff06 bugfix: load keys even in non-interactive mode to avoid the loss of user-configured key bindings 2009-01-24 18:45:35 +00:00
Frederic Culot
c8a1b72027 make it possible to use KEY_HOME and KEY_END to define new key bindings, and prevent user from assigning a non-recgnized key 2009-01-24 14:44:09 +00:00
Frederic Culot
38912b36da iso date format added 2009-01-05 20:12:08 +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
65ec1bb0fa small bugfixes and code cleanup 2008-12-14 15:54:50 +00:00
Frederic Culot
8900d0f8f2 exceptions now properly taken into account while exporting data 2008-12-14 11:24:19 +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