Line->txt now STL-based.
This commit is contained in:
@@ -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)
|
||||
|
@@ -58,7 +58,7 @@ public:
|
||||
char* read(char* buffer, int maxlen);
|
||||
void close();
|
||||
|
||||
bool writeclipbrd(char* buf);
|
||||
bool writeclipbrd(const char* buf);
|
||||
|
||||
gclipbrd();
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -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);
|
||||
|
@@ -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;
|
||||
|
@@ -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)) {
|
||||
|
@@ -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];
|
||||
|
@@ -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); }
|
||||
|
Reference in New Issue
Block a user