Replace some typedef names by enum tags.
Also get rid of some mildly silly manual packing of enum types.
This commit is contained in:
parent
7ec0f0c0d0
commit
06a0036c63
13 changed files with 39 additions and 41 deletions
|
@ -42,7 +42,7 @@
|
|||
|
||||
static int
|
||||
deliver(struct sctstr *from, struct ichrstr *ip, int dir,
|
||||
int thresh, int amt_src, int plague, i_packing packing)
|
||||
int thresh, int amt_src, int plague, enum i_packing packing)
|
||||
{
|
||||
struct sctstr *to;
|
||||
i_type vtype; /* item vartype */
|
||||
|
@ -126,7 +126,7 @@ dodeliver(struct sctstr *sp)
|
|||
int thresh;
|
||||
int dir;
|
||||
int plague;
|
||||
i_packing packing;
|
||||
enum i_packing packing;
|
||||
int n;
|
||||
|
||||
if (sp->sct_mobil <= 0)
|
||||
|
|
|
@ -55,7 +55,7 @@ dodistribute(struct sctstr *sp, int imex, char *path, double dist_i_cost,
|
|||
int thresh;
|
||||
int amt_dist;
|
||||
int amt_sect;
|
||||
i_packing sect_packing, dist_packing;
|
||||
enum i_packing sect_packing, dist_packing;
|
||||
int pack;
|
||||
double mcost;
|
||||
int diff;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue