diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:20 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:20 +0200 |
commit | 85bb4ad9cb820ac3b8e935a930084a06cbfd2847 (patch) | |
tree | 681fd9b2d9fa80931b2a8bec4bb6667865b7c569 /RichString.h | |
parent | ea859f50d9438bc61ae96721a4d255b49de78653 (diff) | |
download | debian_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.h | 15 |
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); |