Commit f0b26df1 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

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
No related merge requests found
Showing with 6 additions and 0 deletions
+6 -0
...@@ -12,6 +12,8 @@ General ...@@ -12,6 +12,8 @@ General
discovered by David Sobon). discovered by David Sobon).
username_tab_completion() username_tab_completion()
- Optimization and removal of useless vars (Rocco). - Optimization and removal of useless vars (Rocco).
- global.c:
- Don't define toggles global or toggle_init_one if using --tiny.
- nano.c: - nano.c:
do_justify() do_justify()
- Added restoration of totsize after unjustify command. - Added restoration of totsize after unjustify command.
......
...@@ -82,7 +82,9 @@ shortcut spell_list[SPELL_LIST_LEN]; ...@@ -82,7 +82,9 @@ shortcut spell_list[SPELL_LIST_LEN];
shortcut browser_list[BROWSER_LIST_LEN]; shortcut browser_list[BROWSER_LIST_LEN];
#endif #endif
#ifndef NANO_SMALL
toggle toggles[TOGGLE_LEN]; toggle toggles[TOGGLE_LEN];
#endif
/* Regular expressions */ /* Regular expressions */
...@@ -106,6 +108,7 @@ void sc_init_one(shortcut * s, int key, char *desc, char *help, int alt, ...@@ -106,6 +108,7 @@ void sc_init_one(shortcut * s, int key, char *desc, char *help, int alt,
s->func = func; s->func = func;
} }
#ifndef NANO_SMALL
/* Initialize the toggles in the same manner */ /* Initialize the toggles in the same manner */
void toggle_init_one(toggle * t, int val, char *desc, int flag) 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) ...@@ -113,6 +116,7 @@ void toggle_init_one(toggle * t, int val, char *desc, int flag)
t->desc = desc; t->desc = desc;
t->flag = flag; t->flag = flag;
} }
#endif
void toggle_init(void) void toggle_init(void)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment