From: Ralph Corderoy Date: Mon, 28 Aug 2017 12:37:24 +0000 (+0100) Subject: Move NPARTS and NTYPES from mhparse.h to mhmisc.h. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/5b02a8e4890a747f23aa9fa57a221dcf1b20533a?ds=sidebyside;hp=d1cb0cfb62b6106108566a503969d401299c0cf2 Move NPARTS and NTYPES from mhparse.h to mhmisc.h. It's mhmisc.c that has the global arrays that use them. --- 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];