Added OS and CPU nameing functions

This commit is contained in:
Michiel Broek
2002-02-10 15:57:05 +00:00
parent 4f76ee06db
commit 054987b525
21 changed files with 79 additions and 98 deletions

View File

@@ -310,16 +310,13 @@ int Save_Email(int IsReply)
} else
Msg.ReplyCRC = 0xffffffff;
/*
* Add message text
*/
for (i = 1; i < Line; i++) {
MsgText_Add2(Message[i]);
}
sprintf(temp, "--- MBSE BBS v%s (Linux)", VERSION);
MsgText_Add2(temp);
MsgText_Add2(TearLine());
/*
* Save if to disk

View File

@@ -436,7 +436,7 @@ void Masterlist()
MidLine((char *)"", fp, TRUE);
MidLine((char *)"", np, TRUE);
sprintf(temp, "Created by MBSE BBS v%s (Linux) at %s", VERSION, StrDateDMY(t_start));
sprintf(temp, "Created by MBSE BBS v%s (%s-%s) at %s", VERSION, OsName(), OsCPU(), StrDateDMY(t_start));
MidLine(temp, fp, TRUE);
MidLine(temp, np, TRUE);

View File

@@ -274,17 +274,7 @@ void Add_Footkludges(int Quote)
MsgText_Add2(temp);
MsgText_Add2((char *)"");
}
#ifdef __linux__
sprintf(temp, "--- MBSE BBS v%s (Linux)", VERSION);
#elif __FreeBSD__
sprintf(temp, "--- MBSE BBS v%s (FreeBSD)", VERSION);
#elif __NetBSD__
sprintf(temp, "--- MBSE BBS v%s (NetBSD)", VERSION);
#else
sprintf(temp, "--- MBSE BBS v%s (Unknown)", VERSION);
#endif
MsgText_Add2(temp);
MsgText_Add2(TearLine());
if ((msgs.Type == ECHOMAIL) || (msgs.Type == LIST)) {
/* RANDOM ORIGIN LINES IMPLEMENTEREN */

View File

@@ -91,15 +91,7 @@ void cr(void)
wl(a);
ls(a);
#ifdef __linux__
sprintf(temp, "MBSE Bulletin Board System %s (Linux)", VERSION);
#elif __FreeBSD__
sprintf(temp, "MBSE Bulletin Board System %s (FreeBSD)", VERSION);
#elif __NetBSD__
sprintf(temp, "MBSE Bulletin Board System %s (NetBSD)", VERSION);
#else
sprintf(temp, "MBSE Bulletin Board System %s (Unknown OS)", VERSION);
#endif
sprintf(temp, "MBSE Bulletin Board System %s (%s-%s)", VERSION, OsName(), OsCPU());
pout(14, 0, padleft(temp, 76, ' '));
rs(a);
wl(a);