static int setsym(int, char *);
static int mtsymset(int, long *);
static int add2symset(int, long *, char *);
-static int xundump1(FILE *);
-static int xundump2(FILE *, int, struct castr *);
+static int xubody(FILE *);
+static int xutail(FILE *, int, struct castr *);
static int
gripe(char *fmt, ...)
}
static int
-xuheader1(FILE *fp, struct castr ca[])
+xufldhdr(FILE *fp, struct castr ca[])
{
struct castr **fca;
int *fidx;
}
static int
-xutrailer(FILE *fp, int row)
+xufooter(FILE *fp, int row)
{
int rows, res;
caseen = calloc(nca, sizeof(*caseen));
cur_type = type;
- if (xundump2(fp, type, ca) < 0)
+ if (xutail(fp, type, ca) < 0)
type = EF_BAD;
free(caseen);
}
static int
-xundump2(FILE *fp, int type, struct castr *ca)
+xutail(FILE *fp, int type, struct castr *ca)
{
int recs, i;
is_partial = 0;
for (;;) {
- if (xuheader1(fp, ca) < 0)
+ if (xufldhdr(fp, ca) < 0)
return -1;
- if ((recs = xundump1(fp)) < 0)
+ if ((recs = xubody(fp)) < 0)
return -1;
- if (xutrailer(fp, recs) < 0)
+ if (xufooter(fp, recs) < 0)
return -1;
if (!ellipsis)
return 0;
}
static int
-xundump1(FILE *fp)
+xubody(FILE *fp)
{
struct empfile *ep = &empfile[cur_type];
int need_sentinel = !EF_IS_GAME_STATE(cur_type);