still more comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3391 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
e806ab8473
commit
e6757b94d3
14
src/global.c
14
src/global.c
|
@ -218,8 +218,7 @@ size_t length_of_list(const shortcut *s)
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create a new shortcut structure, at the end of the shortcuts linked
|
/* Add a new shortcut to the end of the shortcut list. */
|
||||||
* list. */
|
|
||||||
void sc_init_one(shortcut **shortcutage, int ctrlval, const char *desc,
|
void sc_init_one(shortcut **shortcutage, int ctrlval, const char *desc,
|
||||||
#ifndef DISABLE_HELP
|
#ifndef DISABLE_HELP
|
||||||
const char *help,
|
const char *help,
|
||||||
|
@ -1143,7 +1142,7 @@ void shortcut_init(bool unjustify)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Deallocate the given shortcut. */
|
/* Free the given shortcut. */
|
||||||
void free_shortcutage(shortcut **shortcutage)
|
void free_shortcutage(shortcut **shortcutage)
|
||||||
{
|
{
|
||||||
assert(shortcutage != NULL);
|
assert(shortcutage != NULL);
|
||||||
|
@ -1156,8 +1155,7 @@ void free_shortcutage(shortcut **shortcutage)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
/* Create a new toggle structure, at the end of the toggles linked
|
/* Add a new toggle to the end of the global toggle list. */
|
||||||
* list. */
|
|
||||||
void toggle_init_one(int val, const char *desc, long flag)
|
void toggle_init_one(int val, const char *desc, long flag)
|
||||||
{
|
{
|
||||||
toggle *u;
|
toggle *u;
|
||||||
|
@ -1239,12 +1237,12 @@ void toggle_init(void)
|
||||||
}
|
}
|
||||||
#endif /* !NANO_TINY */
|
#endif /* !NANO_TINY */
|
||||||
|
|
||||||
/* This function is called just before calling exit(). Practically, the
|
#ifdef DEBUG
|
||||||
|
/* This function is used to gracefully return all the memory we've used.
|
||||||
|
* It should be called just before calling exit(). Practically, the
|
||||||
* only effect is to cause a segmentation fault if the various data
|
* only effect is to cause a segmentation fault if the various data
|
||||||
* structures got bolloxed earlier. Thus, we don't bother having this
|
* structures got bolloxed earlier. Thus, we don't bother having this
|
||||||
* function unless debugging is turned on. */
|
* function unless debugging is turned on. */
|
||||||
#ifdef DEBUG
|
|
||||||
/* Added by SPK for memory cleanup; gracefully return our malloc()s. */
|
|
||||||
void thanks_for_all_the_fish(void)
|
void thanks_for_all_the_fish(void)
|
||||||
{
|
{
|
||||||
delwin(topwin);
|
delwin(topwin);
|
||||||
|
|
Loading…
Reference in New Issue