=> "/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 --- 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 --- 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 --- espells.c: In function 'check_one_spell': espells.c:105:12: warning: old-style function definition [-Wold-style-definition] 105 | static int check_one_spell(numgests, glist, mainhand, spel) | ^~~~~~~~~~~~~~~ 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: 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) | ^~~~~~~~~~~~~~~~ engine.c: In function 'InitBeing': engine.c:88:6: warning: old-style function definition [-Wold-style-definition] 88 | void InitBeing(fred) | ^~~~~~~~~ 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) | ^~~~~~~~~~~~~~ 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"); | ^~~~~~~~ *** [engine.o] Error code 1 bmake: stopped making "all" in /tmp/work/games/spellcast/work/spellcast bmake: 1 error bmake: stopped making "all" in /tmp/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