Replace some typedef names by enum tags.

Also get rid of some mildly silly manual packing of enum types.
This commit is contained in:
Markus Armbruster 2008-03-05 06:09:48 +01:00
parent 7ec0f0c0d0
commit 06a0036c63
13 changed files with 39 additions and 41 deletions

View file

@ -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)

View file

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