]> diplodocus.org Git - nmh/commitdiff
mhmisc.h: Add mhmisc.c's global variables as externs.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 28 Aug 2017 12:32:38 +0000 (13:32 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 28 Aug 2017 12:39:10 +0000 (13:39 +0100)
Delete the local copies from other users.

uip/mhlist.c
uip/mhmisc.h
uip/mhn.c
uip/mhshow.c
uip/mhstore.c

index 9fc42b0..11dd59f 100644 (file)
@@ -50,14 +50,6 @@ DEFINE_SWITCH_ENUM(MHLIST);
 DEFINE_SWITCH_ARRAY(MHLIST, switches);
 #undef X
 
-
-/* mhmisc.c */
-extern int npart;
-extern int ntype;
-extern char *parts[NPARTS + 1];
-extern char *types[NTYPES + 1];
-extern int userrs;
-
 /* mhparse.c */
 extern char *preferred_types[];
 extern  char *preferred_subtypes[];
index bdf9baa..60f532b 100644 (file)
@@ -12,3 +12,10 @@ int is_inline(CT) PURE;
 int make_intermediates(char *);
 void content_error(char *, CT, char *, ...) CHECK_PRINTF(3, 4);
 void flush_errors(void);
+
+extern int npart;
+extern int ntype;
+extern char *parts[NPARTS + 1];
+extern char *types[NTYPES + 1];
+
+extern int userrs;
index 1283a1a..0223a42 100644 (file)
--- a/uip/mhn.c
+++ b/uip/mhn.c
@@ -76,13 +76,6 @@ DEFINE_SWITCH_ARRAY(MHN, switches);
 #undef X
 
 
-/* mhmisc.c */
-extern int npart;
-extern int ntype;
-extern char *parts[NPARTS + 1];
-extern char *types[NTYPES + 1];
-extern int userrs;
-
 int debugsw = 0;
 int verbosw = 0;
 
index 5cc3b43..b3d3218 100644 (file)
@@ -67,13 +67,6 @@ DEFINE_SWITCH_ARRAY(MHSHOW, switches);
 #undef X
 
 
-/* mhmisc.c */
-extern int npart;
-extern int ntype;
-extern char *parts[NPARTS + 1];
-extern char *types[NTYPES + 1];
-extern int userrs;
-
 /* mhparse.c */
 extern char *preferred_types[];
 extern  char *preferred_subtypes[];
index 850cabe..3738640 100644 (file)
@@ -47,13 +47,6 @@ DEFINE_SWITCH_ARRAY(MHSTORE, switches);
 #undef X
 
 
-/* mhmisc.c */
-extern int npart;
-extern int ntype;
-extern char *parts[NPARTS + 1];
-extern char *types[NTYPES + 1];
-extern int userrs;
-
 /* mhparse.c */
 extern char *preferred_types[];
 extern  char *preferred_subtypes[];