(I_NONE, I_CIVIL, I_MILIT, I_SHELL, I_GUN, I_PETROL, I_IRON, I_DUST,

I_BAR, I_FOOD, I_OIL, I_LCM, I_HCM, I_UW, I_RAD, I_MAX): Turn macros
into enumeration constants.
(i_type): New.  Use where appropriate.  No functional changes, except
that I_NONE is now catched properly in a few places.
This commit is contained in:
Marc Olzheim 2004-09-16 21:18:01 +00:00
parent 308430e751
commit d30942632b
38 changed files with 143 additions and 134 deletions

View file

@ -52,7 +52,7 @@
#include "common.h"
#include <stdlib.h>
static void swap(register struct shpstr *);
static void swap(struct shpstr *);
static void
scuttle_it(register struct shpstr *sp)
@ -116,10 +116,10 @@ nav_check_atdest(register struct shpstr *sp)
/* CZ 6/1/94 */
static void
swap(register struct shpstr *sp)
swap(struct shpstr *sp)
{
coord tcord;
s_char tcomm[TMAX];
i_type tcomm[TMAX];
short lev[TMAX];
int i;