summaryrefslogtreecommitdiffstats
path: root/RichString.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2006-07-12 01:16:03 +0000
committerHisham Muhammad <hisham@gobolinux.org>2006-07-12 01:16:03 +0000
commitdbe2670b69e163cb146d3fc3b3c7b82ea3f71278 (patch)
tree6c9163067c52e387b24593f545fa2c549e4b4acf /RichString.h
parente46f1426b906433c291de05432de9a9a43e14f4a (diff)
Perform RichString operations by hand.
Avoid unnecessary operations when processing entries on ProcessList.
Diffstat (limited to 'RichString.h')
-rw-r--r--RichString.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/RichString.h b/RichString.h
index 64ad7aff..1f486781 100644
--- a/RichString.h
+++ b/RichString.h
@@ -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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy