\#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

View File

@@ -234,9 +234,9 @@ const char *mesg;
}
void
chainin_update_inventory()
chainin_update_inventory(int arg)
{
(*cibase->nprocs->win_update_inventory)(cibase->ndata);
(*cibase->nprocs->win_update_inventory)(cibase->ndata, arg);
}
void

View File

@@ -284,12 +284,11 @@ const char *mesg;
}
void
chainout_update_inventory(vp)
void *vp;
chainout_update_inventory(void *vp, int arg)
{
struct chainout_data *tdp = vp;
(*tdp->nprocs->win_update_inventory)();
(*tdp->nprocs->win_update_inventory)(arg);
}
void

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;
}