Remove h/nmh.h
authormarkus schnalke <meillo@marmaro.de>
Fri, 10 Apr 2015 09:21:12 +0000 (11:21 +0200)
committermarkus schnalke <meillo@marmaro.de>
Fri, 10 Apr 2015 09:21:12 +0000 (11:21 +0200)
Move its contents to h/mh.h.

Remove the NLENGTH macro on the way, be cause it is not used.

configure.ac
h/Makefile.in
h/mf.h
h/mh.h
h/nmh.h [deleted file]
sbr/dtime.c
sbr/dtimep.lex
sbr/mf.c
sbr/mts.c
uip/dropsbr.c

index 2633228..fda0e5a 100644 (file)
@@ -7,7 +7,7 @@ AC_PREREQ(2.61)
 dnl (I was able to configure with autoconf-2.59 --meillo 2012-03-22)
 
 AC_INIT(mmh, m4_normalize(m4_include([VERSION])))
 dnl (I was able to configure with autoconf-2.59 --meillo 2012-03-22)
 
 AC_INIT(mmh, m4_normalize(m4_include([VERSION])))
-AC_CONFIG_SRCDIR(h/nmh.h)
+AC_CONFIG_SRCDIR(h/mh.h)
 AC_CONFIG_HEADER(config.h)
 
 AC_CANONICAL_TARGET
 AC_CONFIG_HEADER(config.h)
 
 AC_CANONICAL_TARGET
index 78db70b..31987b5 100644 (file)
@@ -10,7 +10,7 @@ VPATH  = @srcdir@
 # header files included in distribution
 HDRS = addrsbr.h aliasbr.h crawl_folders.h dropsbr.h fmt_compile.h     \
        fmt_scan.h mf.h mh.h mhparse.h mime.h        \
 # header files included in distribution
 HDRS = addrsbr.h aliasbr.h crawl_folders.h dropsbr.h fmt_compile.h     \
        fmt_scan.h mf.h mh.h mhparse.h mime.h        \
-       nmh.h prototypes.h rcvmail.h         \
+       prototypes.h rcvmail.h         \
        scansbr.h signals.h tws.h utils.h
 
 # auxiliary files
        scansbr.h signals.h tws.h utils.h
 
 # auxiliary files
diff --git a/h/mf.h b/h/mf.h
index 75245e0..a39689d 100644 (file)
--- a/h/mf.h
+++ b/h/mf.h
@@ -2,8 +2,6 @@
 ** mf.h -- include file for mailbox filters
 */
 
 ** mf.h -- include file for mailbox filters
 */
 
-#include <h/nmh.h>
-
 #ifndef TRUE
 # define TRUE 1
 #endif
 #ifndef TRUE
 # define TRUE 1
 #endif
diff --git a/h/mh.h b/h/mh.h
index 6b8f4a9..17d5c2f 100644 (file)
--- a/h/mh.h
+++ b/h/mh.h
@@ -2,7 +2,25 @@
 ** mh.h -- main header file for all of nmh
 */
 
 ** mh.h -- main header file for all of nmh
 */
 
-#include <h/nmh.h>
+#include <config.h>
+
+#include <unistd.h>
+#include <stdio.h>
+#include <ctype.h>
+#include <sys/stat.h>
+
+#include <dirent.h>
+
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+
+#ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif
+
+#include <locale.h>
+#include <limits.h>
 
 /*
 ** Well-used constants
 
 /*
 ** Well-used constants
@@ -36,6 +54,30 @@ typedef unsigned char  boolean;  /* not int so we can pack in a structure */
 #endif
 
 /*
 #endif
 
 /*
+** we should be getting this value from pathconf(_PC_PATH_MAX)
+*/
+#ifndef PATH_MAX
+# ifdef MAXPATHLEN
+#  define PATH_MAX MAXPATHLEN
+# else
+   /* so we will just pick something */
+#  define PATH_MAX 1024
+# endif
+#endif
+
+/*
+** we should be getting this value from sysconf(_SC_OPEN_MAX)
+*/
+#ifndef OPEN_MAX
+# ifdef NOFILE
+#  define OPEN_MAX NOFILE
+# else
+   /* so we will just pick something */
+#  define OPEN_MAX 64
+# endif
+#endif
+
+/*
 ** user context/profile structure
 */
 struct node {
 ** user context/profile structure
 */
 struct node {
diff --git a/h/nmh.h b/h/nmh.h
deleted file mode 100644 (file)
index 3da6a14..0000000
--- a/h/nmh.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
-** nmh.h -- system configuration header file
-*/
-
-#include <config.h>
-
-#include <unistd.h>
-#include <stdio.h>
-#include <ctype.h>
-#include <sys/stat.h>
-
-#include <dirent.h>
-#define NLENGTH(dirent) strlen((dirent)->d_name)
-
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-
-#ifdef HAVE_SYS_PARAM_H
-# include <sys/param.h>
-#endif
-
-#include <locale.h>
-#include <limits.h>
-
-/*
-** we should be getting this value from pathconf(_PC_PATH_MAX)
-*/
-#ifndef PATH_MAX
-# ifdef MAXPATHLEN
-#  define PATH_MAX MAXPATHLEN
-# else
-   /* so we will just pick something */
-#  define PATH_MAX 1024
-# endif
-#endif
-
-/*
-** we should be getting this value from sysconf(_SC_OPEN_MAX)
-*/
-#ifndef OPEN_MAX
-# ifdef NOFILE
-#  define OPEN_MAX NOFILE
-# else
-   /* so we will just pick something */
-#  define OPEN_MAX 64
-# endif
-#endif
index 2f8e5dc..f97f65b 100644 (file)
@@ -7,7 +7,6 @@
 */
 
 #include <h/mh.h>   /* for snprintf() */
 */
 
 #include <h/mh.h>   /* for snprintf() */
-#include <h/nmh.h>
 #include <h/tws.h>
 #include <time.h>
 
 #include <h/tws.h>
 #include <time.h>
 
index 83edbff..60a8d82 100644 (file)
@@ -9,7 +9,7 @@
 %n2500
 %a5000
 %{
 %n2500
 %a5000
 %{
-#include <h/nmh.h>
+#include <ctype.h>
 #include <h/tws.h>
 
 /*
 #include <h/tws.h>
 
 /*
index 69afff8..1780997 100644 (file)
--- a/sbr/mf.c
+++ b/sbr/mf.c
@@ -10,6 +10,9 @@
 #include <ctype.h>
 #include <stdio.h>
 #include <h/utils.h>
 #include <ctype.h>
 #include <stdio.h>
 #include <h/utils.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
 
 /*
 ** static prototypes
 
 /*
 ** static prototypes
index 95c0a3f..a65d9de 100644 (file)
--- a/sbr/mts.c
+++ b/sbr/mts.c
@@ -7,7 +7,6 @@
 */
 
 #include <h/mh.h>   /* for snprintf() */
 */
 
 #include <h/mh.h>   /* for snprintf() */
-#include <h/nmh.h>
 #include <h/utils.h>
 #include <ctype.h>
 #include <stdio.h>
 #include <h/utils.h>
 #include <ctype.h>
 #include <stdio.h>
index 3c3e105..5b5cf0e 100644 (file)
@@ -6,7 +6,7 @@
 ** complete copyright information.
 */
 
 ** complete copyright information.
 */
 
-#include <h/nmh.h>
+#include <stdlib.h>
 #include <h/utils.h>
 
 #include <h/mh.h>
 #include <h/utils.h>
 
 #include <h/mh.h>