X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/61ccf1dbeea93978803303d2cd43efa5da2cc7d1..ff7b97ca9ddcf66640aaeef01934a6b45a5f183b:/h/nmh.h?ds=sidebyside diff --git a/h/nmh.h b/h/nmh.h index ca32f58b..e3dd3c6c 100644 --- a/h/nmh.h +++ b/h/nmh.h @@ -1,10 +1,8 @@ - -/* - * nmh.h -- system configuration header file +/* nmh.h -- system configuration header file */ #ifdef HAVE_CONFIG_H -#include +#include "config.h" #endif #include @@ -12,14 +10,22 @@ #include #ifndef NDEBUG /* See etc/gen-ctype-checked.c. */ -# include +#include "sbr/ctype-checked.h" #endif #include + +#ifdef HAVE_STDBOOL_H +# include +#else +# define bool int +# define true 1 +# define false 0 +#endif + #include #include # include -#define NLENGTH(dirent) strlen((dirent)->d_name) #include #include @@ -68,11 +74,6 @@ # endif #endif -/* - * Defaults for programs if they aren't configured in a user's profile - */ - -#define DEFAULT_PAGER "more" -#define DEFAULT_EDITOR "vi" - -#include +#ifndef HAVE_GETLINE +ssize_t getline(char **lineptr, size_t *n, FILE *stream); +#endif