Commit 2f1f82ee authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Updates for new version of the MakeHeader.py script.

parent b95993fa
...@@ -14,10 +14,10 @@ in the source distribution for its full text. ...@@ -14,10 +14,10 @@ in the source distribution for its full text.
#include "debug.h" #include "debug.h"
/* private property */ int TasksMeter_attributes[] = {
int TasksMeter_attributes[] = { TASKS_RUNNING }; TASKS_RUNNING
};
/* private */
MeterType TasksMeter = { MeterType TasksMeter = {
.setValues = TasksMeter_setValues, .setValues = TasksMeter_setValues,
.display = TasksMeter_display, .display = TasksMeter_display,
......
...@@ -32,13 +32,10 @@ typedef struct TraceScreen_ { ...@@ -32,13 +32,10 @@ typedef struct TraceScreen_ {
}*/ }*/
/* private property */
static char* tbFunctions[3] = {"AutoScroll ", "Stop Tracing ", "Done "}; static char* tbFunctions[3] = {"AutoScroll ", "Stop Tracing ", "Done "};
/* private property */
static char* tbKeys[3] = {"F4", "F5", "Esc"}; static char* tbKeys[3] = {"F4", "F5", "Esc"};
/* private property */
static int tbEvents[3] = {KEY_F(4), KEY_F(5), 27}; static int tbEvents[3] = {KEY_F(4), KEY_F(5), 27};
TraceScreen* TraceScreen_new(Process* process) { TraceScreen* TraceScreen_new(Process* process) {
......
...@@ -14,10 +14,10 @@ in the source distribution for its full text. ...@@ -14,10 +14,10 @@ in the source distribution for its full text.
#include "debug.h" #include "debug.h"
/* private property */ int UptimeMeter_attributes[] = {
static int UptimeMeter_attributes[] = { UPTIME }; UPTIME
};
/* private */
MeterType UptimeMeter = { MeterType UptimeMeter = {
.setValues = UptimeMeter_setValues, .setValues = UptimeMeter_setValues,
.display = NULL, .display = NULL,
......
...@@ -58,8 +58,7 @@ void Vector_delete(Vector* this) { ...@@ -58,8 +58,7 @@ void Vector_delete(Vector* this) {
free(this); free(this);
} }
/* private */ static inline bool Vector_isConsistent(Vector* this) {
bool Vector_isConsistent(Vector* this) {
if (this->owner) { if (this->owner) {
for (int i = 0; i < this->items; i++) for (int i = 0; i < this->items; i++)
if (this->array[i] && this->array[i]->class != this->vectorType) if (this->array[i] && this->array[i]->class != this->vectorType)
...@@ -107,8 +106,7 @@ void Vector_sort(Vector* this) { ...@@ -107,8 +106,7 @@ void Vector_sort(Vector* this) {
*/ */
} }
/* private */ static void Vector_checkArraySize(Vector* this) {
void Vector_checkArraySize(Vector* this) {
assert(Vector_isConsistent(this)); assert(Vector_isConsistent(this));
if (this->items >= this->arraySize) { if (this->items >= this->arraySize) {
int i; int i;
......
...@@ -33,9 +33,6 @@ in the source distribution for its full text. ...@@ -33,9 +33,6 @@ in the source distribution for its full text.
#define INCSEARCH_MAX 40 #define INCSEARCH_MAX 40
/* private property */
char htop_barCharacters[] = "|#*@$%&";
void printVersionFlag() { void printVersionFlag() {
clear(); clear();
printf("htop " VERSION " - (C) 2004-2006 Hisham Muhammad.\n"); printf("htop " VERSION " - (C) 2004-2006 Hisham Muhammad.\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment