From 5b02a8e4890a747f23aa9fa57a221dcf1b20533a Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Mon, 28 Aug 2017 13:37:24 +0100 Subject: [PATCH] Move NPARTS and NTYPES from mhparse.h to mhmisc.h. It's mhmisc.c that has the global arrays that use them. --- h/mhparse.h | 2 -- uip/mhmisc.h | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/h/mhparse.h b/h/mhparse.h index 42cab7e4..85f53267 100644 --- a/h/mhparse.h +++ b/h/mhparse.h @@ -2,8 +2,6 @@ * -- (mhparse.c/mhbuildsbr.c) */ -#define NPARTS 50 -#define NTYPES 20 #define NPREFS 20 /* diff --git a/uip/mhmisc.h b/uip/mhmisc.h index 60f532b7..84ffeabe 100644 --- a/uip/mhmisc.h +++ b/uip/mhmisc.h @@ -13,6 +13,9 @@ int make_intermediates(char *); void content_error(char *, CT, char *, ...) CHECK_PRINTF(3, 4); void flush_errors(void); +#define NPARTS 50 +#define NTYPES 20 + extern int npart; extern int ntype; extern char *parts[NPARTS + 1]; -- 2.56.0