Fix formatting

This commit is contained in:
Alexander S. Aganichev 2003-03-26 16:05:36 +00:00
parent 2bbcabe2a8
commit 97b2064619
7 changed files with 17 additions and 17 deletions

View File

@ -1,3 +1,3 @@
#define ICON_1 1 #define ICON_1 1
ICON_1 ICON "gedw.ico" ICON_1 ICON "gedw.ico"

View File

@ -2076,9 +2076,9 @@ void IEclass::statusline() {
uint tlen = strlen(trig); uint tlen = strlen(trig);
if(col >= tlen) { if(col >= tlen) {
if(strneql(trig, currline->txt.c_str()+col-tlen, tlen)) { if(strneql(trig, currline->txt.c_str()+col-tlen, tlen)) {
int saved_insert = insert; int saved_insert = insert;
insert = true; insert = true;
batch_mode = BATCH_MODE; batch_mode = BATCH_MODE;
uint n; uint n;
for(n=0; n<tlen; n++) for(n=0; n<tlen; n++)
DelLeft(); DelLeft();
@ -2087,7 +2087,7 @@ void IEclass::statusline() {
for(n=0; n<clen; n++) for(n=0; n<clen; n++)
insertchar(*cptr++); insertchar(*cptr++);
HandleGEvent(EVTT_EDITCOMPLETION); HandleGEvent(EVTT_EDITCOMPLETION);
insert = saved_insert; insert = saved_insert;
break; break;
} }
} }

View File

@ -231,10 +231,10 @@ void DispHeader(GMsg* msg, bool prn, FILE* fp, int width) {
strconv(buf); strconv(buf);
fwrite(buf, strlen(buf), 1, fp); fwrite(buf, strlen(buf), 1, fp);
// write bottom line // write bottom line
strcpy(stpcpy(buf, headerline), prn ? NL : "\n"); strcpy(stpcpy(buf, headerline), prn ? NL : "\n");
strconv(buf); strconv(buf);
fwrite(buf, strlen(buf), 1, fp); fwrite(buf, strlen(buf), 1, fp);
} }

View File

@ -148,7 +148,7 @@ static void InitCmdline(char* val) {
break; break;
case 'Z': case 'Z':
gftrk_set_max = atoi(val); gftrk_set_max = atoi(val);
if(gftrk_set_max == 0) { if(gftrk_set_max == 0) {
std::cout << "Warning: Invalid parameter for -Z option, fixed." << std::endl; std::cout << "Warning: Invalid parameter for -Z option, fixed." << std::endl;
gftrk_set_max = 1; gftrk_set_max = 1;
} }

View File

@ -181,8 +181,8 @@ char* TokenXlat(int mode, char* input, GMsg* msg, GMsg* oldmsg, int __origarea)
continue; continue;
if(tokenxchg(dst, "@omessageid", oldmsg->messageid ? oldmsg->messageid : "")) if(tokenxchg(dst, "@omessageid", oldmsg->messageid ? oldmsg->messageid : ""))
continue; continue;
if(tokenxchg(dst, "@omsgid", *msg->replys ? msg->replys : "")) if(tokenxchg(dst, "@omsgid", *msg->replys ? msg->replys : ""))
continue; continue;
if(tokenxchg(dst, "@dname", strbtrim(strtmp(oldmsg->To())), 34, 3, if(tokenxchg(dst, "@dname", strbtrim(strtmp(oldmsg->To())), 34, 3,
(int)msg->to_me(), (int)msg->to_you(), (int)oldmsg->to_all())) (int)msg->to_me(), (int)msg->to_you(), (int)oldmsg->to_all()))
continue; continue;

View File

@ -213,7 +213,7 @@ int MakeNoise(int type) {
case SND_SAYBIBI: case SND_SAYBIBI:
Beep(440, 111); Beep(440, 111);
NoSound(); NoSound();
break; break;
case SND_TOYOU: case SND_TOYOU:
@ -221,13 +221,13 @@ int MakeNoise(int type) {
Beep(n, 18); Beep(n, 18);
for(; n>100; n-=400) for(; n>100; n-=400)
Beep(n, 18); Beep(n, 18);
NoSound(); NoSound();
break; break;
case SND_THEEND: case SND_THEEND:
Beep(220, 111); Beep(220, 111);
Beep(110, 167); Beep(110, 167);
NoSound(); NoSound();
break; break;
case SND_GOTIT: case SND_GOTIT:
@ -235,14 +235,14 @@ int MakeNoise(int type) {
Beep(220, 56); Beep(220, 56);
Beep(110, 56); Beep(110, 56);
Beep(220, 111); Beep(220, 111);
NoSound(); NoSound();
break; break;
case SND_TOOBAD: case SND_TOOBAD:
Beep(440, 111); Beep(440, 111);
Beep(220, 111); Beep(220, 111);
Beep(110, 167); Beep(110, 167);
NoSound(); NoSound();
break; break;
case SND_S_O_S: case SND_S_O_S:
@ -263,7 +263,7 @@ int MakeNoise(int type) {
Beep(1000, 56); Beep(1000, 56);
Sleep(111); Sleep(111);
Beep(1000, 56); Beep(1000, 56);
NoSound(); NoSound();
break; break;
} }
} }

View File

@ -71,7 +71,7 @@ public:
int charsetlevel; // Charset level int charsetlevel; // Charset level
int charsetencoding; // Charset encoding format (GCHENC_*) int charsetencoding; // Charset encoding format (GCHENC_*)
int tzutc; // TZUTC kludge int tzutc; // TZUTC kludge
char tagline[80]; // Tagline for msg char tagline[80]; // Tagline for msg
char tearline[80]; // Tearline for msg char tearline[80]; // Tearline for msg