From: Jaakko Heinonen Date: Wed, 28 May 2003 18:02:46 +0000 (+0000) Subject: minor tweaks X-Git-Tag: upstream/0.6.1~2^2~261 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=6d57d82c3743c7321d7f664e8e57e0a9b2ddc7d2;p=pkg%2Fabook.git minor tweaks --- diff --git a/ChangeLog b/ChangeLog index 31655b4..2859002 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ 2002xxxx + - updated autoconf/automake - updated man page - pine import filter update - - updated autoconf/automake 20021008 - options.c rewritten (new mutt style rc file support) diff --git a/README b/README index d0b035d..6589816 100644 --- a/README +++ b/README @@ -8,7 +8,8 @@ COMPILATION To compile abook you must have ncurses developement libraries installed. Starting from version 0.4.10 abook is known to compile with the native curses -library of SUN Solaris and OpenBSD. +library of SUN Solaris and OpenBSD. Since version 0.5.0 GNU readline is +required. If you compile with --enable-debug flag you should redirect standard error to somewhere. (for example abook 2> debug or abook 2> /dev/null. Abook has @@ -63,6 +64,5 @@ See COPYING for details. CONTACT AUTHOR Send bugreports, fixes, wishes etc. to Jaakko Heinonen - or preferably use the mailing list. (See -http://abook.sourceforge.net/ for details) + diff --git a/options.c b/options.c index 1eed8d4..e9885a9 100644 --- a/options.c +++ b/options.c @@ -70,13 +70,13 @@ static struct option abook_vars[] = { }; static unsigned char bool_opts[BOOL_MAX]; -static int int_opts[INT_MAX]; +static int int_opts[INT_MAXIMUM]; static char *str_opts[STR_MAX]; static void set_int(enum int_opts opt, int value) { - assert(opt >= 0 && opt < INT_MAX); + assert(opt >= 0 && opt < INT_MAXIMUM); int_opts[opt] = value; } @@ -103,7 +103,7 @@ set_str(enum str_opts opt, char *value) int opt_get_int(enum int_opts opt) { - assert(opt >= 0 && opt < INT_MAX); + assert(opt >= 0 && opt < INT_MAXIMUM); return int_opts[opt]; } diff --git a/options.h b/options.h index a22a6a6..5d83f98 100644 --- a/options.h +++ b/options.h @@ -28,7 +28,7 @@ enum bool_opts { enum int_opts { INT_EMAILPOS, INT_EXTRAPOS, - INT_MAX + INT_MAXIMUM /* INT_MAX conflicts on some systems */ }; /*