\#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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user