Line->txt now STL-based.

This commit is contained in:
Alexander S. Aganichev
2000-03-22 17:59:18 +00:00
parent 99bd4b886f
commit 5b4f35d9ed
35 changed files with 518 additions and 687 deletions

View File

@@ -143,10 +143,14 @@ public:
int color; // Line color
uint type; // GLINE_*
uint kludge; // GKLUD_*
char* text; // Pointer to the line text
string txt; // The line text
Line* prev; // Pointer to previous line
Line* next; // Pointer to next line
Line() { txt = ""; color = type = kludge = 0; prev = next = NULL; }
Line(const char *str) { txt = str; color = type = kludge = 0; prev = next = NULL; }
~Line() {}
int istearline() { return !!(type & GLINE_TEAR); }
int isorigin() { return !!(type & GLINE_ORIG); }
int ishidden() { return !!(type & GLINE_HIDD); }