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

« back to all changes in this revision

Viewing changes to Object.c

  • 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
 
8
8
#include "Object.h"
9
9
#include "RichString.h"
 
10
#include "CRT.h"
10
11
#include <stdlib.h>
11
12
#include <stdio.h>
12
13
#include <stdbool.h>
51
52
void Object_display(Object* this, RichString* out) {
52
53
   char objAddress[50];
53
54
   sprintf(objAddress, "%s @ %p", this->class, (void*) this);
54
 
   RichString_write(out, A_NORMAL, objAddress);
 
55
   RichString_write(out, CRT_colors[DEFAULT_COLOR], objAddress);
55
56
}
56
57
 
57
58
bool Object_equals(const Object* this, const Object* o) {