From: Chris Allegretta Date: Wed, 6 Mar 2002 15:27:44 +0000 (+0000) Subject: NANO_SMALL issues X-Git-Tag: v1.1.8~45 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=40ecbad2969f140370959090e6532461d53f3ce6;p=nano.git NANO_SMALL issues git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1110 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 9a2b911f..a47f5900 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,11 @@ CVS code - - General - Type misalignments and mem leaks in renumber_all, do_justify and do_spell (Rocco & Steven Kneizys). +- nano.c: + main() + - Put NANO_SMALL defines around toggle pointer (noticed by Jordi); +- utils.c: + stristr() - Defined regardless of NANO_SMALL (noticed by Jordi). GNU nano 1.1.7 - 03/05/2002 - General diff --git a/nano.c b/nano.c index 522521af..49ba10b3 100644 --- a/nano.c +++ b/nano.c @@ -2775,7 +2775,9 @@ int main(int argc, char *argv[]) int modify_control_seq; char *argv0; shortcut *s; +#ifndef NANO_SMALL toggle *t; +#endif #ifdef _POSIX_VDISABLE struct termios term; diff --git a/utils.c b/utils.c index 810cde65..826c86a4 100644 --- a/utils.c +++ b/utils.c @@ -89,6 +89,7 @@ char *revstristr(char *haystack, char *needle, char *rev_start) } return 0; } +#endif /* NANO_SMALL */ /* This is now mutt's version (called mutt_stristr) because it doesn't use memory allocation to do a simple search (yuck). */ @@ -110,7 +111,6 @@ char *stristr(char *haystack, char *needle) } return NULL; } -#endif /* NANO_SMALL */ char *strstrwrapper(char *haystack, char *needle, char *rev_start) {