62 Commits

Author SHA1 Message Date
Lukas Fleischer
c9aff6d213 Update copyright ranges
Add 2012 to the copyright range for all source and documentation files.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2012-03-26 14:38:16 +02:00
Lukas Fleischer
481cb5524f Do not strncpy() strings returned by gettext()
Translated strings returned by gettext() are statically allocated.
There's no need to copy them to a buffer, we can use the pointers
returned by gettext() instead.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2012-03-12 20:36:22 +01:00
Lukas Fleischer
6f01c7af97 Remove parentheses from return statements
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>
2011-11-02 19:38:38 +01:00
Lukas Fleischer
7cc6305588 Do not cast unused return values to void
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>
2011-11-02 18:32:17 +01:00
Lukas Fleischer
44bc9605d6 Avoid use of printf()/fprintf()
Use one of the following functions where appropriate:

* puts() (whenever we print hard coded strings to stdout)
* fputs() (whenever we print hard coded strings to a stream)
* putchar() (whenever we print a single character to stdout)
* fputc() (whenever we print a single character to a stream)
* strncpy() (whenever we copy hard coded strings to a buffer)

This removes the overhead introduced by the format string parser and
reduces the number of false positive C-format strings spotted by
xgettext(1)'s heuristics.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-11-02 18:31:10 +01:00
Lukas Fleischer
9fa0507ef2 src/help.c: Update messages referring to durations
Fix help texts to vaguely match the new duration string formats.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-10-06 12:37:07 +02:00
Lukas Fleischer
98651a549f Add count buffer to keys_getch()
Key commands can be prefixed with a natural number - keys_getch() will
store this number in the buffer pointed to by the second parameter. Set
this parameter to NULL to disable count prefixes.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-10-06 12:37:06 +02:00
Lukas Fleischer
309fa84cb7 Add key binding for pipe-item command
This removes the need of reading the whole data file and find matching
entries if we want to parse appointments in external programs.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-07-07 07:05:48 +02:00
Lukas Fleischer
fec37db06b Avoid redundant redraws on resize
Use a global flag to record whether the terminal was resized instead of
redrawing everything each time a KEY_RESIZE is read.

Add some additional checks to help_write_pad() as invalid actions may be
passed now due to using signals instead of virtual key presses.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-06-28 18:22:43 +02:00
Lukas Fleischer
38865b8e48 Update copyright notices in source files, documentation and "COPYING".
* 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-22 07:26:05 +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
91c9cac898 Remove CVS "$Id" headers.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2011-03-03 16:19:45 +01:00
Lukas Fleischer
2d938cdcda Avoid a segfault when resizing the help window. 2011-03-03 12:21:25 +01:00
Lukas Fleischer
56b9cbcb84 Fixed file permissions. 2011-03-03 12:21:16 +01:00
Lukas Fleischer
521511aa93 Code cleanup and fixed compiler warning. 2011-01-11 22:31:40 +00:00
Frederic Culot
6892b59622 Avoid concurrent screen refreshes. 2010-03-21 10:17:03 +00:00
Frederic Culot
a8cb1c92ef All headers gathered into a single one. Typedefs suppressed. 2010-03-20 10:54:41 +00:00
Frederic Culot
d678eb411a Description of the scroll keys added to the generic keys help screen. 2009-10-28 13:44:41 +00:00
Frederic Culot
976159fa56 calcurse version removed from menu titles 2009-07-12 17:55:13 +00:00
Frederic Culot
27b25548a4 Switch to BSD license. 2009-07-05 20:33:13 +00:00
Frederic Culot
2da51e56a0 Help page updated for the flag command 2009-06-27 09:20:39 +00:00
Frederic Culot
21abed5f48 help page added to describe the cut and paste feature 2009-01-04 10:22:10 +00:00
Frederic Culot
936b6fe373 more code cleanup 2009-01-03 21:32:10 +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
d54dd2ee73 new layout configuration menu 2008-12-20 19:27:31 +00:00
Frederic Culot
cf5617e337 more work on updating online help pages 2008-12-03 19:31:03 +00:00
Frederic Culot
86d1a3b2db online help pages updated 2008-11-30 20:48:10 +00:00
Frederic Culot
a4694b6bea Online help updated to display user-defined keys. 2008-11-28 08:46:29 +00:00
Frederic Culot
eb88eaecb3 Building configuration menu to assign keybindings 2008-11-23 20:38:55 +00:00
Frederic Culot
9d4899110a More work on implementing user-definable keybindings 2008-11-16 17:42:53 +00:00
Frederic Culot
7ddfcccee0 import flag and 'i' keybinding added 2008-09-21 08:05:52 +00:00
Frederic Culot
d84bb63e93 Optional 'format' option added to '-x' flag, help updated 2008-08-11 18:08:45 +00:00
Frederic Culot
03ce2c6ea9 new keybindings added 2008-08-03 18:41:55 +00:00
Frederic Culot
d21329461d * french translation updated
* correction done in the '>' command help text
2008-04-20 09:33:09 +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
2e798df3cb Scrollbar added in general configuration menu 2008-04-19 09:22:14 +00:00
Frederic Culot
f0d4409151 Generic functions to handle scrolling windows created 2008-04-18 17:53:31 +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
45199e1df9 TODO list updated
status bar updated to display the new 'N' (edit note) and '>' (view note)
keybindings
online help pages added for 'N' and '>' keybindings
2008-02-11 21:26:00 +00:00
Frederic Culot
ffd9448ac4 help_screen() updated to make automatic resize available inside help
screens (thanks Sebastian for reporting the problem)
help_wins_reset(), help_wins_init(), help_wins_reinit() and wanted_page()
created
help_pages_e enum added
2007-10-21 13:37:30 +00:00
Frederic Culot
4b987f70ac unuseful headers removed and some functions became static 2007-07-28 13:11:42 +00:00
Frederic Culot
6b10eb3623 which_pan dependency suppressed in help_screen() 2007-07-23 19:29:34 +00:00
Frederic Culot
1aeb990b41 call to wins_show() updated 2007-07-21 19:36:05 +00:00
Frederic Culot
2496888682 MAX_LENGTH replaced by stdio.h's BUFSIZ 2007-04-04 19:38:18 +00:00
Frederic Culot
e71a6eff06 help_screen() updated to add the export and flag command help text 2007-03-24 23:19:48 +00:00
Frederic Culot
f82590c811 global variable 'colr' suppressed 2007-03-10 15:54:24 +00:00
Frederic Culot
40ea16233d copyright extended to 2007 2007-01-16 11:11:47 +00:00