]> granicus.if.org Git - procps-ng/commitdiff
top: just touch up some comments for esthetic purposes
authorJim Warner <james.warner@comcast.net>
Thu, 20 Dec 2012 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@enc.com.au>
Sat, 22 Dec 2012 19:48:36 +0000 (06:48 +1100)
Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c
top/top.h

index c17d93fc65dcdf1677f44ed9fa5a79da0de9091d..97fc5fc63d469c17dba9be5d849974233e572f20 100644 (file)
--- 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
index 7ee38e8febf9e398b94a8ff1618f91081e527e14..8182a56b3b9c84db4676752756d234fe9a948011 100644 (file)
--- 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.  ###################################################*/