Move its contents to h/mh.h.
Remove the NLENGTH macro on the way, be cause it is not used.
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
# 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
** mf.h -- include file for mailbox filters
*/
-#include <h/nmh.h>
-
#ifndef TRUE
# define TRUE 1
#endif
** 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
#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 {
+++ /dev/null
-/*
-** 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
*/
#include <h/mh.h> /* for snprintf() */
-#include <h/nmh.h>
#include <h/tws.h>
#include <time.h>
%n2500
%a5000
%{
-#include <h/nmh.h>
+#include <ctype.h>
#include <h/tws.h>
/*
#include <ctype.h>
#include <stdio.h>
#include <h/utils.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <string.h>
/*
** static prototypes
*/
#include <h/mh.h> /* for snprintf() */
-#include <h/nmh.h>
#include <h/utils.h>
#include <ctype.h>
#include <stdio.h>
** complete copyright information.
*/
-#include <h/nmh.h>
+#include <stdlib.h>
#include <h/utils.h>
#include <h/mh.h>