Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
7d72715a
Commit
7d72715a
authored
May 07, 2016
by
Hisham Muhammad
Browse files
Merge pull request #490 from Explorer09/macro-fixes
Fix macro Header_forEachColumn
parents
572546f8
54621e8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Header.c
View file @
7d72715a
...
...
@@ -37,7 +37,7 @@ typedef struct Header_ {
#endif
#ifndef Header_forEachColumn
#define Header_forEachColumn(this_, i_) for (int i_=0; i_ < this->nrColumns;
i_
++)
#define Header_forEachColumn(this_, i_) for (int
(
i_
)
=0;
(
i_
)
<
(
this
_)
->nrColumns; ++
(i_)
)
#endif
Header
*
Header_new
(
struct
ProcessList_
*
pl
,
Settings
*
settings
,
int
nrColumns
)
{
...
...
Header.h
View file @
7d72715a
...
...
@@ -28,7 +28,7 @@ typedef struct Header_ {
#endif
#ifndef Header_forEachColumn
#define Header_forEachColumn(this_, i_) for (int i_=0; i_ < this->nrColumns;
i_
++)
#define Header_forEachColumn(this_, i_) for (int
(
i_
)
=0;
(
i_
)
<
(
this
_)
->nrColumns; ++
(i_)
)
#endif
Header
*
Header_new
(
struct
ProcessList_
*
pl
,
Settings
*
settings
,
int
nrColumns
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment