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
43a72316
Commit
43a72316
authored
Feb 26, 2013
by
Hisham Muhammad
Browse files
Remove explicit calls to curses.h in other files
parent
8d5dd51c
Changes
7
Hide whitespace changes
Inline
Side-by-side
CPUMeter.c
View file @
43a72316
...
...
@@ -12,7 +12,6 @@ in the source distribution for its full text.
#include <assert.h>
#include <stdlib.h>
#include <curses.h>
#include <string.h>
#include <math.h>
...
...
CRT.c
View file @
43a72316
...
...
@@ -9,8 +9,9 @@ in the source distribution for its full text.
#include "config.h"
#include "String.h"
#include "RichString.h"
#include <
curses
.h>
#include <
stdio
.h>
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
...
...
FunctionBar.c
View file @
43a72316
...
...
@@ -13,7 +13,6 @@ in the source distribution for its full text.
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <curses.h>
/*{
#include "Object.h"
...
...
LoadAverageMeter.c
View file @
43a72316
...
...
@@ -9,7 +9,6 @@ in the source distribution for its full text.
#include "CRT.h"
#include <curses.h>
#include <assert.h>
/*{
...
...
MemoryMeter.c
View file @
43a72316
...
...
@@ -11,7 +11,6 @@ in the source distribution for its full text.
#include "ProcessList.h"
#include <stdlib.h>
#include <curses.h>
#include <string.h>
#include <math.h>
#include <sys/param.h>
...
...
Panel.c
View file @
43a72316
...
...
@@ -18,7 +18,6 @@ in the source distribution for its full text.
#include <ctype.h>
#include <string.h>
#include <assert.h>
#include <curses.h>
//#link curses
...
...
@@ -295,6 +294,7 @@ void Panel_draw(Panel* this, bool focus) {
for
(
int
i
=
first
,
j
=
0
;
j
<
this
->
h
&&
i
<
last
;
i
++
,
j
++
)
{
Object
*
itemObj
=
Vector_get
(
this
->
items
,
i
);
assert
(
itemObj
);
if
(
!
itemObj
)
continue
;
RichString_begin
(
item
);
Object_display
(
itemObj
,
&
item
);
int
itemLen
=
RichString_sizeVal
(
item
);
...
...
@@ -319,6 +319,7 @@ void Panel_draw(Panel* this, bool focus) {
}
else
{
Object
*
oldObj
=
Vector_get
(
this
->
items
,
this
->
oldSelected
);
assert
(
oldObj
);
RichString_begin
(
old
);
Object_display
(
oldObj
,
&
old
);
int
oldLen
=
RichString_sizeVal
(
old
);
...
...
SwapMeter.c
View file @
43a72316
...
...
@@ -11,7 +11,6 @@ in the source distribution for its full text.
#include "ProcessList.h"
#include <stdlib.h>
#include <curses.h>
#include <string.h>
#include <math.h>
#include <sys/param.h>
...
...
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