(i_type, I_NONE): shift the enum down 1, so that I_NONE does not need to

be skipped or stored in arrays of size I_MAX. I_NONE's int equivalent
becomes -1 by this patch, so all array indices of type i_type have been
checked not to use I_NONE as index.  This change reduces the size of the
arrays stored in files.
This commit is contained in:
Marc Olzheim 2004-10-12 19:48:53 +00:00
parent 19e4dc57ed
commit 442803c30a
7 changed files with 65 additions and 75 deletions

View file

@ -35,14 +35,13 @@
#include "nat.h"
#include "file.h"
#include "sect.h"
#include "var.h"
#include "budg.h"
#include "update.h"
#include "common.h"
#include "optlist.h"
static int bud_key[I_MAX + 2] =
{ 0, 1, 2, 3, 4, 0, 0, 0, 0, 0, 0, 5, 6, 0, 0, 7 };
{ 1, 2, 3, 4, 0, 0, 0, 0, 0, 0, 5, 6, 0, 0, 7 };
int *
get_wp(int *bp, struct sctstr *sp, int cm)