=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/games/spellcast", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for spellcast-1.2nb1 --- engine.o --- --- espells.o --- --- engine.o --- gcc -O -I/opt/pkg/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/opt/pkg/include -c engine.c --- espells.o --- gcc -O -I/opt/pkg/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/opt/pkg/include -c espells.c --- engine.o --- engine.c: In function 'erase_queries': engine.c:18:6: warning: old-style function definition [-Wold-style-definition] 18 | void erase_queries(self) | ^~~~~~~~~~~~~ engine.c: In function 'add_query': engine.c:26:6: warning: old-style function definition [-Wold-style-definition] 26 | void add_query(self, player, qtype, rock) | ^~~~~~~~~ engine.c:37:43: error: implicit declaration of function 'realloc' [-Wimplicit-function-declaration] 37 | self->querylist = (struct query *)realloc(self->querylist, sizeof(struct query) * self->querylist_size); | ^~~~~~~ engine.c:6:1: note: include '' or provide a declaration of 'realloc' 5 | #include "internal.h" +++ |+#include 6 | engine.c:37:43: warning: incompatible implicit declaration of built-in function 'realloc' [-Wbuiltin-declaration-mismatch] 37 | self->querylist = (struct query *)realloc(self->querylist, sizeof(struct query) * self->querylist_size); | ^~~~~~~ engine.c:37:43: note: include '' or provide a declaration of 'realloc' engine.c: In function 'clear_permstats': engine.c:45:6: warning: old-style function definition [-Wold-style-definition] 45 | void clear_permstats(ps) | ^~~~~~~~~~~~~~~ engine.c: In function 'clear_out_spells': engine.c:57:6: warning: old-style function definition [-Wold-style-definition] 57 | void clear_out_spells(fred, wizflag) | ^~~~~~~~~~~~~~~~ --- espells.o --- espells.c: In function 'check_one_spell': --- engine.o --- engine.c: In function 'InitBeing': engine.c:88:6: warning: old-style function definition [-Wold-style-definition] 88 | void InitBeing(fred) | ^~~~~~~~~ --- espells.o --- espells.c:105:12: warning: old-style function definition [-Wold-style-definition] 105 | static int check_one_spell(numgests, glist, mainhand, spel) | ^~~~~~~~~~~~~~~ --- engine.o --- engine.c:107:5: error: implicit declaration of function 'clear_round' [-Wimplicit-function-declaration] 107 | clear_round(fred); | ^~~~~~~~~~~ engine.c: In function 'gesture_name': engine.c:110:7: warning: old-style function definition [-Wold-style-definition] 110 | char *gesture_name(val) | ^~~~~~~~~~~~ engine.c: In function 'write_gestures': engine.c:144:5: warning: old-style function definition [-Wold-style-definition] 144 | int write_gestures(self, wiz, vall, valr) | ^~~~~~~~~~~~~~ --- espells.o --- espells.c: In function 'find_castspells': espells.c:140:6: warning: old-style function definition [-Wold-style-definition] 140 | void find_castspells(found, numgests, glist) | ^~~~~~~~~~~~~~~ --- engine.o --- engine.c:153:43: warning: incompatible implicit declaration of built-in function 'realloc' [-Wbuiltin-declaration-mismatch] 153 | wiz->gests = (struct wizgesture *)realloc(wiz->gests, wiz->gests_size * sizeof(struct wizgesture)); | ^~~~~~~ engine.c:153:43: note: include '' or provide a declaration of 'realloc' engine.c: In function 'previous_gesture': engine.c:169:5: warning: old-style function definition [-Wold-style-definition] 169 | int previous_gesture(wiz, gnum, hand) | ^~~~~~~~~~~~~~~~ engine.c: In function 'BeginGame': engine.c:182:7: warning: old-style function definition [-Wold-style-definition] 182 | game *BeginGame(numplayers, names, genders, callbacks, rock) | ^~~~~~~~~ engine.c:188:1: error: number of arguments doesn't match prototype 188 | { | ^ In file included from engine.c:4: handwave.h:105:14: error: prototype declaration 105 | extern game *BeginGame( /* int numplayers, char **names, int *genders, struct interface *callbacks, rock */ ); | ^~~~~~~~~ engine.c:189:48: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 189 | struct realgame *self = (struct realgame *)malloc(sizeof(struct realgame)); | ^~~~~~ engine.c:189:48: note: include '' or provide a declaration of 'malloc' engine.c:189:48: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] engine.c:189:48: note: include '' or provide a declaration of 'malloc' engine.c:192:5: error: implicit declaration of function 'srandom' [-Wimplicit-function-declaration] 192 | srandom(getpid() + rock + numplayers); | ^~~~~~~ engine.c:192:13: error: implicit declaration of function 'getpid' [-Wimplicit-function-declaration] 192 | srandom(getpid() + rock + numplayers); | ^~~~~~ engine.c:203:5: error: implicit declaration of function 'init_transcript'; did you mean 'WriteTranscript'? [-Wimplicit-function-declaration] 203 | init_transcript(self); | ^~~~~~~~~~~~~~~ | WriteTranscript In file included from engine.c:5: internal.h:3:26: error: implicit declaration of function 'log_text' [-Wimplicit-function-declaration] 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ^~~~~~~~ engine.c:206:9: note: in expansion of macro 'PrintMsg' 206 | PrintMsg("Too many players requested.\n"); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"Too many players requested.\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:206:9: note: in expansion of macro 'PrintMsg' 206 | PrintMsg("Too many players requested.\n"); | ^~~~~~~~ engine.c:231:155: error: too many arguments to function 'pro_him'; expected 0, have 1 231 | sprintf(bigbuf, "%s strides defiantly into the arena. The referee casts the formal Dispel Magic and Anti-Spell on %s....\n", self->wiz[ix]->name, pro_him(self->wiz[ix]->gender)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ engine.c:12:14: note: declared here 12 | extern char *pro_him(), *pro_himself(), *pro_his(); | ^~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:232:9: note: in expansion of macro 'PrintMsg2' 232 | PrintMsg2(ix, "You advance confidently into the arena. The referee casts the formal Dispel Magic and Anti-Spell on you....\n", bigbuf); | ^~~~~~~~~ engine.c:264:5: error: too many arguments to function 'setup_targetlist'; expected 0, have 1 264 | setup_targetlist(self); | ^~~~~~~~~~~~~~~~ ~~~~ internal.h:171:13: note: declared here 171 | extern void setup_targetlist(); /* needed if Queries() is to be used */ | ^~~~~~~~~~~~~~~~ engine.c:265:5: error: too many arguments to function 'setup_turnactive'; expected 0, have 1 265 | setup_turnactive(self); | ^~~~~~~~~~~~~~~~ ~~~~ engine.c:16:13: note: declared here 16 | static void setup_turnactive(); | ^~~~~~~~~~~~~~~~ engine.c: In function 'RunTurn': engine.c:271:5: warning: old-style function definition [-Wold-style-definition] 271 | int RunTurn(pgame, moves) | ^~~~~~~ engine.c:275:1: error: number of arguments doesn't match prototype 275 | { | ^ handwave.h:108:12: error: prototype declaration 108 | extern int RunTurn( /* game *game, int *moves */ ); | ^~~~~~~ engine.c:308:165: error: too many arguments to function 'pro_his'; expected 0, have 1 308 | sprintf(bigbuf, "In a fit of absent-mindedness, %s repeats %s gestures from last turn: %s with the left hand, %s with the right.\n", wiz->name, pro_his(wiz->gender), gesture_name(wiz->gests[gnum].did[0]), gesture_name(wiz->gests[gnum].did[1])); | ^~~~~~~ ~~~~~~~~~~~ engine.c:12:42: note: declared here 12 | extern char *pro_him(), *pro_himself(), *pro_his(); | ^~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:309:21: note: in expansion of macro 'PrintMsg' 309 | PrintMsg(bigbuf); | ^~~~~~~~ engine.c:317:30: error: implicit declaration of function 'random' [-Wimplicit-function-declaration] 317 | jx = random() % 2; | ^~~~~~ engine.c:323:137: error: too many arguments to function 'pro_his'; expected 0, have 1 323 | sprintf(bigbuf, "%s accidentally makes a %s with %s %s hand.\n", wiz->name, gesture_name(wiz->gests[gnum].did[jx]), pro_his(wiz->gender), (jx?"right":"left")); | ^~~~~~~ ~~~~~~~~~~~ engine.c:12:42: note: declared here 12 | extern char *pro_him(), *pro_himself(), *pro_his(); | ^~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:324:21: note: in expansion of macro 'PrintMsg' 324 | PrintMsg(bigbuf); | ^~~~~~~~ engine.c:345:62: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 345 | add_query(self, kx, Qu_CharmGesture, (char *)val); | ^ internal.h:12:43: error: too many arguments to function 'setup_targetlist'; expected 0, have 1 12 | #define Queries(numqueries, querylist) (setup_targetlist(self),\ | ^~~~~~~~~~~~~~~~ ~~~~ engine.c:346:25: note: in expansion of macro 'Queries' 346 | Queries(self->numqueries, self->querylist); | ^~~~~~~ internal.h:171:13: note: declared here 171 | extern void setup_targetlist(); /* needed if Queries() is to be used */ | ^~~~~~~~~~~~~~~~ internal.h:13:41: error: too many arguments to function 'self->callbacks.proc_Queries'; expected 0, have 4 13 | (self->callbacks.proc_Queries)((numqueries),\ | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ ~~~~~~~~~~~~ engine.c:346:25: note: in expansion of macro 'Queries' 346 | Queries(self->numqueries, self->querylist); | ^~~~~~~ handwave.h:102:12: note: declared here 102 | void (*proc_Queries)( /* int numqueries, struct query *qlist, game *game, rock */ ); | ^~~~~~~~~~~~ engine.c:352:137: error: too many arguments to function 'pro_his'; expected 0, have 1 352 | sprintf(bigbuf, "%s mysteriously makes a %s with %s %s hand.\n", wiz->name, gesture_name(wiz->gests[gnum].did[jx]), pro_his(wiz->gender), (jx?"right":"left")); | ^~~~~~~ ~~~~~~~~~~~ engine.c:12:42: note: declared here 12 | extern char *pro_him(), *pro_himself(), *pro_his(); | ^~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:353:21: note: in expansion of macro 'PrintMsg' 353 | PrintMsg(bigbuf); | ^~~~~~~~ engine.c:369:107: error: too many arguments to function 'pro_his'; expected 0, have 1 369 | sprintf(bigbuf, "Terrified, %s does nothing with %s left hand.\n", wiz->name, pro_his(wiz->gender)); | ^~~~~~~ ~~~~~~~~~~~ engine.c:12:42: note: declared here 12 | extern char *pro_him(), *pro_himself(), *pro_his(); | ^~~~~~~ engine.c:372:108: error: too many arguments to function 'pro_his'; expected 0, have 1 372 | sprintf(bigbuf, "Terrified, %s does nothing with %s right hand.\n", wiz->name, pro_his(wiz->gender)); | ^~~~~~~ ~~~~~~~~~~~ engine.c:12:42: note: declared here 12 | extern char *pro_him(), *pro_himself(), *pro_his(); | ^~~~~~~ engine.c:378:110: error: too many arguments to function 'pro_his'; expected 0, have 1 378 | sprintf(bigbuf, "%s is terrified, but manages %s gestures anyway.\n", wiz->name, pro_his(wiz->gender)); | ^~~~~~~ ~~~~~~~~~~~ engine.c:12:42: note: declared here 12 | extern char *pro_him(), *pro_himself(), *pro_his(); | ^~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:381:21: note: in expansion of macro 'PrintMsg' 381 | PrintMsg(bigbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"ERROR: paralysis previous_gesture returned bad value.\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:405:29: note: in expansion of macro 'PrintMsg' 405 | PrintMsg("ERROR: paralysis previous_gesture returned bad value.\n"); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:412:21: note: in expansion of macro 'PrintMsg' 412 | PrintMsg(bigbuf); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, 0), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:426:17: note: in expansion of macro 'PrintMsg2' 426 | PrintMsg2(ix, "You cannot stab with both hands!\n", NULL); | ^~~~~~~~~ engine.c:431:5: error: implicit declaration of function 'log_round_header' [-Wimplicit-function-declaration] 431 | log_round_header(self); | ^~~~~~~~~~~~~~~~ engine.c:439:13: error: too many arguments to function 'find_castspells'; expected 0, have 3 439 | find_castspells(foundlist, self->wiz[ix]->numgests, self->wiz[ix]->gests); | ^~~~~~~~~~~~~~~ ~~~~~~~~~ engine.c:10:13: note: declared here 10 | extern void find_castspells(); | ^~~~~~~~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:446:17: note: in expansion of macro 'PrintMsg2' 446 | PrintMsg2(ix, "Oh, dear. You seem to have surrendered.\n", bigbuf); | ^~~~~~~~~ engine.c:449:13: error: too many arguments to function 'restrict_gestures'; expected 0, have 2 449 | restrict_gestures(self, ix); | ^~~~~~~~~~~~~~~~~ ~~~~ engine.c:14:13: note: declared here 14 | static void restrict_gestures(), build_cast_list(), pass_time(); | ^~~~~~~~~~~~~~~~~ internal.h:12:43: error: too many arguments to function 'setup_targetlist'; expected 0, have 1 12 | #define Queries(numqueries, querylist) (setup_targetlist(self),\ | ^~~~~~~~~~~~~~~~ ~~~~ engine.c:452:5: note: in expansion of macro 'Queries' 452 | Queries(self->numqueries, self->querylist); /* "what spell do you want ot cast with your * hand?" questions. */ | ^~~~~~~ internal.h:171:13: note: declared here 171 | extern void setup_targetlist(); /* needed if Queries() is to be used */ | ^~~~~~~~~~~~~~~~ internal.h:13:41: error: too many arguments to function 'self->callbacks.proc_Queries'; expected 0, have 4 13 | (self->callbacks.proc_Queries)((numqueries),\ | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ ~~~~~~~~~~~~ engine.c:452:5: note: in expansion of macro 'Queries' 452 | Queries(self->numqueries, self->querylist); /* "what spell do you want ot cast with your * hand?" questions. */ | ^~~~~~~ handwave.h:102:12: note: declared here 102 | void (*proc_Queries)( /* int numqueries, struct query *qlist, game *game, rock */ ); | ^~~~~~~~~~~~ engine.c:453:5: error: too many arguments to function 'build_cast_list'; expected 0, have 1 453 | build_cast_list(self); | ^~~~~~~~~~~~~~~ ~~~~ engine.c:14:34: note: declared here 14 | static void restrict_gestures(), build_cast_list(), pass_time(); | ^~~~~~~~~~~~~~~ engine.c:459:9: error: too many arguments to function 'setup_targetlist'; expected 0, have 1 459 | setup_targetlist(self); | ^~~~~~~~~~~~~~~~ ~~~~ internal.h:171:13: note: declared here 171 | extern void setup_targetlist(); /* needed if Queries() is to be used */ | ^~~~~~~~~~~~~~~~ engine.c:460:9: error: too many arguments to function 'setup_turnactive'; expected 0, have 1 460 | setup_turnactive(self); | ^~~~~~~~~~~~~~~~ ~~~~ engine.c:16:13: note: declared here 16 | static void setup_turnactive(); | ^~~~~~~~~~~~~~~~ engine.c:469:5: error: too many arguments to function 'execute_spells'; expected 0, have 1 469 | execute_spells(self); | ^~~~~~~~~~~~~~ ~~~~ engine.c:11:13: note: declared here 11 | extern void execute_spells(), execute_monsters(); | ^~~~~~~~~~~~~~ engine.c:470:5: error: too many arguments to function 'execute_monsters'; expected 0, have 1 470 | execute_monsters(self); | ^~~~~~~~~~~~~~~~ ~~~~ engine.c:11:31: note: declared here 11 | extern void execute_spells(), execute_monsters(); | ^~~~~~~~~~~~~~~~ engine.c:471:5: error: too many arguments to function 'pass_time'; expected 0, have 1 471 | pass_time(self); | ^~~~~~~~~ ~~~~ engine.c:14:53: note: declared here 14 | static void restrict_gestures(), build_cast_list(), pass_time(); | ^~~~~~~~~ engine.c:486:9: error: too many arguments to function 'setup_targetlist'; expected 0, have 1 486 | setup_targetlist(self); /* well, just because */ | ^~~~~~~~~~~~~~~~ ~~~~ internal.h:171:13: note: declared here 171 | extern void setup_targetlist(); /* needed if Queries() is to be used */ | ^~~~~~~~~~~~~~~~ engine.c:487:16: error: too many arguments to function 'analyze_endgame'; expected 0, have 4 487 | return analyze_endgame(self, numlive, numdead, numsurr); | ^~~~~~~~~~~~~~~ ~~~~ engine.c:15:12: note: declared here 15 | static int analyze_endgame(); | ^~~~~~~~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:507:17: note: in expansion of macro 'PrintMsg2' 507 | PrintMsg2(ix, "Everything around you stops dead. The world is silent and motionless.\n", bigbuf); | ^~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:511:17: note: in expansion of macro 'PrintMsg2' 511 | PrintMsg2(ix, "Everything begins moving again.\n", bigbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:521:17: note: in expansion of macro 'PrintMsg' 521 | PrintMsg(bigbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:525:17: note: in expansion of macro 'PrintMsg' 525 | PrintMsg(bigbuf); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:542:21: note: in expansion of macro 'PrintMsg2' 542 | PrintMsg2(ix, "Everyone else begins moving very slowly.\n", bigbuf); | ^~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:547:21: note: in expansion of macro 'PrintMsg2' 547 | PrintMsg2(ix, "Everyone else is still moving slowly.\n", bigbuf); | ^~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:551:21: note: in expansion of macro 'PrintMsg2' 551 | PrintMsg2(ix, "Everyone comes back up to normal speed.\n", bigbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:562:21: note: in expansion of macro 'PrintMsg' 562 | PrintMsg(bigbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:567:21: note: in expansion of macro 'PrintMsg' 567 | PrintMsg(bigbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:571:21: note: in expansion of macro 'PrintMsg' 571 | PrintMsg(bigbuf); | ^~~~~~~~ engine.c:580:5: error: too many arguments to function 'setup_targetlist'; expected 0, have 1 580 | setup_targetlist(self); | ^~~~~~~~~~~~~~~~ ~~~~ internal.h:171:13: note: declared here 171 | extern void setup_targetlist(); /* needed if Queries() is to be used */ | ^~~~~~~~~~~~~~~~ engine.c:581:5: error: too many arguments to function 'setup_turnactive'; expected 0, have 1 581 | setup_turnactive(self); | ^~~~~~~~~~~~~~~~ ~~~~ engine.c:16:13: note: declared here 16 | static void setup_turnactive(); | ^~~~~~~~~~~~~~~~ engine.c: In function 'SeeGesture': engine.c:585:6: warning: old-style function definition [-Wold-style-definition] 585 | void SeeGesture(pgame, player, asker, buf, size) | ^~~~~~~~~~ engine.c:590:1: error: number of arguments doesn't match prototype 590 | { | ^ handwave.h:111:13: error: prototype declaration 111 | extern void SeeGesture( /* game *game, int player, int asker, int *buf, int size */ ); | ^~~~~~~~~~ engine.c: In function 'FreeGame': engine.c:608:6: warning: old-style function definition [-Wold-style-definition] 608 | void FreeGame(pgame) | ^~~~~~~~ engine.c:610:1: error: number of arguments doesn't match prototype 610 | { | ^ handwave.h:113:13: error: prototype declaration 113 | extern void FreeGame( /* game *game */ ); | ^~~~~~~~ engine.c:615:9: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 615 | free((char *)self->wiz[ix]); | ^~~~ engine.c:615:9: note: include '' or provide a declaration of 'free' engine.c:615:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] engine.c:615:9: note: include '' or provide a declaration of 'free' engine.c:619:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 619 | free(self->cre[ix].name); | ^~~~ engine.c:619:9: note: include '' or provide a declaration of 'free' engine.c:621:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 621 | free((char *)self->cre); | ^~~~ engine.c:621:5: note: include '' or provide a declaration of 'free' engine.c: In function 'setup_targetlist': engine.c:628:6: warning: old-style function definition [-Wold-style-definition] 628 | void setup_targetlist(self) | ^~~~~~~~~~~~~~~~ engine.c:630:1: error: number of arguments doesn't match prototype 630 | { | ^ internal.h:171:13: error: prototype declaration 171 | extern void setup_targetlist(); /* needed if Queries() is to be used */ | ^~~~~~~~~~~~~~~~ engine.c:635:48: warning: incompatible implicit declaration of built-in function 'realloc' [-Wbuiltin-declaration-mismatch] 635 | self->targetlist[0] = (struct target *)realloc(self->targetlist[0], sizeof(struct target) * self->targetlist_size[0]); | ^~~~~~~ engine.c:635:48: note: include '' or provide a declaration of 'realloc' engine.c:639:48: warning: incompatible implicit declaration of built-in function 'realloc' [-Wbuiltin-declaration-mismatch] 639 | self->targetlist[1] = (struct target *)realloc(self->targetlist[1], sizeof(struct target) * self->targetlist_size[1]); | ^~~~~~~ engine.c:639:48: note: include '' or provide a declaration of 'realloc' engine.c:643:48: warning: incompatible implicit declaration of built-in function 'realloc' [-Wbuiltin-declaration-mismatch] 643 | self->targetlist[2] = (struct target *)realloc(self->targetlist[2], sizeof(struct target) * self->targetlist_size[2]); | ^~~~~~~ engine.c:643:48: note: include '' or provide a declaration of 'realloc' engine.c:651:46: error: too many arguments to function 'StuffAboutBeing'; expected 0, have 3 651 | self->targetlist[0][res].stuff = StuffAboutBeing((game *)self, QuVal_Target_Wizard, ix); | ^~~~~~~~~~~~~~~ ~~~~~~~~~~~~ handwave.h:125:12: note: declared here 125 | extern int StuffAboutBeing( /* game *game, int targettype, int indexnum */); | ^~~~~~~~~~~~~~~ engine.c:661:46: error: too many arguments to function 'StuffAboutBeing'; expected 0, have 3 661 | self->targetlist[1][res].stuff = StuffAboutBeing((game *)self, QuVal_Target_Creature, ix); | ^~~~~~~~~~~~~~~ ~~~~~~~~~~~~ handwave.h:125:12: note: declared here 125 | extern int StuffAboutBeing( /* game *game, int targettype, int indexnum */); | ^~~~~~~~~~~~~~~ engine.c: In function 'NumberOfTargets': engine.c:685:5: warning: old-style function definition [-Wold-style-definition] 685 | int NumberOfTargets(pgame, targettype) | ^~~~~~~~~~~~~~~ engine.c:688:1: error: number of arguments doesn't match prototype 688 | { | ^ handwave.h:118:12: error: prototype declaration 118 | extern int NumberOfTargets( /* game *game, int targettype */); | ^~~~~~~~~~~~~~~ engine.c: In function 'NumberOfBeings': engine.c:703:5: warning: old-style function definition [-Wold-style-definition] 703 | int NumberOfBeings(pgame, targettype) | ^~~~~~~~~~~~~~ engine.c:706:1: error: number of arguments doesn't match prototype 706 | { | ^ handwave.h:123:12: error: prototype declaration 123 | extern int NumberOfBeings( /* game *game, int targettype */); | ^~~~~~~~~~~~~~ engine.c: In function 'NameOfTarget': engine.c:718:7: warning: old-style function definition [-Wold-style-definition] 718 | char *NameOfTarget(pgame, targettype, targetnum) | ^~~~~~~~~~~~ engine.c:721:1: error: number of arguments doesn't match prototype 721 | { | ^ handwave.h:119:14: error: prototype declaration 119 | extern char *NameOfTarget( /* game *game, int targettype, int targetnum */); | ^~~~~~~~~~~~ engine.c: In function 'IndexOfTarget': engine.c:743:5: warning: old-style function definition [-Wold-style-definition] 743 | int IndexOfTarget(pgame, targettype, targetnum) | ^~~~~~~~~~~~~ engine.c: In function 'StuffAboutTarget': engine.c:767:5: warning: old-style function definition [-Wold-style-definition] 767 | int StuffAboutTarget(pgame, targettype, targetnum) | ^~~~~~~~~~~~~~~~ engine.c:770:1: error: number of arguments doesn't match prototype 770 | { | ^ handwave.h:120:12: error: prototype declaration 120 | extern int StuffAboutTarget( /* game *game, int targettype, int targetnum */); | ^~~~~~~~~~~~~~~~ engine.c: In function 'HitPointsOfBeing': engine.c:792:5: warning: old-style function definition [-Wold-style-definition] 792 | int HitPointsOfBeing(pgame, targettype, indexnum) | ^~~~~~~~~~~~~~~~ engine.c:795:1: error: number of arguments doesn't match prototype 795 | { | ^ handwave.h:124:12: error: prototype declaration 124 | extern int HitPointsOfBeing( /* game *game, int targettype, int indexnum */); | ^~~~~~~~~~~~~~~~ engine.c: In function 'StuffAboutBeing': engine.c:830:5: warning: old-style function definition [-Wold-style-definition] 830 | int StuffAboutBeing(pgame, targettype, indexnum) | ^~~~~~~~~~~~~~~ engine.c:833:1: error: number of arguments doesn't match prototype 833 | { | ^ handwave.h:125:12: error: prototype declaration 125 | extern int StuffAboutBeing( /* game *game, int targettype, int indexnum */); | ^~~~~~~~~~~~~~~ engine.c: In function 'OwnerOfCreature': engine.c:873:5: warning: old-style function definition [-Wold-style-definition] 873 | int OwnerOfCreature(pgame, indexnum) | ^~~~~~~~~~~~~~~ engine.c:876:1: error: number of arguments doesn't match prototype 876 | { | ^ handwave.h:126:12: error: prototype declaration 126 | extern int OwnerOfCreature( /* game *game, int indexnum */); | ^~~~~~~~~~~~~~~ engine.c: In function 'NameOfBeing': engine.c:886:7: warning: old-style function definition [-Wold-style-definition] 886 | char *NameOfBeing(pgame, targettype, indexnum) | ^~~~~~~~~~~ engine.c:889:1: error: number of arguments doesn't match prototype 889 | { | ^ handwave.h:127:14: error: prototype declaration 127 | extern char *NameOfBeing( /* game *game, int targettype, int indexnum */); | ^~~~~~~~~~~ engine.c: In function 'TurnType': engine.c:910:5: warning: old-style function definition [-Wold-style-definition] 910 | int TurnType(pgame) | ^~~~~~~~ engine.c:912:1: error: number of arguments doesn't match prototype 912 | { | ^ handwave.h:115:12: error: prototype declaration 115 | extern int TurnType( /* game *game */ ); | ^~~~~~~~ engine.c: In function 'setup_turnactive': engine.c:919:13: warning: old-style function definition [-Wold-style-definition] 919 | static void setup_turnactive(self) | ^~~~~~~~~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"ERROR: Unknown turn type\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:944:13: note: in expansion of macro 'PrintMsg' 944 | PrintMsg("ERROR: Unknown turn type\n"); | ^~~~~~~~ engine.c: In function 'TurnPlayerActive': engine.c:949:5: warning: old-style function definition [-Wold-style-definition] 949 | int TurnPlayerActive(pgame, player) | ^~~~~~~~~~~~~~~~ engine.c:952:1: error: number of arguments doesn't match prototype 952 | { | ^ handwave.h:116:12: error: prototype declaration 116 | extern int TurnPlayerActive( /* game *game, int player */ ); | ^~~~~~~~~~~~~~~~ engine.c: In function 'restrict_gestures': engine.c:959:13: warning: old-style function definition [-Wold-style-definition] 959 | static void restrict_gestures(self, wiznum) | ^~~~~~~~~~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"ERROR in restrict_gestures\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:993:21: note: in expansion of macro 'PrintMsg' 993 | PrintMsg("ERROR in restrict_gestures\n"); | ^~~~~~~~ engine.c:1009:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1009 | add_query(self, wiznum, Qu_SetOffDelay, (char *)self->wiz[wiznum]->delay_bank); | ^ engine.c: In function 'build_cast_list': engine.c:1027:13: warning: old-style function definition [-Wold-style-definition] 1027 | static void build_cast_list(self) | ^~~~~~~~~~~~~~~ engine.c:1037:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 1037 | free((char *)self->castlist); | ^~~~ engine.c:1037:9: note: include '' or provide a declaration of 'free' engine.c:1072:47: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 1072 | res = (struct castspell *)malloc(sizeof(struct castspell)); | ^~~~~~ engine.c:1072:47: note: include '' or provide a declaration of 'malloc' engine.c:1090:43: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 1090 | res = (struct castspell *)malloc(sizeof(struct castspell)); | ^~~~~~ engine.c:1090:43: note: include '' or provide a declaration of 'malloc' engine.c:1099:43: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 1099 | res = (struct castspell *)malloc(sizeof(struct castspell)); | ^~~~~~ engine.c:1099:43: note: include '' or provide a declaration of 'malloc' engine.c:1114:47: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 1114 | res = (struct castspell *)malloc(sizeof(struct castspell)); | ^~~~~~ engine.c:1114:47: note: include '' or provide a declaration of 'malloc' internal.h:12:43: error: too many arguments to function 'setup_targetlist'; expected 0, have 1 12 | #define Queries(numqueries, querylist) (setup_targetlist(self),\ | ^~~~~~~~~~~~~~~~ ~~~~ engine.c:1156:21: note: in expansion of macro 'Queries' 1156 | Queries(self->numqueries, self->querylist); | ^~~~~~~ engine.c:628:6: note: declared here 628 | void setup_targetlist(self) | ^~~~~~~~~~~~~~~~ internal.h:13:41: error: too many arguments to function 'self->callbacks.proc_Queries'; expected 0, have 4 13 | (self->callbacks.proc_Queries)((numqueries),\ | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ ~~~~~~~~~~~~ engine.c:1156:21: note: in expansion of macro 'Queries' 1156 | Queries(self->numqueries, self->querylist); | ^~~~~~~ handwave.h:102:12: note: declared here 102 | void (*proc_Queries)( /* int numqueries, struct query *qlist, game *game, rock */ ); | ^~~~~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"ERROR: Unable to find Delayed spell.\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1166:25: note: in expansion of macro 'PrintMsg' 1166 | PrintMsg("ERROR: Unable to find Delayed spell.\n"); | ^~~~~~~~ engine.c:1172:155: error: too many arguments to function 'pro_his'; expected 0, have 1 1172 | sprintf(bigbuf2, "%s casts %s; the spell is caught in the web of %s Delayed Effect.\n", wiz->name, spelllist[res->spellnum].name, pro_his(wiz->gender)); | ^~~~~~~ ~~~~~~~~~~~ engine.c:12:42: note: declared here 12 | extern char *pro_him(), *pro_himself(), *pro_his(); | ^~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:1173:25: note: in expansion of macro 'PrintMsg2' 1173 | PrintMsg2(wiznum, bigbuf, bigbuf2); | ^~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:1177:29: note: in expansion of macro 'PrintMsg2' 1177 | PrintMsg2(wiznum, bigbuf, bigbuf2); | ^~~~~~~~~ engine.c:1182:25: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 1182 | free((char *)res); | ^~~~ engine.c:1182:25: note: include '' or provide a declaration of 'free' internal.h:12:43: error: too many arguments to function 'setup_targetlist'; expected 0, have 1 12 | #define Queries(numqueries, querylist) (setup_targetlist(self),\ | ^~~~~~~~~~~~~~~~ ~~~~ engine.c:1211:21: note: in expansion of macro 'Queries' 1211 | Queries(self->numqueries, self->querylist); | ^~~~~~~ engine.c:628:6: note: declared here 628 | void setup_targetlist(self) | ^~~~~~~~~~~~~~~~ internal.h:13:41: error: too many arguments to function 'self->callbacks.proc_Queries'; expected 0, have 4 13 | (self->callbacks.proc_Queries)((numqueries),\ | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ ~~~~~~~~~~~~ engine.c:1211:21: note: in expansion of macro 'Queries' 1211 | Queries(self->numqueries, self->querylist); | ^~~~~~~ handwave.h:102:12: note: declared here 102 | void (*proc_Queries)( /* int numqueries, struct query *qlist, game *game, rock */ ); | ^~~~~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, 0), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:1218:21: note: in expansion of macro 'PrintMsg2' 1218 | PrintMsg2(wiznum, bigbuf, NULL); | ^~~~~~~~~ internal.h:12:43: error: too many arguments to function 'setup_targetlist'; expected 0, have 1 12 | #define Queries(numqueries, querylist) (setup_targetlist(self),\ | ^~~~~~~~~~~~~~~~ ~~~~ engine.c:1240:5: note: in expansion of macro 'Queries' 1240 | Queries(self->numqueries, self->querylist); /* "who do you want to cast X on?" queries */ | ^~~~~~~ engine.c:628:6: note: declared here 628 | void setup_targetlist(self) | ^~~~~~~~~~~~~~~~ internal.h:13:41: error: too many arguments to function 'self->callbacks.proc_Queries'; expected 0, have 4 13 | (self->callbacks.proc_Queries)((numqueries),\ | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ ~~~~~~~~~~~~ engine.c:1240:5: note: in expansion of macro 'Queries' 1240 | Queries(self->numqueries, self->querylist); /* "who do you want to cast X on?" queries */ | ^~~~~~~ handwave.h:102:12: note: declared here 102 | void (*proc_Queries)( /* int numqueries, struct query *qlist, game *game, rock */ ); | ^~~~~~~~~~~~ engine.c: In function 'exec_unhealth': engine.c:1261:13: warning: old-style function definition [-Wold-style-definition] 1261 | static void exec_unhealth(self, fred, cnum, wizflag) /* no deaders */ | ^~~~~~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:1279:21: note: in expansion of macro 'PrintMsg2' 1279 | PrintMsg2(cnum, "You begin to feel somewhat feverish.\n", bigbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1281:21: note: in expansion of macro 'PrintMsg' 1281 | PrintMsg(bigbuf); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:1286:21: note: in expansion of macro 'PrintMsg2' 1286 | PrintMsg2(cnum, "Your fever is growing worse.\n", bigbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1288:21: note: in expansion of macro 'PrintMsg' 1288 | PrintMsg(bigbuf); | ^~~~~~~~ engine.c:1291:129: error: too many arguments to function 'pro_his'; expected 0, have 1 1291 | sprintf(bigbuf, "%s is flushed and sweating, and seems to be somewhat unsteady on %s feet.\n", fred->both.name, pro_his(fred->both.gender)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~ engine.c:12:42: note: declared here 12 | extern char *pro_him(), *pro_himself(), *pro_his(); | ^~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:1293:21: note: in expansion of macro 'PrintMsg2' 1293 | PrintMsg2(cnum, "You are very hot and somewhat dizzy, and your bones are starting to ache.\n", bigbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1295:21: note: in expansion of macro 'PrintMsg' 1295 | PrintMsg(bigbuf); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:1300:21: note: in expansion of macro 'PrintMsg2' 1300 | PrintMsg2(cnum, "You are feverish and shivering at the same time, and you ache all over.\n", bigbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1302:21: note: in expansion of macro 'PrintMsg' 1302 | PrintMsg(bigbuf); | ^~~~~~~~ engine.c:1305:113: error: too many arguments to function 'pro_his'; expected 0, have 1 1305 | sprintf(bigbuf, "%s crumples to the ground, agony on %s sweating features.\n", fred->both.name, pro_his(fred->both.gender)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~ engine.c:12:42: note: declared here 12 | extern char *pro_him(), *pro_himself(), *pro_his(); | ^~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:1307:21: note: in expansion of macro 'PrintMsg2' 1307 | PrintMsg2(cnum, "Your knees give way and you fall to the ground. Your head pounds unmercifully as consciousness slips away....\n", bigbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1309:21: note: in expansion of macro 'PrintMsg' 1309 | PrintMsg(bigbuf); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:1324:21: note: in expansion of macro 'PrintMsg2' 1324 | PrintMsg2(cnum, "Your toes suddenly feel slightly numb.\n", bigbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1326:21: note: in expansion of macro 'PrintMsg' 1326 | PrintMsg(bigbuf); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:1331:21: note: in expansion of macro 'PrintMsg2' 1331 | PrintMsg2(cnum, "Your hands and feet are getting numb.\n", bigbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1333:21: note: in expansion of macro 'PrintMsg' 1333 | PrintMsg(bigbuf); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:1338:21: note: in expansion of macro 'PrintMsg2' 1338 | PrintMsg2(cnum, "Your limbs are heavy, and your fingers are getting clumsy.\n", bigbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1340:21: note: in expansion of macro 'PrintMsg' 1340 | PrintMsg(bigbuf); | ^~~~~~~~ engine.c:1343:99: error: too many arguments to function 'pro_his'; expected 0, have 1 1343 | sprintf(bigbuf, "%s is having difficulty staying on %s feet.\n", fred->both.name, pro_his(fred->both.gender)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~ engine.c:12:42: note: declared here 12 | extern char *pro_him(), *pro_himself(), *pro_his(); | ^~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:1345:21: note: in expansion of macro 'PrintMsg2' 1345 | PrintMsg2(cnum, "You cannot feel your hands and feet, and your vision is becoming clouded.\n", bigbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1347:21: note: in expansion of macro 'PrintMsg' 1347 | PrintMsg(bigbuf); | ^~~~~~~~ engine.c:1350:99: error: too many arguments to function 'pro_his'; expected 0, have 1 1350 | sprintf(bigbuf, "%s collapses in a heap, twitching slightly.\n", fred->both.name, pro_his(fred->both.gender)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~ engine.c:12:42: note: declared here 12 | extern char *pro_him(), *pro_himself(), *pro_his(); | ^~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:1352:21: note: in expansion of macro 'PrintMsg2' 1352 | PrintMsg2(cnum, "You stumble and fall to your knees, vision dimming. Numbness creeps through your bones, and you cannot tell if you are still breathing....\n", bigbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1354:21: note: in expansion of macro 'PrintMsg' 1354 | PrintMsg(bigbuf); | ^~~~~~~~ engine.c: In function 'pass_time': engine.c:1362:13: warning: old-style function definition [-Wold-style-definition] 1362 | static void pass_time(self) | ^~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:1370:13: note: in expansion of macro 'PrintMsg2' 1370 | PrintMsg2(ix, "You have died!\n", bigbuf); | ^~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:1384:21: note: in expansion of macro 'PrintMsg2' 1384 | PrintMsg2(ix, "The Delayed Effect spell hovering around you dies away.\n", bigbuf); | ^~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ engine.c:1393:21: note: in expansion of macro 'PrintMsg2' 1393 | PrintMsg2(ix, "The Permanency spell hovering around you dies away.\n", bigbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1401:13: note: in expansion of macro 'PrintMsg' 1401 | PrintMsg(bigbuf); | ^~~~~~~~ engine.c: In function 'analyze_endgame': engine.c:1411:12: warning: old-style function definition [-Wold-style-definition] 1411 | static int analyze_endgame(self, numlive, numdead, numsurr) | ^~~~~~~~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1425:13: note: in expansion of macro 'PrintMsg' 1425 | PrintMsg(bigbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1432:13: note: in expansion of macro 'PrintMsg' 1432 | PrintMsg(bigbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1436:13: note: in expansion of macro 'PrintMsg' 1436 | PrintMsg(bigbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"Everyone is dead!\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1444:13: note: in expansion of macro 'PrintMsg' 1444 | PrintMsg("Everyone is dead!\n"); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&bigbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1453:13: note: in expansion of macro 'PrintMsg' 1453 | PrintMsg(bigbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"The survivors have all surrendered to each other!\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1458:13: note: in expansion of macro 'PrintMsg' 1458 | PrintMsg("The survivors have all surrendered to each other!\n"); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"Everyone has surrendered to each other!\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ engine.c:1460:13: note: in expansion of macro 'PrintMsg' 1460 | PrintMsg("Everyone has surrendered to each other!\n"); | ^~~~~~~~ --- execute.o --- gcc -O -I/opt/pkg/include -I./bitmaps -DBODYFONT=\"-*-times-medium-r-*--14-*\" -DBODYFONT_ALT=\"-*-helvetica-medium-r-*--12-*\" -DBODYFONT_ALT2=\"fixed\" -DTRANSCRIPTDIR=\"/tmp\" -I/opt/pkg/include -c execute.c --- engine.o --- *** [engine.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/games/spellcast/work/spellcast --- execute.o --- execute.c: In function 'clear_round': execute.c:14:6: warning: old-style function definition [-Wold-style-definition] 14 | void clear_round(fred) | ^~~~~~~~~~~ execute.c: In function 'set_zap_flag': execute.c:31:13: warning: old-style function definition [-Wold-style-definition] 31 | static void set_zap_flag(self, spel, spelnum) | ^~~~~~~~~~~~ execute.c: In function 'pro_himself': execute.c:113:7: warning: old-style function definition [-Wold-style-definition] 113 | char *pro_himself(gender) | ^~~~~~~~~~~ execute.c: In function 'pro_him': execute.c:130:7: warning: old-style function definition [-Wold-style-definition] 130 | char *pro_him(gender) | ^~~~~~~ execute.c: In function 'pro_he': execute.c:147:7: warning: old-style function definition [-Wold-style-definition] 147 | char *pro_he(gender) | ^~~~~~ execute.c: In function 'pro_his': execute.c:164:7: warning: old-style function definition [-Wold-style-definition] 164 | char *pro_his(gender) /* his head, not the head of his */ | ^~~~~~~ execute.c: In function 'number_name': execute.c:181:7: warning: old-style function definition [-Wold-style-definition] 181 | char *number_name(num) | ^~~~~~~~~~~ execute.c: In function 'list_mind_spells': execute.c:215:13: warning: old-style function definition [-Wold-style-definition] 215 | static void list_mind_spells(buf, zapl) | ^~~~~~~~~~~~~~~~ execute.c: In function 'check_visibility': execute.c:241:12: warning: old-style function definition [-Wold-style-definition] 241 | static int check_visibility(self, mcaster, mtarget, ctmp) | ^~~~~~~~~~~~~~~~ In file included from execute.c:5: internal.h:9:61: error: implicit declaration of function 'log_text' [-Wimplicit-function-declaration] 9 | #define PrintMsg3(person1, person2, msg1, msg2, msgelse) (log_text(self, msgelse),\ | ^~~~~~~~ execute.c:256:13: note: in expansion of macro 'PrintMsg3' 256 | PrintMsg3(ctmp->caster, ctmp->target, exbuf, exbuf2, exbuf3); | ^~~~~~~~~ internal.h:9:84: error: too many arguments to function '(log_text(self, (char *)&exbuf3), self->callbacks.proc_PrintMsg3)'; expected 0, have 7 9 | #define PrintMsg3(person1, person2, msg1, msg2, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 10 | self->callbacks.proc_PrintMsg3)((person1), (person2),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ execute.c:256:13: note: in expansion of macro 'PrintMsg3' 256 | PrintMsg3(ctmp->caster, ctmp->target, exbuf, exbuf2, exbuf3); | ^~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf3), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:258:13: note: in expansion of macro 'PrintMsg2' 258 | PrintMsg2(ctmp->caster, exbuf, exbuf3); | ^~~~~~~~~ execute.c: In function 'execute_spells': execute.c:264:6: warning: old-style function definition [-Wold-style-definition] 264 | void execute_spells(self) | ^~~~~~~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:327:9: note: in expansion of macro 'PrintMsg' 327 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"The magical energies in the arena fade away.\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:378:9: note: in expansion of macro 'PrintMsg' 378 | PrintMsg("The magical energies in the arena fade away.\n"); | ^~~~~~~~ execute.c:382:9: error: too many arguments to function 'exec_counters'; expected 0, have 4 382 | exec_counters(self, self->wiz[ix], ix, 1); | ^~~~~~~~~~~~~ ~~~~ execute.c:11:13: note: declared here 11 | static void exec_counters(), exec_summons(), check_elements(), exec_cancels(), exec_protects(); | ^~~~~~~~~~~~~ execute.c:385:9: error: too many arguments to function 'exec_counters'; expected 0, have 4 385 | exec_counters(self, &self->cre[ix], ix, 0); | ^~~~~~~~~~~~~ ~~~~ execute.c:11:13: note: declared here 11 | static void exec_counters(), exec_summons(), check_elements(), exec_cancels(), exec_protects(); | ^~~~~~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:428:21: note: in expansion of macro 'PrintMsg' 428 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:447:25: note: in expansion of macro 'PrintMsg2' 447 | PrintMsg2(ctmp->target, exbuf, exbuf2); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:449:25: note: in expansion of macro 'PrintMsg' 449 | PrintMsg(exbuf2); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:496:25: note: in expansion of macro 'PrintMsg2' 496 | PrintMsg2(ctmp->caster, "Since you have already cast Lightning Bolt with that formulation, the spell fizzles.\n", exbuf2); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:504:21: note: in expansion of macro 'PrintMsg' 504 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:524:29: note: in expansion of macro 'PrintMsg2' 524 | PrintMsg2(ctmp->target, exbuf, exbuf2); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:526:29: note: in expansion of macro 'PrintMsg' 526 | PrintMsg(exbuf2); | ^~~~~~~~ internal.h:9:84: error: too many arguments to function '(log_text(self, (char *)&exbuf3), self->callbacks.proc_PrintMsg3)'; expected 0, have 7 9 | #define PrintMsg3(person1, person2, msg1, msg2, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 10 | self->callbacks.proc_PrintMsg3)((person1), (person2),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ execute.c:543:29: note: in expansion of macro 'PrintMsg3' 543 | PrintMsg3(ctmp->caster, ctmp->target, exbuf, exbuf2, exbuf3); | ^~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf3), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:545:29: note: in expansion of macro 'PrintMsg2' 545 | PrintMsg2(ctmp->caster, exbuf, exbuf3); | ^~~~~~~~~ internal.h:9:84: error: too many arguments to function '(log_text(self, (char *)&exbuf3), self->callbacks.proc_PrintMsg3)'; expected 0, have 7 9 | #define PrintMsg3(person1, person2, msg1, msg2, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 10 | self->callbacks.proc_PrintMsg3)((person1), (person2),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~ execute.c:553:25: note: in expansion of macro 'PrintMsg3' 553 | PrintMsg3(ctmp->caster, ctmp->target, exbuf, exbuf2, exbuf3); | ^~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf3), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:555:25: note: in expansion of macro 'PrintMsg2' 555 | PrintMsg2(ctmp->caster, exbuf, exbuf3); | ^~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:570:33: note: in expansion of macro 'PrintMsg2' 570 | PrintMsg2(ctmp->target, exbuf, exbuf2); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:572:33: note: in expansion of macro 'PrintMsg' 572 | PrintMsg(exbuf2); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:588:22: note: in expansion of macro 'PrintMsg' 588 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:598:21: note: in expansion of macro 'PrintMsg' 598 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"ERROR: Surrender got through to spell table setup\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:605:17: note: in expansion of macro 'PrintMsg' 605 | PrintMsg("ERROR: Surrender got through to spell table setup\n"); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"ERROR: Unknown spell in spell table setup\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:616:17: note: in expansion of macro 'PrintMsg' 616 | PrintMsg("ERROR: Unknown spell in spell table setup\n"); | ^~~~~~~~ execute.c:622:5: error: implicit declaration of function 'erase_queries' [-Wimplicit-function-declaration] 622 | erase_queries(self); | ^~~~~~~~~~~~~ execute.c:626:17: error: implicit declaration of function 'add_query' [-Wimplicit-function-declaration] 626 | add_query(self, ix, Qu_ElementalType, 0); | ^~~~~~~~~ internal.h:12:43: error: too many arguments to function 'setup_targetlist'; expected 0, have 1 12 | #define Queries(numqueries, querylist) (setup_targetlist(self),\ | ^~~~~~~~~~~~~~~~ ~~~~ execute.c:630:9: note: in expansion of macro 'Queries' 630 | Queries(self->numqueries, self->querylist); | ^~~~~~~ internal.h:171:13: note: declared here 171 | extern void setup_targetlist(); /* needed if Queries() is to be used */ | ^~~~~~~~~~~~~~~~ internal.h:13:41: error: too many arguments to function 'self->callbacks.proc_Queries'; expected 0, have 4 13 | (self->callbacks.proc_Queries)((numqueries),\ | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ ~~~~~~~~~~~~ execute.c:630:9: note: in expansion of macro 'Queries' 630 | Queries(self->numqueries, self->querylist); | ^~~~~~~ In file included from execute.c:4: handwave.h:102:12: note: declared here 102 | void (*proc_Queries)( /* int numqueries, struct query *qlist, game *game, rock */ ); | ^~~~~~~~~~~~ execute.c:636:13: error: too many arguments to function 'exec_summons'; expected 0, have 4 636 | exec_summons(self, self->wiz[ix], ix, 1); | ^~~~~~~~~~~~ ~~~~ execute.c:11:30: note: declared here 11 | static void exec_counters(), exec_summons(), check_elements(), exec_cancels(), exec_protects(); | ^~~~~~~~~~~~ execute.c:640:5: error: too many arguments to function 'check_elements'; expected 0, have 1 640 | check_elements(self); | ^~~~~~~~~~~~~~ ~~~~ execute.c:11:46: note: declared here 11 | static void exec_counters(), exec_summons(), check_elements(), exec_cancels(), exec_protects(); | ^~~~~~~~~~~~~~ execute.c:645:13: error: too many arguments to function 'exec_cancels'; expected 0, have 4 645 | exec_cancels(self, self->wiz[ix], ix, 1); | ^~~~~~~~~~~~ ~~~~ execute.c:11:64: note: declared here 11 | static void exec_counters(), exec_summons(), check_elements(), exec_cancels(), exec_protects(); | ^~~~~~~~~~~~ execute.c:649:13: error: too many arguments to function 'exec_cancels'; expected 0, have 4 649 | exec_cancels(self, &self->cre[ix], ix, 0); | ^~~~~~~~~~~~ ~~~~ execute.c:11:64: note: declared here 11 | static void exec_counters(), exec_summons(), check_elements(), exec_cancels(), exec_protects(); | ^~~~~~~~~~~~ execute.c:655:13: error: too many arguments to function 'exec_protects'; expected 0, have 4 655 | exec_protects(self, self->wiz[ix], ix, 1); | ^~~~~~~~~~~~~ ~~~~ execute.c:11:80: note: declared here 11 | static void exec_counters(), exec_summons(), check_elements(), exec_cancels(), exec_protects(); | ^~~~~~~~~~~~~ execute.c:659:13: error: too many arguments to function 'exec_protects'; expected 0, have 4 659 | exec_protects(self, &self->cre[ix], ix, 0); | ^~~~~~~~~~~~~ ~~~~ execute.c:11:80: note: declared here 11 | static void exec_counters(), exec_summons(), check_elements(), exec_cancels(), exec_protects(); | ^~~~~~~~~~~~~ execute.c:665:13: error: too many arguments to function 'exec_enchants'; expected 0, have 4 665 | exec_enchants(self, self->wiz[ix], ix, 1); | ^~~~~~~~~~~~~ ~~~~ execute.c:12:13: note: declared here 12 | extern void exec_enchants(), exec_attacks(), exec_heals(); | ^~~~~~~~~~~~~ execute.c:669:13: error: too many arguments to function 'exec_enchants'; expected 0, have 4 669 | exec_enchants(self, &self->cre[ix], ix, 0); | ^~~~~~~~~~~~~ ~~~~ execute.c:12:13: note: declared here 12 | extern void exec_enchants(), exec_attacks(), exec_heals(); | ^~~~~~~~~~~~~ execute.c:675:13: error: too many arguments to function 'exec_attacks'; expected 0, have 4 675 | exec_attacks(self, self->wiz[ix], ix, 1); | ^~~~~~~~~~~~ ~~~~ execute.c:12:30: note: declared here 12 | extern void exec_enchants(), exec_attacks(), exec_heals(); | ^~~~~~~~~~~~ execute.c:679:13: error: too many arguments to function 'exec_attacks'; expected 0, have 4 679 | exec_attacks(self, &self->cre[ix], ix, 0); | ^~~~~~~~~~~~ ~~~~ execute.c:12:30: note: declared here 12 | extern void exec_enchants(), exec_attacks(), exec_heals(); | ^~~~~~~~~~~~ execute.c:684:9: error: too many arguments to function 'exec_heals'; expected 0, have 4 684 | exec_heals(self, self->wiz[ix], ix, 1); | ^~~~~~~~~~ ~~~~ execute.c:12:46: note: declared here 12 | extern void exec_enchants(), exec_attacks(), exec_heals(); | ^~~~~~~~~~ execute.c:687:9: error: too many arguments to function 'exec_heals'; expected 0, have 4 687 | exec_heals(self, &self->cre[ix], ix, 0); | ^~~~~~~~~~ ~~~~ execute.c:12:46: note: declared here 12 | extern void exec_enchants(), exec_attacks(), exec_heals(); | ^~~~~~~~~~ execute.c: In function 'exec_counters': execute.c:692:13: warning: old-style function definition [-Wold-style-definition] 692 | static void exec_counters(self, fred, cnum, wizflag) /* dead allowed */ | ^~~~~~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:716:17: note: in expansion of macro 'PrintMsg2' 716 | PrintMsg2(cnum, "The Counter-Spell on you is dispelled.\n", exbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:718:17: note: in expansion of macro 'PrintMsg' 718 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:724:17: note: in expansion of macro 'PrintMsg2' 724 | PrintMsg2(cnum, "The Magic Mirror on you is dispelled.\n", exbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:726:17: note: in expansion of macro 'PrintMsg' 726 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:733:17: note: in expansion of macro 'PrintMsg' 733 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:739:17: note: in expansion of macro 'PrintMsg' 739 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:751:17: note: in expansion of macro 'PrintMsg2' 751 | PrintMsg2(cnum, "Your magical senses go numb as a Counter-Spell surrounds you.\n", exbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:753:17: note: in expansion of macro 'PrintMsg' 753 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:760:21: note: in expansion of macro 'PrintMsg2' 760 | PrintMsg2(cnum, "The Magic Mirror on you is destroyed by the Counter-Spell.\n", exbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:762:21: note: in expansion of macro 'PrintMsg' 762 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:771:17: note: in expansion of macro 'PrintMsg2' 771 | PrintMsg2(cnum, "The bright haze of a Magic Mirror surrounds you.\n", exbuf); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:773:17: note: in expansion of macro 'PrintMsg' 773 | PrintMsg(exbuf); | ^~~~~~~~ execute.c: In function 'exec_summons': execute.c:779:13: warning: old-style function definition [-Wold-style-definition] 779 | static void exec_summons(self, fred, cnum, wizflag) /* no deaders or monsters */ | ^~~~~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:799:21: note: in expansion of macro 'PrintMsg2' 799 | PrintMsg2(cnum, exbuf, exbuf2); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:801:21: note: in expansion of macro 'PrintMsg' 801 | PrintMsg(exbuf2); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:807:21: note: in expansion of macro 'PrintMsg2' 807 | PrintMsg2(cnum, exbuf, exbuf2); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:809:21: note: in expansion of macro 'PrintMsg' 809 | PrintMsg(exbuf2); | ^~~~~~~~ execute.c:812:17: error: implicit declaration of function 'create_creature' [-Wimplicit-function-declaration] 812 | create_creature(self, ix+1, cnum); | ^~~~~~~~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:828:13: note: in expansion of macro 'PrintMsg2' 828 | PrintMsg2(cnum, exbuf, exbuf2); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:830:13: note: in expansion of macro 'PrintMsg' 830 | PrintMsg(exbuf2); | ^~~~~~~~ execute.c: In function 'check_elements': execute.c:837:13: warning: old-style function definition [-Wold-style-definition] 837 | static void check_elements(self) | ^~~~~~~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:873:9: note: in expansion of macro 'PrintMsg' 873 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:877:9: note: in expansion of macro 'PrintMsg' 877 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"The Fire Elemental is dispersed into the Fire Storm.\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:887:13: note: in expansion of macro 'PrintMsg' 887 | PrintMsg("The Fire Elemental is dispersed into the Fire Storm.\n"); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"The Ice Elemental is dispersed into the Ice Storm.\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:892:13: note: in expansion of macro 'PrintMsg' 892 | PrintMsg("The Ice Elemental is dispersed into the Ice Storm.\n"); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"The Fire and Ice Storms tear each other into shreds of vapor.\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:897:13: note: in expansion of macro 'PrintMsg' 897 | PrintMsg("The Fire and Ice Storms tear each other into shreds of vapor.\n"); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"The Fire and Ice Elementals tear into each other, and whirl into a column of steam that dissipates in moments.\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:902:13: note: in expansion of macro 'PrintMsg' 902 | PrintMsg("The Fire and Ice Elementals tear into each other, and whirl into a column of steam that dissipates in moments.\n"); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"The Ice Elemental is dispersed into the Fire Storm, destroying both.\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:909:13: note: in expansion of macro 'PrintMsg' 909 | PrintMsg("The Ice Elemental is dispersed into the Fire Storm, destroying both.\n"); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"The Fire Elemental is dispersed into the Ice Storm, destroying both.\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:915:13: note: in expansion of macro 'PrintMsg' 915 | PrintMsg("The Fire Elemental is dispersed into the Ice Storm, destroying both.\n"); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"The Fire and Ice Storms tear each other into shreds of vapor, destroying the Fire Elemental as well.\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:921:13: note: in expansion of macro 'PrintMsg' 921 | PrintMsg("The Fire and Ice Storms tear each other into shreds of vapor, destroying the Fire Elemental as well.\n"); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"The Fire and Ice Storms tear each other into shreds of vapor, destroying the Ice Elemental as well.\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:928:13: note: in expansion of macro 'PrintMsg' 928 | PrintMsg("The Fire and Ice Storms tear each other into shreds of vapor, destroying the Ice Elemental as well.\n"); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"The Fire and Ice Elementals tear into each other, and whirl into a column of steam that dissipates in moments. The Ice Storm is absorbed as well.\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:935:13: note: in expansion of macro 'PrintMsg' 935 | PrintMsg("The Fire and Ice Elementals tear into each other, and whirl into a column of steam that dissipates in moments. The Ice Storm is absorbed as well.\n"); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"The Fire and Ice Elementals tear into each other, and whirl into a column of steam that dissipates in moments. The Fire Storm is absorbed as well.\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:943:13: note: in expansion of macro 'PrintMsg' 943 | PrintMsg("The Fire and Ice Elementals tear into each other, and whirl into a column of steam that dissipates in moments. The Fire Storm is absorbed as well.\n"); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)"The Fire and Ice Elementals whirl into each other, screaming in fury, and the Fire and Ice storms shriek in response. The column of Elemental energy rises to meet the cloud of vapor that descends over the arena. You are buffeted by the conflicting energies; but within moments, nothing remains.\012"), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:951:13: note: in expansion of macro 'PrintMsg' 951 | PrintMsg("The Fire and Ice Elementals whirl into each other, screaming in fury, and the Fire and Ice storms shriek in response. The column of Elemental energy rises to meet the cloud of vapor that descends over the arena. You are buffeted by the conflicting energies; but within moments, nothing remains.\n"); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:969:21: note: in expansion of macro 'PrintMsg' 969 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:976:21: note: in expansion of macro 'PrintMsg' 976 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:981:21: note: in expansion of macro 'PrintMsg' 981 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:987:17: note: in expansion of macro 'PrintMsg' 987 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:992:17: note: in expansion of macro 'PrintMsg' 992 | PrintMsg(exbuf); | ^~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:1004:17: note: in expansion of macro 'PrintMsg' 1004 | PrintMsg(exbuf); | ^~~~~~~~ execute.c: In function 'exec_cancels': execute.c:1011:13: warning: old-style function definition [-Wold-style-definition] 1011 | static void exec_cancels(self, fred, cnum, wizflag) /* no deaders */ | ^~~~~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:1025:13: note: in expansion of macro 'PrintMsg2' 1025 | PrintMsg2(cnum, "For a moment, you feel a sudden pressure in your chest, as if an iron band was squeezing your heart. Then it fades, as the Raise Dead spell burns through you.\n", exbuf2); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:1027:13: note: in expansion of macro 'PrintMsg' 1027 | PrintMsg(exbuf2); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:1035:13: note: in expansion of macro 'PrintMsg2' 1035 | PrintMsg2(cnum, "The Fireball hurtling towards you is snuffed by the Ice Storm, leaving you enveloped in warm steam.\n", exbuf2); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:1037:13: note: in expansion of macro 'PrintMsg' 1037 | PrintMsg(exbuf2); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:1059:13: note: in expansion of macro 'PrintMsg2' 1059 | PrintMsg2(cnum, exbuf, exbuf2); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:1061:13: note: in expansion of macro 'PrintMsg' 1061 | PrintMsg(exbuf2); | ^~~~~~~~ execute.c: In function 'exec_protects': execute.c:1075:13: warning: old-style function definition [-Wold-style-definition] 1075 | static void exec_protects(self, fred, cnum, wizflag) /* no deaders */ | ^~~~~~~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:1090:17: note: in expansion of macro 'PrintMsg2' 1090 | PrintMsg2(cnum, "The Resist Heat wraps you in a pleasant blue coolness.\n", exbuf2); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:1092:17: note: in expansion of macro 'PrintMsg' 1092 | PrintMsg(exbuf2); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:1098:17: note: in expansion of macro 'PrintMsg2' 1098 | PrintMsg2(cnum, "Your veil of Resist Heat continues to glow coolly.\n", exbuf2); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:1100:17: note: in expansion of macro 'PrintMsg' 1100 | PrintMsg(exbuf2); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:1109:17: note: in expansion of macro 'PrintMsg2' 1109 | PrintMsg2(cnum, "The Resist Cold wraps you in a pleasant pink warmth.\n", exbuf2); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:1111:17: note: in expansion of macro 'PrintMsg' 1111 | PrintMsg(exbuf2); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:1117:17: note: in expansion of macro 'PrintMsg2' 1117 | PrintMsg2(cnum, "Your veil of Resist Cold continues to glow warmly.\n", exbuf2); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:1119:17: note: in expansion of macro 'PrintMsg' 1119 | PrintMsg(exbuf2); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:1128:17: note: in expansion of macro 'PrintMsg2' 1128 | PrintMsg2(cnum, exbuf, exbuf2); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:1130:17: note: in expansion of macro 'PrintMsg' 1130 | PrintMsg(exbuf2); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:1136:17: note: in expansion of macro 'PrintMsg2' 1136 | PrintMsg2(cnum, exbuf, exbuf2); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:1138:17: note: in expansion of macro 'PrintMsg' 1138 | PrintMsg(exbuf2); | ^~~~~~~~ internal.h:6:68: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg2)'; expected 0, have 5 6 | #define PrintMsg2(person, msg1, msgelse) (log_text(self, msgelse),\ | ~~~~~~~~~~~~~~~~~~~~~~~~^~ 7 | self->callbacks.proc_PrintMsg2)((person), (msg1),\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ execute.c:1171:21: note: in expansion of macro 'PrintMsg2' 1171 | PrintMsg2(cnum, exbuf, exbuf2); | ^~~~~~~~~ internal.h:3:45: error: too many arguments to function '(log_text(self, (char *)&exbuf2), self->callbacks.proc_PrintMsg)'; expected 0, have 3 3 | #define PrintMsg(msg) (log_text(self, msg),\ | ~~~~~~~~~~~~~~~~~~~~^~ 4 | self->callbacks.proc_PrintMsg)((msg), self,\ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ execute.c:1173:21: note: in expansion of macro 'PrintMsg' 1173 | PrintMsg(exbuf2); | ^~~~~~~~ *** [execute.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/games/spellcast/work/spellcast bmake: 2 errors bmake: stopped making "all" in /home/pbulk/work/games/spellcast/work/spellcast *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/games/spellcast *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/games/spellcast