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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155665
@ -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…
Reference in New Issue
Block a user