From: Chris Allegretta Date: Wed, 24 Oct 2001 17:27:46 +0000 (+0000) Subject: nano.h: Additional #define, SMALL_TOO to determine how long MAIN_LIST_LEN is. We... X-Git-Tag: v1.1.3~4 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=107864058bfe6a696fc114de38dde15bfc20a2c2;p=nano.git nano.h: Additional #define, SMALL_TOO to determine how long MAIN_LIST_LEN is. We need this because of the find matching bracket code git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@879 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index bfd03f2b..ac47c436 100644 --- a/ChangeLog +++ b/ChangeLog @@ -36,6 +36,10 @@ CVS code - goofy logic setting x pos to value of last line when hitting the beginning of first line, prog should simply abort. Added the #ifdefs around the code in main(). +- nano.h: + - Additional #define, SMALL_TOO to determine how long + MAIN_LIST_LEN is. We need this because of the find matching + bracket code. main() - Moved #ifndef NANO_SMALL down past the case 0: line so control-space doesn't insert a \0 (ack!) diff --git a/nano.h b/nano.h index cfc30777..0b258277 100644 --- a/nano.h +++ b/nano.h @@ -287,9 +287,15 @@ know what you're doing */ #ifndef HAVE_REGEX_H #define NO_REGEX 1 +#ifdef NANO_SMALL +#define SMALL_TOO 1 +#else +#define SMALL_TOO 0 +#endif /* NANO_SMALL */ #else #define NO_REGEX 0 -#endif +#define SMALL_TOO 0 +#endif /* HAVE_REGEX_H */ #ifdef DISABLE_BROWSER #define NO_BROWSER 1 @@ -319,7 +325,7 @@ know what you're doing */ #define WRITEFILE_LIST_LEN (4 - NO_BROWSER) #define INSERTFILE_LIST_LEN (3 - NO_BROWSER) #define BROWSER_LIST_LEN 5 -#define MAIN_LIST_LEN (27 - NO_REGEX) +#define MAIN_LIST_LEN (27 - NO_REGEX - SMALL_TOO) #define MAIN_VISIBLE 12 #define REPLACE_LIST_2_LEN 4 #define GOTO_LIST_LEN 4