X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/81498ba3222c3731cae33bf76ca04a8257b06d3d..a3724ed39:/h/nmh.h?ds=inline diff --git a/h/nmh.h b/h/nmh.h index 09683efb..07f7240b 100644 --- a/h/nmh.h +++ b/h/nmh.h @@ -1,6 +1,4 @@ - -/* - * nmh.h -- system configuration header file +/* nmh.h -- system configuration header file */ #ifdef HAVE_CONFIG_H @@ -10,10 +8,24 @@ #include #include #include +#ifndef NDEBUG + /* See etc/gen-ctype-checked.c. */ +# include +#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 @@ -23,8 +35,9 @@ # include #endif -# include -# include +#include +#include +#include /* * we should be getting this value from pathconf(_PC_PATH_MAX) @@ -61,10 +74,13 @@ # endif #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" - -#include +#define DEFAULT_EDITOR "vi"