\#perminv, 1 of 2: groundwork

Give the window-port side of *_update_inventory() an argument.
Calls in the core still omit that; invent.c's update_inventory()
is the only place that cares.
This commit is contained in:
PatR
2021-03-13 18:17:00 -08:00
parent 160344feaa
commit dd49431296
21 changed files with 235 additions and 179 deletions
+3 -4
View File
@@ -500,15 +500,14 @@ const char *mesg;
}
void
trace_update_inventory(vp)
void *vp;
trace_update_inventory(void *vp, int arg)
{
struct trace_data *tdp = vp;
fprintf(wc_tracelogf, "%supdate_inventory()\n", INDENT);
fprintf(wc_tracelogf, "%supdate_inventory(%d)\n", INDENT, arg);
PRE;
(*tdp->nprocs->win_update_inventory)(tdp->ndata);
(*tdp->nprocs->win_update_inventory)(tdp->ndata, arg);
POST;
}