Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
9 years ago
by
Hisham Muhammad
Browse files
Options
Download
Plain Diff
Merge pull request #490 from Explorer09/macro-fixes
Fix macro Header_forEachColumn
parents
572546f8
54621e8b
master
fixedgray
lua
next
perfcounters
pkgconfig-on-linux
solaris
3.0.0beta5
3.0.0beta4
3.0.0beta3
3.0.0beta2
3.0.0beta1
2.2.0
2.1.0
2.0.2
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Header.c
+1
-1
Header.c
Header.h
+1
-1
Header.h
with
2 additions
and
2 deletions
+2
-2
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
)
{
...
...
This diff is collapsed.
Click to expand it.
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
);
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help