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

@@ -96,7 +96,7 @@ bool gclipbrd::openread() {
// ------------------------------------------------------------------
bool gclipbrd::writeclipbrd(char* buf) {
bool gclipbrd::writeclipbrd(const char* buf) {
if(not clipboard_available) {
if(fake_clipboard)

View File

@@ -58,7 +58,7 @@ public:
char* read(char* buffer, int maxlen);
void close();
bool writeclipbrd(char* buf);
bool writeclipbrd(const char* buf);
gclipbrd();

View File

@@ -271,7 +271,7 @@ char* g_get_clip_text(void) {
// ------------------------------------------------------------------
int g_put_clip_text(char* buf) {
int g_put_clip_text(const char* buf) {
if(winapi == NOAPI)
return -1;

View File

@@ -64,7 +64,7 @@ void g_set_osicon(void);
bool g_is_clip_available(void);
char* g_get_clip_text(void);
int g_put_clip_text(char *cd);
int g_put_clip_text(const char *cd);
void g_get_ostitle_name(char *);
void g_set_ostitle_name(char *, int);

View File

@@ -322,7 +322,7 @@ static void leave_pm_clipboard(int mode) {
// ------------------------------------------------------------------
int g_put_clip_text(char *cd) {
int g_put_clip_text(const char *cd) {
ULONG len;
void *text;

View File

@@ -261,7 +261,7 @@ char* g_get_clip_text(void) {
// ------------------------------------------------------------------
int g_put_clip_text(char *Data) {
int g_put_clip_text(const char *Data) {
long DataSize;
if((Data != NULL) and ((DataSize = strlen(Data)) != 0)) {

View File

@@ -38,7 +38,7 @@ static bool lame = false;
// ------------------------------------------------------------------
bool gareafile::ReadHPTLine(FILE* f, string* s, bool add=false, int state=0) {
bool gareafile::ReadHPTLine(FILE* f, string* s, bool add, int state) {
string str;
char buf[81];

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); }