aboutsummaryrefslogtreecommitdiffstats
path: root/RichString.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:20 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:20 +0200
commit85bb4ad9cb820ac3b8e935a930084a06cbfd2847 (patch)
tree681fd9b2d9fa80931b2a8bec4bb6667865b7c569 /RichString.h
parentea859f50d9438bc61ae96721a4d255b49de78653 (diff)
downloaddebian_htop-85bb4ad9cb820ac3b8e935a930084a06cbfd2847.tar.gz
debian_htop-85bb4ad9cb820ac3b8e935a930084a06cbfd2847.tar.bz2
debian_htop-85bb4ad9cb820ac3b8e935a930084a06cbfd2847.zip
Imported Upstream version 0.6.3upstream/0.6.3
Diffstat (limited to 'RichString.h')
-rw-r--r--RichString.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/RichString.h b/RichString.h
index f59c576..1f48678 100644
--- a/RichString.h
+++ b/RichString.h
@@ -1,4 +1,4 @@
-/* Do not edit this file. It was automatically genarated. */
+/* Do not edit this file. It was automatically generated. */
#ifndef HEADER_RichString
#define HEADER_RichString
@@ -7,7 +7,6 @@
#include <stdlib.h>
#include <string.h>
#include <curses.h>
-#include <sys/param.h>
#include "debug.h"
#include <assert.h>
@@ -15,18 +14,18 @@
#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];
} RichString;
-
-RichString RichString_new();
-
-void RichString_delete(RichString this);
-
-void RichString_prune(RichString* this);
+#ifndef MIN
+#define MIN(a,b) ((a)<(b)?(a):(b))
+#endif
void RichString_write(RichString* this, int attrs, char* data);

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