This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make | |
gcc -g -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -c -o comm.o comm.c | |
comm.c:163:25: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] | |
} else if ((port = atoi(argv[pos])) <= 1024) { | |
^ | |
comm.c:163:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] | |
} else if ((port = atoi(argv[pos])) <= 1024) { | |
^ | |
comm.c:173:7: warning: implicit declaration of function 'chdir' is invalid in C99 [-Wimplicit-function-declaration] | |
if (chdir(dir) < 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/src/SillyMUD/src]$ make | |
gcc -g -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -c -o handler.o handler.c | |
... | |
handler.c:203:8: error: macro names must be identifiers | |
#ifdef 0 | |
^ | |
... | |
21 warnings and 1 error generated. | |
make: *** [handler.o] Error 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/src/SillyMUD/src]$ make | |
gcc -g -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -c -o db.o db.c | |
... | |
db.c:3229:107: error: too many arguments to function call, expected 1, have 2 | |
script_data[top_of_scripts].script = (struct foo_data *) malloc(script_data[top_of_scripts].script, sizeof(struct foo_data)); | |
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~ | |
... | |
94 warnings and 1 error generated. | |
make: *** [db.o] Error 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* you really don't want to do a lot of reallocs all at once | |
*/ | |
if (count==0) { | |
script_data[top_of_scripts].script = (struct foo_data *) malloc(script_data[top_of_scripts].script, sizeof(struct foo_data)); | |
} else { | |
script_data[top_of_scripts].script = (struct foo_data *) realloc(script_data[top_of_scripts].script, sizeof(struct foo_data) * (count + 1)); | |
} | |
/* This is an excerpt from a DikuMUD-derived codebase. DikuMUD was created by Sebastian Hammer, Michael Seifert</a>, | |
Hans Henrik Stærfeldt, Tom Madsen, and Katja Nyboe. This code is subject to the DikuMud License, as found at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/src/SillyMUD/src]$ make | |
gcc -g -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -c -o interpreter.o interpreter.c | |
... | |
interpreter.c:450:5: error: non-void function 'special' should return a value [-Wreturn-type] | |
return; | |
^ | |
... | |
16 warnings and 1 error generated. | |
make: *** [interpreter.o] Error 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int special(struct char_data *ch, int cmd, char *arg) | |
{ | |
register struct obj_data *i; | |
register struct char_data *k; | |
int j; | |
if (ch->in_room == NOWHERE) { | |
char_to_room(ch, 3001); | |
return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/src/SillyMUD/src]$ make | |
gcc -g -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -c -o utility.o utility.c | |
utility.c:8:10: fatal error: 'malloc.h' file not found | |
#include <malloc.h> | |
^ | |
1 error generated. | |
make: *** [utility.o] Error 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/src/SillyMUD/src]$ make | |
gcc -g -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -c -o utility.o utility.c | |
... | |
utility.c:879:8: error: macro names must be identifiers | |
#ifdef 0 /* removed 6/13, this was ridiculous */ | |
^ | |
... | |
12 warnings and 1 error generated. | |
make: *** [utility.o] Error 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/src/SillyMUD/src]$ make | |
gcc -g -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -c -o shop.o shop.c | |
... | |
shop.c:583:5: error: non-void function 'shop_keeper' should return a value | |
[-Wreturn-type] | |
return; | |
^ | |
shop.c:588:5: error: non-void function 'shop_keeper' should return a value | |
[-Wreturn-type] | |
return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int shop_keeper(struct char_data *ch, int cmd, char *arg, char *mob, int type) | |
{ | |
char argm[100], buf[MAX_STRING_LENGTH]; | |
struct char_data *temp_char; | |
struct char_data *keeper; | |
int shop_nr; | |
int citizen(struct char_data *ch, int cmd, char *arg, struct char_data *mob, int type); | |
if(type == EVENT_DWARVES_STRIKE) { |