~ubuntu-branches/ubuntu/intrepid/htop/intrepid

« back to all changes in this revision

Viewing changes to RichString.h

  • Committer: Bazaar Package Importer
  • Author(s): Bartosz Fenski
  • Date: 2004-11-27 10:10:17 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041127101017-vwknw2ipfvxchno4
Tags: 0.5-1
* New upstream version.
  - fixes problem with wrongly displayed CPU bar (Closes: #283212)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#include <stdlib.h>
8
8
#include <string.h>
9
9
#include <curses.h>
10
 
#include <assert.h>
11
10
#include <sys/param.h>
12
11
 
13
12
#include "debug.h"
 
13
#include <assert.h>
14
14
 
15
 
#define RICHSTRING_MAXLEN 512
 
15
#define RICHSTRING_MAXLEN 300
16
16
 
17
17
 
18
18
typedef struct RichString_ {
28
28
 
29
29
void RichString_prune(RichString* this);
30
30
 
31
 
void RichString_attrOn(int attrs);
32
 
 
33
 
void RichString_attrOff(int attrs);
34
 
 
35
31
void RichString_write(RichString* this, int attrs, char* data);
36
32
 
37
 
void RichString_append(RichString* this, int attrs, char* data);
 
33
inline void RichString_append(RichString* this, int attrs, char* data);
 
34
 
 
35
inline void RichString_appendn(RichString* this, int attrs, char* data, int len);
38
36
 
39
37
void RichString_setAttr(RichString *this, int attrs);
40
38
 
41
39
void RichString_applyAttr(RichString *this, int attrs);
42
40
 
 
41
RichString RichString_quickString(int attrs, char* data);
 
42
 
43
43
#endif