From: Ralph Corderoy Date: Sun, 3 Sep 2017 11:18:59 +0000 (+0100) Subject: DEFAULT_PAGER: Move from nmh.h to mh.h. Former is "config.h". X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/afeebe19b502e0956b2d129f431576648786b089?hp=39a12997e2d7705a2760a1198932f23f4e590aab DEFAULT_PAGER: Move from nmh.h to mh.h. Former is "config.h". The macro isn't related to platform independence, unlike the rest of nmh.h, that starts by including config.h. --- diff --git a/h/mh.h b/h/mh.h index 6b4466bf..e1c5827d 100644 --- 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) : "") +/* 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: diff --git a/h/nmh.h b/h/nmh.h index 7336c24b..c2f8dfca 100644 --- 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 - -/* - * Defaults for programs if they aren't configured in a user's profile - */ - -#define DEFAULT_PAGER "more"