From: Chris Allegretta Date: Sat, 20 Jan 2001 22:18:18 +0000 (+0000) Subject: global.c: Don't define toggles global or toggle_init_one if using --tiny X-Git-Tag: v0.9.99pre2~19 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f0b26df170cac06cbf1b59e57b544822a1045276;p=nano.git global.c: Don't define toggles global or toggle_init_one if using --tiny git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@493 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index eb23dd04..62d74f8e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,8 @@ General discovered by David Sobon). username_tab_completion() - Optimization and removal of useless vars (Rocco). +- global.c: + - Don't define toggles global or toggle_init_one if using --tiny. - nano.c: do_justify() - Added restoration of totsize after unjustify command. diff --git a/global.c b/global.c index ba0a1c82..5fe570b9 100644 --- a/global.c +++ b/global.c @@ -82,7 +82,9 @@ shortcut spell_list[SPELL_LIST_LEN]; shortcut browser_list[BROWSER_LIST_LEN]; #endif +#ifndef NANO_SMALL toggle toggles[TOGGLE_LEN]; +#endif /* Regular expressions */ @@ -106,6 +108,7 @@ void sc_init_one(shortcut * s, int key, char *desc, char *help, int alt, s->func = func; } +#ifndef NANO_SMALL /* Initialize the toggles in the same manner */ void toggle_init_one(toggle * t, int val, char *desc, int flag) { @@ -113,6 +116,7 @@ void toggle_init_one(toggle * t, int val, char *desc, int flag) t->desc = desc; t->flag = flag; } +#endif void toggle_init(void) {