#ifndef HEADER_HISTORY
#define HEADER_HISTORY

#ifdef DMALLOC
#include <dmalloc.h>
#endif

class tcommand {
public:
  int index;
  char *line;
  int operator>=(tcommand &command) {
    return(index>=command.index);
  }
  int operator==(tcommand &command) {
    return(index==command.index);
  }
  tcommand() {
    index=0;
    line=0;
  }
  tcommand(char *stuff) {
    index=0;
    line=strdup(stuff);
  }
  tcommand(tcommand& command) {
    index=command.index;
    line=strdup(command.line);
  }
  ~tcommand() {
    if(line) free(line);
  }
};

#endif


syntax highlighted by Code2HTML, v. 0.9.1