]> diplodocus.org Git - nmh/commitdiff
DEFAULT_PAGER: Move from nmh.h to mh.h. Former is "config.h".
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 3 Sep 2017 11:18:59 +0000 (12:18 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 3 Sep 2017 11:18:59 +0000 (12:18 +0100)
The macro isn't related to platform independence, unlike the rest of
nmh.h, that starts by including config.h.

h/mh.h
h/nmh.h

diff --git a/h/mh.h b/h/mh.h
index 6b4466bf6cac3aef55bef16b8a7375b616cb7c12..e1c5827d88e07552ca964452442311f3102990c0 100644 (file)
--- a/h/mh.h
+++ b/h/mh.h
@@ -76,6 +76,9 @@ typedef unsigned char  boolean;  /* not int so we can pack in a structure */
 /* FENDNULL fends off NULL by giving an empty string instead. */
 #define FENDNULL(s) ((s) ? (s) : "")
 
 /* FENDNULL fends off NULL by giving an empty string instead. */
 #define FENDNULL(s) ((s) ? (s) : "")
 
+/* If not specified in a file and PAGER is NULL or empty. */
+#define DEFAULT_PAGER "more"
+
 /*
  * char array that keeps track of size in both bytes and characters
  * Usage note:
 /*
  * char array that keeps track of size in both bytes and characters
  * Usage note:
diff --git a/h/nmh.h b/h/nmh.h
index 7336c24b3e4180d26841f0fa61a1c4da658f74f3..c2f8dfca20f7c1f00bc71e668e4a8b3eb8130099 100644 (file)
--- a/h/nmh.h
+++ b/h/nmh.h
@@ -77,9 +77,3 @@
 #ifndef HAVE_GETLINE
 ssize_t getline(char **lineptr, size_t *n, FILE *stream);
 #endif
 #ifndef HAVE_GETLINE
 ssize_t getline(char **lineptr, size_t *n, FILE *stream);
 #endif
-
-/*
- * Defaults for programs if they aren't configured in a user's profile
- */
-
-#define DEFAULT_PAGER "more"