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-d3aeb78583b8master
parent
17dcb7212f
commit
f0b26df170
|
@ -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.
|
||||||
|
|
4
global.c
4
global.c
|
@ -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,
|
||||||
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)
|
||||||
t->desc = desc;
|
t->desc = desc;
|
||||||
t->flag = flag;
|
t->flag = flag;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void toggle_init(void)
|
void toggle_init(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue