From 2a894213e0f8bff7116db1bd4c168df3b305a826 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 7 Oct 2018 10:24:19 +0200 Subject: [PATCH] tweaks: group a series of related variables together --- src/global.c | 3 ++- src/proto.h | 36 ++++++++++++------------------------ 2 files changed, 14 insertions(+), 25 deletions(-) diff --git a/src/global.c b/src/global.c index 1fd55156..f771f4f1 100644 --- a/src/global.c +++ b/src/global.c @@ -68,7 +68,8 @@ bool also_the_last = FALSE; int didfind = 0; /* Whether the last search found something. */ -int controlleft, controlright, controlup, controldown, controlhome, controlend; +int controlleft, controlright, controlup, controldown; +int controlhome, controlend; int controldelete, controlshiftdelete; #ifndef NANO_TINY int shiftleft, shiftright, shiftup, shiftdown; diff --git a/src/proto.h b/src/proto.h index 35ac4562..b0227253 100644 --- a/src/proto.h +++ b/src/proto.h @@ -55,33 +55,21 @@ extern bool also_the_last; extern int didfind; -extern int controlleft; -extern int controlright; -extern int controlup; -extern int controldown; -extern int controlhome; -extern int controlend; +extern int controlleft, controlright; +extern int controlup, controldown; +extern int controlhome, controlend; #ifndef NANO_TINY extern int controldelete; extern int controlshiftdelete; -extern int shiftleft; -extern int shiftright; -extern int shiftup; -extern int shiftdown; -extern int shiftcontrolleft; -extern int shiftcontrolright; -extern int shiftcontrolup; -extern int shiftcontroldown; -extern int shiftcontrolhome; -extern int shiftcontrolend; -extern int altleft; -extern int altright; -extern int altup; -extern int altdown; -extern int shiftaltleft; -extern int shiftaltright; -extern int shiftaltup; -extern int shiftaltdown; +extern int shiftleft, shiftright; +extern int shiftup, shiftdown; +extern int shiftcontrolleft, shiftcontrolright; +extern int shiftcontrolup, shiftcontroldown; +extern int shiftcontrolhome, shiftcontrolend; +extern int altleft, altright; +extern int altup, altdown; +extern int shiftaltleft, shiftaltright; +extern int shiftaltup, shiftaltdown; #endif #ifdef ENABLED_WRAPORJUSTIFY