Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | src/calendar.c: Fix range check in calendar_move() | Lukas Fleischer | 2012-01-21 | 1 | -12/+14 |
| | | | | | | | | | | | | | | | We added count prefix support to motion commands in commit 59e006e56d9f893506af56a4ca114fe53b537e49 but obviously forgot to check whether the range checks in calendar_move() still work correctly. Refactor out range checks and replace them by a single check that is performed *after* the new date is computed, but before we assign the new value to the actual selected date. This ensures we won't have to bother about these again when changing/adding functionality in/to calendar_move(), while keeping performance (date_change() is pretty cheap and range violations are corner cases anyway). Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de> | ||||
* | Merge branch 'maint' | Lukas Fleischer | 2011-11-11 | 1 | -1/+4 |
|\ | | | | | | | | | | | Conflicts: src/calcurse.h src/io.c | ||||
| * | Cleanup joinable threads on termination | Lukas Fleischer | 2011-10-04 | 1 | -1/+4 |
| | | | | | | | | | | | | | | Always invoke pthread_join() when we blow up a thread via pthread_cancel() (avoid zombie threads). Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de> | ||||
* | | Remove parentheses from return statements | Lukas Fleischer | 2011-11-02 | 1 | -12/+12 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | No reason to use "return (x);" here. Refer to the GNU coding guidelines for details. Created using following semantic patch: @@ expression expr; @@ - return (expr); + return expr; Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de> | ||||
* | | Make use of the NULL macro | Lukas Fleischer | 2011-11-02 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use this constant everywhere when referring to a null pointer instead of casting 0 to various types of pointers. Created using following semantic patch: @@ type type; @@ - (type *)0 + NULL Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de> | ||||
* | | Do not cast unused return values to void | Lukas Fleischer | 2011-11-02 | 1 | -12/+12 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A small style fix that removes all remaining "(void)" casts. Using these isn't encouraged in GNU coding guidelines and doesn't serve a certain purpose, except for satisfying a few static code analysis tools. We already nuked some of these in previous patches, but this semantic patch should fix what's left: @@ identifier func; @@ - (void)func ( + func ( ...); Long lines were re-formatted manually. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de> | ||||
* | | src/calendar.c: Add a count parameter to calendar_move() | Lukas Fleischer | 2011-10-06 | 1 | -6/+8 |
|/ | | | | | | | | | Allows for moving more than one step forward/backward. This is not used anywhere yet but a key binding will likely be added in one of the following patches. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de> | ||||
* | Update copyright notices in source files, documentation and "COPYING". | Lukas Fleischer | 2011-04-22 | 1 | -1/+1 |
| | | | | | | | | | * 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> | ||||
* | Remove dead assignments spotted by clang-analyzer. | Lukas Fleischer | 2011-04-03 | 1 | -3/+0 |
| | | | | Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de> | ||||
* | Use upper case for macro names. | Lukas Fleischer | 2011-03-15 | 1 | -6/+6 |
| | | | | Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de> | ||||
* | Overall indentation fixes. | Lukas Fleischer | 2011-03-14 | 1 | -68/+68 |
| | | | | | | | Use spaces instead of tabs for source code indentation only, strip trailing whitespaces from lines. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de> | ||||
* | Update website links to match the new URL. | Lukas Fleischer | 2011-03-04 | 1 | -1/+1 |
| | | | | Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de> | ||||
* | Update mail addresses to match the new mailing lists. | Lukas Fleischer | 2011-03-04 | 1 | -1/+1 |
| | | | | Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de> | ||||
* | Remove CVS "$Id" headers. | Lukas Fleischer | 2011-03-03 | 1 | -2/+0 |
| | | | | Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de> | ||||
* | Fixed file permissions. | Lukas Fleischer | 2011-03-03 | 1 | -0/+0 |
| | |||||
* | Make parse_date accept several short forms. | Lukas Fleischer | 2011-01-11 | 1 | -6/+3 |
| | | | | | | | | | 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. | ||||
* | isBissextile() removed and replaced by isleap macro. | Frederic Culot | 2010-10-23 | 1 | -10/+4 |
| | | | | Patch submitted by Lukas Fleischer, thanks. | ||||
* | Cosmetics in the calendar weekly view. | Frederic Culot | 2010-03-29 | 1 | -2/+2 |
| | |||||
* | Adapt the weekly calendar view to the side bar width. | Frederic Culot | 2010-03-29 | 1 | -12/+17 |
| | |||||
* | More work on sidebar customization. | Frederic Culot | 2010-03-21 | 1 | -4/+5 |
| | |||||
* | Work on sidebar width user-customization. | Frederic Culot | 2010-03-20 | 1 | -12/+19 |
| | |||||
* | All headers gathered into a single one. Typedefs suppressed. | Frederic Culot | 2010-03-20 | 1 | -28/+30 |
| | |||||
* | Patch to correct the wrong calculation of recurrent items' dates after a | Frederic Culot | 2010-03-08 | 1 | -3/+2 |
| | | | | turn of year (submitted by Lukas Fleischer, thanks!). | ||||
* | Compiler problem fixed (thanks Petr for reporting it). | Frederic Culot | 2010-03-01 | 1 | -1/+3 |
| | |||||
* | Code to save the calendar default view in the configuration file. | Frederic Culot | 2009-10-28 | 1 | -1/+13 |
| | |||||
* | Changes in the calendar weekly view. | Frederic Culot | 2009-10-16 | 1 | -8/+26 |
| | |||||
* | More work on the weekly calendar view. | Frederic Culot | 2009-10-08 | 1 | -1/+19 |
| | |||||
* | Display week number inside weekly calendar view. | Frederic Culot | 2009-08-25 | 1 | -34/+127 |
| | |||||
* | Work on implementing the weekly calendar view. | Frederic Culot | 2009-08-24 | 1 | -53/+145 |
| | |||||
* | stdbool header removed, unsigned type used instead | Frederic Culot | 2009-07-12 | 1 | -7/+7 |
| | |||||
* | Switch to BSD license. | Frederic Culot | 2009-07-05 | 1 | -14/+26 |
| | |||||
* | Day names and selected date colour now follow user's theme. | Frederic Culot | 2009-06-20 | 1 | -10/+10 |
| | |||||
* | do not crash when canceling the thread if it was not launched before | Frederic Culot | 2009-01-24 | 1 | -5/+4 |
| | |||||
* | Added wrappers around libc's memory management functions, to easily debug ↵ | Frederic Culot | 2008-12-28 | 1 | -12/+9 |
| | | | | memory usage | ||||
* | small bugfixes and code cleanup | Frederic Culot | 2008-12-14 | 1 | -2/+2 |
| | |||||
* | Checks added while loading key bindings configuration. | Frederic Culot | 2008-12-07 | 1 | -2/+2 |
| | |||||
* | More work on implementing user-definable keybindings | Frederic Culot | 2008-11-16 | 1 | -3/+4 |
| | |||||
* | pcal export added | Frederic Culot | 2008-08-10 | 1 | -2/+40 |
| | |||||
* | new keybindings added | Frederic Culot | 2008-08-03 | 1 | -10/+35 |
| | |||||
* | Yet another style for source code. GNU style now used (I am fed up with tabs...) | Frederic Culot | 2008-04-12 | 1 | -370/+372 |
| | |||||
* | Tony's patch concerning date format configuration imported | Frederic Culot | 2008-04-09 | 1 | -19/+13 |
| | |||||
* | calendar_move_*() functions modified to properly handle leap years and | Frederic Culot | 2007-12-10 | 1 | -69/+63 |
| | | | | | merged into calendar_move() date_change() added | ||||
* | routines updated to handle new window_t and window_e types | Frederic Culot | 2007-10-21 | 1 | -4/+5 |
| | |||||
* | calendar_change_day() and calendar_move_*() updated to prevent user from ↵ | Frederic Culot | 2007-10-16 | 1 | -6/+20 |
| | | | | entering an unsupported date | ||||
* | calendar_get_pom(), pom(), potm() and adj360() added, based on the OpenBSD ↵ | Frederic Culot | 2007-08-12 | 1 | -2/+178 |
| | | | | version of pom(6) | ||||
* | unuseful headers removed and some functions became static | Frederic Culot | 2007-07-28 | 1 | -4/+1 |
| | |||||
* | calendar_date_thread implemented to check for day changes (thanks Jupp for | Frederic Culot | 2007-07-01 | 1 | -98/+306 |
| | | | | | | | | | | | | reporting the problem) code cleanup in goto_day() and update_cal_panel() static variables today and slctd_day added calendar_store_current_date(), calendar_get_slctd_day(), calendar_get_slctd_day_sec(), calendar_init_slctd_day() created calendar_move_up(), calendar_move_down(), calendar_move_left() and calendar_move_right() created calendar_set_first_day_of_week(), calendar_change_first_day_of_week() and calendar_week_begins_on_monday() created | ||||
* | global variable 'colr' suppressed | Frederic Culot | 2007-03-10 | 1 | -5/+4 |
| | |||||
* | use of getstring() defines | Frederic Culot | 2007-01-16 | 1 | -3/+4 |
| | |||||
* | better checking of the entered date in goto_day() | Frederic Culot | 2007-01-10 | 1 | -9/+12 |
| |