Oops, the "excessive" {} removed in the previous commit was needed
around PUTRATE() because PUTRATE() only looked like a function -- it was multiple statements. Use "do {...} while(0)" as usual in PUTRATE() so that it is a single statement that can be used like a function.
This commit is contained in:
parent
67403c2b9e
commit
e3c53cce47
@ -381,8 +381,10 @@ labelkre()
|
||||
#define Z(fld) {t = s.nchstats.fld; s.nchstats.fld -= s1.nchstats.fld; \
|
||||
if(state == TIME) s1.nchstats.fld = t;}
|
||||
#define PUTRATE(fld, l, c, w) \
|
||||
do { \
|
||||
Y(fld); \
|
||||
putint((int)((float)s.fld/etime + 0.5), l, c, w)
|
||||
putint((int)((float)s.fld/etime + 0.5), l, c, w); \
|
||||
} while (0)
|
||||
#define MAXFAIL 5
|
||||
|
||||
static char cpuchar[CPUSTATES] = { '=' , '+', '>', '-', ' ' };
|
||||
|
Loading…
x
Reference in New Issue
Block a user