src/comp_w8.c
src/compress.c
src/conf.c
-src/console.c
src/cque.c
src/create.c
src/cron.c
src/comp_w8.c
src/compress.c
src/conf.c
-src/console.c
src/cque.c
src/create.c
src/cron.c
: Protect any dollar signs and backticks that you do not want interpreted
: by putting a backslash in front. You may delete these comments.
$spitshell >Makefile <<!GROK!THIS!
-# Makefile for PennMUSH
+# Makefile for CobraMUSH
# - System configuration - #
(cd game; rm -f netmush console info_slave)
distclean:
- (cd src; make distclean)
- (cd hdrs; rm -f *.orig *~ \#* *.rej *.bak funs.h cmds.h)
- (cd utils; rm -f *.orig *~ \#* *.rej *.bak)
- (cd game; rm -rf *.log netmush console info_slave *.orig *.rej *~ *.bak mush.cnf)
+ (cd hdrs; rm -f *.orig *~ \#* *.rej *.bak funs.h cmds.h buildinf.h patches.h)
+ (cd utils; rm -f *.orig *~ \#* *.rej *.bak mkcmds.sh)
+ (cd game; rm -rf *.log netmush info_slave *.orig *.rej *~ *.bak mush.cnf)
(cd os2; rm -rf *.rej *.orig *~ *.bak)
+ (cd src; make distclean; rm -f Makefile)
(cd game/txt; make clean)
+ (rm -rf .config Makefile config.h config.sh options.h)
totallyclean: distclean
(cd hdrs; rm -rf *.rej)
* Added stringsecs(). [RLB]
* Added nwho(), xwho(), xmwho(), xwhoid(), xmwhoid(). [RLB]
* Added mwhoid(), lwhoid(). [RLB]
+ * make distclean is now more throughough. [RLB]
: Protect any dollar signs and backticks that you do not want interpreted
: by putting a backslash in front. You may delete these comments.
$spitshell >Makefile <<!GROK!THIS!
-# Makefile for PennMUSH
+# Makefile for CobraMUSH
###############################################################################
# You shouldn't have to change anything in this file. #
}
if (string_prefix(called_as, "CD"))
safe_str(ChanTitle(c), buff, bp);
- else if (string_prefix(called_as, "CB"))
- safe_integer(BufferQSize(ChanBufferQ(c)), buff, bp);
- else if (string_prefix(called_as, "CU"))
+ else if (string_prefix(called_as, "CB")) {
+ if(ChanBufferQ(c) != NULL)
+ safe_integer(BufferQSize(ChanBufferQ(c)), buff, bp);
+ else
+ safe_chr('0', buff, bp);
+ } else if (string_prefix(called_as, "CU"))
safe_integer(ChanNumUsers(c), buff, bp);
else if (string_prefix(called_as, "CM"))
safe_integer(ChanNumMsgs(c), buff, bp);
#ifndef _DEBUG
char FileName[256];
if (GetModuleFileName(NULL, FileName, 256) != 0) {
- if (!strcasecmp(rindex(FileName, '\\') + 1, "pennmush.exe")) {
- if (CopyFile("pennmush.exe", "pennmush_run.exe", FALSE)) {
+ if (!strcasecmp(rindex(FileName, '\\') + 1, "cobramush.exe")) {
+ if (CopyFile("cobramush.exe", "cobramush_run.exe", FALSE)) {
do_rawlog(LT_ERR, "Successfully copied executable, starting copy.");
#ifdef WIN32SERVICES
- execl("pennmush_run.exe", "pennmush_run.exe", "/run", NULL);
+ execl("cobramush_run.exe", "cobramush_run.exe", "/run", NULL);
#else
- execl("pennmush_run.exe", "pennmush_run.exe", confname, NULL);
+ execl("cobramush_run.exe", "cobramush_run.exe", confname, NULL);
#endif
}
}
#ifdef WIN32SERVICES
-#define THIS_SERVICE "PennMUSH"
-#define THIS_SERVICE_DISPLAY "PennMUSH for Win32"
+#define THIS_SERVICE "CobraMUSH"
+#define THIS_SERVICE_DISPLAY "CobraMUSH for Win32"
int WIN32_CDECL main(int argc, char **argv);
void mainthread(int argc, char **argv);
*/
- fprintf(stderr, T("Attempting to start PennMUSH as a service ...\n"));
+ fprintf(stderr, T("Attempting to start CobraMUSH as a service ...\n"));
if (!StartServiceCtrlDispatcher(dispatchTable)) {
fprintf(stderr,
T
("Unable to start service, assuming running console-mode application.\n"));
fprintf(stderr,
T
- ("You can save time on the next invocation by specifying: pennmush /run\n"));
+ ("You can save time on the next invocation by specifying: cobramush /run\n"));
worker_thread(NULL);
}
} /* end of argc == 1 */
#ifndef WIN32
execl("netmush", "netmush", confname, NULL);
#else
- execl("pennmush.exe", "pennmush.exe", "/run", NULL);
+ execl("cobramush.exe", "cobramush.exe", "/run", NULL);
#endif /* WIN32 */
exit(1); /* Shouldn't ever get here, but just in case... */
}
shift
case "x$1" in
x*.o) args="$args /Fo$1";;
- xnetmud) outfile="/out:PennMUSH.exe";;
+ xnetmud) outfile="/out:CobraMUSH.exe";;
x*) outfile="/out:$1.exe";;
esac
shift