From ebf4d6dbbafb7af4c6b8e37e29aa9c3145172e8e Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Thu, 20 Dec 2012 00:00:00 -0600 Subject: [PATCH] top: just touch up some comments for esthetic purposes Signed-off-by: Jim Warner --- top/top.c | 8 ++++---- top/top.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/top/top.c b/top/top.c index c17d93fc..97fc5fc6 100644 --- a/top/top.c +++ b/top/top.c @@ -4613,10 +4613,10 @@ static const char *task_show (const WIN_t *q, const proc_t *p) { for (x = 0; x < q->maxpflgs; x++) { const char *cp; FLG_t i = q->procflgs[x]; - #define S Fieldstab[i].scale - #define W Fieldstab[i].width - #define Js CHKw(q, Show_JRSTRS) - #define Jn CHKw(q, Show_JRNUMS) + #define S Fieldstab[i].scale // these used to be variables + #define W Fieldstab[i].width // but it's much better if we + #define Js CHKw(q, Show_JRSTRS) // represent them as #defines + #define Jn CHKw(q, Show_JRNUMS) // and only exec code if used switch (i) { #ifndef USE_X_COLHDR diff --git a/top/top.h b/top/top.h index 7ee38e8f..8182a56b 100644 --- a/top/top.h +++ b/top/top.h @@ -50,7 +50,7 @@ //#define TERMIO_PROXY /* true line editing, beyond native input */ //#define TREE_NORESET /* sort keys do NOT force forest view OFF */ //#define USE_X_COLHDR /* emphasize header vs. whole col, for 'x' */ -//#define VALIDATE_NLS /* validate integrity of all 3 nls tables */ +//#define VALIDATE_NLS /* validate the integrity of all nls tbls */ /*###### Notes, etc. ###################################################*/