nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit b093d1926284f2a9239c1b3cc062b633c284142d
parent 7c698a9c3a2ae2135223f873a143e894b1a71134
Author: Hussam al-Homsi <sawuare@gmail.com>
Date:   Sun, 27 Sep 2020 20:18:43 -0400

tweaks: reorder a member of 'funcstruct', to save 8 bytes of padding

Signed-off-by: Hussam al-Homsi <sawuare@gmail.com>

Diffstat:
Msrc/definitions.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/definitions.h b/src/definitions.h @@ -449,8 +449,6 @@ typedef struct keystruct { typedef struct funcstruct { void (*func)(void); /* The actual function to call. */ - int menus; - /* In what menus this function applies. */ const char *desc; /* The function's short description, for example "Where Is". */ #ifdef ENABLE_HELP @@ -462,6 +460,8 @@ typedef struct funcstruct { #endif bool viewok; /* Is this function allowed when in view mode? */ + int menus; + /* In what menus this function applies. */ long toggle; /* If this is a toggle, which toggle to affect. */ struct funcstruct *next;