From f0b26df170cac06cbf1b59e57b544822a1045276 Mon Sep 17 00:00:00 2001
From: Chris Allegretta <chrisa@asty.org>
Date: Sat, 20 Jan 2001 22:18:18 +0000
Subject: [PATCH]  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
---
 ChangeLog | 2 ++
 global.c  | 4 ++++
 2 files changed, 6 insertions(+)

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)
 {
-- 
GitLab