commit f0b26df170cac06cbf1b59e57b544822a1045276
parent 17dcb7212f12e9640e7a8efb48567015da4aad12
Author: Chris Allegretta <chrisa@asty.org>
Date: Sat, 20 Jan 2001 22:18:18 +0000
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
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git 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
@@ -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)
{