0103-top: Protect macro parameters.
---------------------------- adapted for newlib branch . the 'isBUSY' macro is quite different under newlib Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
9cb8bee6a1
commit
8b29093481
@ -5404,8 +5404,8 @@ static int window_show (WIN_t *q, int wmax) {
|
||||
/* the isBUSY macro determines if a task is 'active' --
|
||||
it returns true if some cpu was used since the last sample.
|
||||
( actual 'running' tasks will be a subset of those selected ) */
|
||||
#define isBUSY(x) (0 < PID_VAL(EU_CPU, s_int, x))
|
||||
#define winMIN(a,b) ((a < b) ? a : b)
|
||||
#define isBUSY(x) (0 < PID_VAL(EU_CPU, s_int, (x)))
|
||||
#define winMIN(a,b) (((a) < (b)) ? (a) : (b))
|
||||
int i, lwin;
|
||||
|
||||
// Display Column Headings -- and distract 'em while we sort (maybe)
|
||||
|
Loading…
x
Reference in New Issue
Block a user