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
2f1f82ee
Commit
2f1f82ee
authored
Jun 06, 2006
by
Hisham Muhammad
Browse files
Updates for new version of the MakeHeader.py script.
parent
b95993fa
Changes
25
Hide whitespace changes
Inline
Side-by-side
TasksMeter.c
View file @
2f1f82ee
...
...
@@ -14,10 +14,10 @@ in the source distribution for its full text.
#include "debug.h"
/* private property */
int
TasksMeter_attributes
[]
=
{
TASKS_RUNNING
};
int
TasksMeter_attributes
[]
=
{
TASKS_RUNNING
};
/* private */
MeterType
TasksMeter
=
{
.
setValues
=
TasksMeter_setValues
,
.
display
=
TasksMeter_display
,
...
...
TraceScreen.c
View file @
2f1f82ee
...
...
@@ -32,13 +32,10 @@ typedef struct TraceScreen_ {
}*/
/* private property */
static
char
*
tbFunctions
[
3
]
=
{
"AutoScroll "
,
"Stop Tracing "
,
"Done "
};
/* private property */
static
char
*
tbKeys
[
3
]
=
{
"F4"
,
"F5"
,
"Esc"
};
/* private property */
static
int
tbEvents
[
3
]
=
{
KEY_F
(
4
),
KEY_F
(
5
),
27
};
TraceScreen
*
TraceScreen_new
(
Process
*
process
)
{
...
...
UptimeMeter.c
View file @
2f1f82ee
...
...
@@ -14,10 +14,10 @@ in the source distribution for its full text.
#include "debug.h"
/* private property */
static
int
UptimeMeter_attributes
[]
=
{
UPTIME
};
int
UptimeMeter_attributes
[]
=
{
UPTIME
};
/* private */
MeterType
UptimeMeter
=
{
.
setValues
=
UptimeMeter_setValues
,
.
display
=
NULL
,
...
...
Vector.c
View file @
2f1f82ee
...
...
@@ -58,8 +58,7 @@ void Vector_delete(Vector* this) {
free
(
this
);
}
/* private */
bool
Vector_isConsistent
(
Vector
*
this
)
{
static
inline
bool
Vector_isConsistent
(
Vector
*
this
)
{
if
(
this
->
owner
)
{
for
(
int
i
=
0
;
i
<
this
->
items
;
i
++
)
if
(
this
->
array
[
i
]
&&
this
->
array
[
i
]
->
class
!=
this
->
vectorType
)
...
...
@@ -107,8 +106,7 @@ void Vector_sort(Vector* this) {
*/
}
/* private */
void
Vector_checkArraySize
(
Vector
*
this
)
{
static
void
Vector_checkArraySize
(
Vector
*
this
)
{
assert
(
Vector_isConsistent
(
this
));
if
(
this
->
items
>=
this
->
arraySize
)
{
int
i
;
...
...
htop.c
View file @
2f1f82ee
...
...
@@ -33,9 +33,6 @@ in the source distribution for its full text.
#define INCSEARCH_MAX 40
/* private property */
char
htop_barCharacters
[]
=
"|#*@$%&"
;
void
printVersionFlag
()
{
clear
();
printf
(
"htop "
VERSION
" - (C) 2004-2006 Hisham Muhammad.
\n
"
);
...
...
Prev
1
2
Next
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