summaryrefslogtreecommitdiffstats
path: root/RichString.h
diff options
context:
space:
mode:
Diffstat (limited to 'RichString.h')
-rw-r--r--RichString.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/RichString.h b/RichString.h
index 5431e92a..e6fb4c32 100644
--- a/RichString.h
+++ b/RichString.h
@@ -7,7 +7,6 @@ Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
-#define RICHSTRING_MAXLEN 350
#include "config.h"
#include <ctype.h>
@@ -50,16 +49,14 @@ in the source distribution for its full text.
#define CharType chtype
#endif
+#define RICHSTRING_MAXLEN 350
+
typedef struct RichString_ {
int chlen;
CharType* chptr;
CharType chstr[RICHSTRING_MAXLEN+1];
} RichString;
-#define charBytes(n) (sizeof(CharType) * (n))
-
-#define RichString_setLen(this, len) do{ if(len < RICHSTRING_MAXLEN && this->chlen < RICHSTRING_MAXLEN) { RichString_setChar(this,len,0); this->chlen=len; } else RichString_extendLen(this,len); }while(0)
-
#ifdef HAVE_LIBNCURSESW
void RichString_setAttrn(RichString* this, int attrs, int start, int finish);