i am trying to add a slay command to personalize slays here are the errors im getting
make -s smaug
Compiling o/slay.o....
In file included from mud.h:346,
from slay.c:42:
imc.h:408: parse error before "FILE"
imc.h:409: parse error before "FILE"
In file included from slay.c:42:
mud.h:710: parse error before "SUB_TIMER_DO_ABORT"
mud.h:3295: parse error before '*' token
mud.h:3295: warning: type defaults to `int' in declaration of `fpArea'
mud.h:3295: warning: data definition has no type or storage class
mud.h:4312: parse error before '*' token
mud.h:4313: parse error before '*' token
mud.h:4314: parse error before '*' token
mud.h:4315: parse error before "FILE"
mud.h:4317: parse error before '*' token
mud.h:4318: parse error before '*' token
mud.h:4319: parse error before '*' token
mud.h:4320: parse error before '*' token
mud.h:4321: parse error before '*' token
mud.h:4322: parse error before '*' token
mud.h:4451: parse error before "FILE"
mud.h:4452: parse error before "FILE"
mud.h:4470: parse error before '*' token
mud.h:4472: parse error before '*' token
mud.h:4502: parse error before '*' token
mud.h:4669: parse error before "FILE"
mud.h:4670: parse error before "FILE"
mud.h:4675: parse error before '*' token
mud.h:4676: parse error before '*' token
slay.c:70: parse error before "FILE"
slay.c: In function `fread_slay':
slay.c:77: warning: implicit declaration of function `feof'
slay.c:77: `fp' undeclared (first use in this function)
slay.c:77: (Each undeclared identifier is reported only once
slay.c:77: for each function it appears in.)
slay.c:88: `slay' undeclared (first use in this function)
slay.c: In function `load_slays':
slay.c:128: `FILE' undeclared (first use in this function)
slay.c:128: `fp' undeclared (first use in this function)
slay.c:134: warning: implicit declaration of function `snprintf'
slay.c:136: warning: implicit declaration of function `fopen'
slay.c:163: warning: implicit declaration of function `fclose'
slay.c:167: warning: implicit declaration of function `perror'
slay.c:167: warning: implicit declaration of function `fprintf'
slay.c:167: `stderr' undeclared (first use in this function)
slay.c:181: warning: redundant redeclaration of `fclose' in same scope
slay.c:163: warning: previous declaration of `fclose'
slay.c: In function `save_slays':
slay.c:191: `FILE' undeclared (first use in this function)
slay.c:191: `fp' undeclared (first use in this function)
slay.c: In function `do_makeslay':
slay.c:345: `stderr' undeclared (first use in this function)
make[1]: *** [o/slay.o] Error 1
make: *** [all] Error 2
some of these files i did not even touch so im assuming its just one thing wrong and when fixing that it will fix it all any help thanks
make -s smaug
Compiling o/slay.o....
In file included from mud.h:346,
from slay.c:42:
imc.h:408: parse error before "FILE"
imc.h:409: parse error before "FILE"
In file included from slay.c:42:
mud.h:710: parse error before "SUB_TIMER_DO_ABORT"
mud.h:3295: parse error before '*' token
mud.h:3295: warning: type defaults to `int' in declaration of `fpArea'
mud.h:3295: warning: data definition has no type or storage class
mud.h:4312: parse error before '*' token
mud.h:4313: parse error before '*' token
mud.h:4314: parse error before '*' token
mud.h:4315: parse error before "FILE"
mud.h:4317: parse error before '*' token
mud.h:4318: parse error before '*' token
mud.h:4319: parse error before '*' token
mud.h:4320: parse error before '*' token
mud.h:4321: parse error before '*' token
mud.h:4322: parse error before '*' token
mud.h:4451: parse error before "FILE"
mud.h:4452: parse error before "FILE"
mud.h:4470: parse error before '*' token
mud.h:4472: parse error before '*' token
mud.h:4502: parse error before '*' token
mud.h:4669: parse error before "FILE"
mud.h:4670: parse error before "FILE"
mud.h:4675: parse error before '*' token
mud.h:4676: parse error before '*' token
slay.c:70: parse error before "FILE"
slay.c: In function `fread_slay':
slay.c:77: warning: implicit declaration of function `feof'
slay.c:77: `fp' undeclared (first use in this function)
slay.c:77: (Each undeclared identifier is reported only once
slay.c:77: for each function it appears in.)
slay.c:88: `slay' undeclared (first use in this function)
slay.c: In function `load_slays':
slay.c:128: `FILE' undeclared (first use in this function)
slay.c:128: `fp' undeclared (first use in this function)
slay.c:134: warning: implicit declaration of function `snprintf'
slay.c:136: warning: implicit declaration of function `fopen'
slay.c:163: warning: implicit declaration of function `fclose'
slay.c:167: warning: implicit declaration of function `perror'
slay.c:167: warning: implicit declaration of function `fprintf'
slay.c:167: `stderr' undeclared (first use in this function)
slay.c:181: warning: redundant redeclaration of `fclose' in same scope
slay.c:163: warning: previous declaration of `fclose'
slay.c: In function `save_slays':
slay.c:191: `FILE' undeclared (first use in this function)
slay.c:191: `fp' undeclared (first use in this function)
slay.c: In function `do_makeslay':
slay.c:345: `stderr' undeclared (first use in this function)
make[1]: *** [o/slay.o] Error 1
make: *** [all] Error 2
some of these files i did not even touch so im assuming its just one thing wrong and when fixing that it will fix it all any help thanks