mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Perform RichString operations by hand.
Avoid unnecessary operations when processing entries on ProcessList.
This commit is contained in:
@ -14,6 +14,9 @@
|
||||
#define RICHSTRING_MAXLEN 300
|
||||
|
||||
|
||||
#define RichString_init(this) (this)->len = 0
|
||||
#define RichString_initVal(this) (this).len = 0
|
||||
|
||||
typedef struct RichString_ {
|
||||
int len;
|
||||
chtype chstr[RICHSTRING_MAXLEN+1];
|
||||
@ -24,12 +27,6 @@ typedef struct RichString_ {
|
||||
#define MIN(a,b) ((a)<(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
RichString RichString_new();
|
||||
|
||||
void RichString_delete(RichString this);
|
||||
|
||||
void RichString_prune(RichString* this);
|
||||
|
||||
void RichString_write(RichString* this, int attrs, char* data);
|
||||
|
||||
inline void RichString_append(RichString* this, int attrs, char* data);
|
||||
|
Reference in New Issue
Block a user