X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/326954c9b88b5698383fe317f4c202d871ef47d0..3e793ecdc83c0df54ce3096880eb8fdc7a36c4e0:/h/nmh.h?ds=sidebyside diff --git a/h/nmh.h b/h/nmh.h index 17e4273f..d88ec529 100644 --- a/h/nmh.h +++ b/h/nmh.h @@ -10,7 +10,22 @@ #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) @@ -23,8 +38,9 @@ # include #endif -# include -# include +#include +#include +#include /* * we should be getting this value from pathconf(_PC_PATH_MAX) @@ -61,9 +77,13 @@ # endif #endif -#include - -#define bcmp(b1,b2,length) memcmp(b1, b2, length) -#define bcopy(b1,b2,length) memcpy (b2, b1, length) -#define bcpy(b1,b2,length) memcmp (b1, b2, length) -#define bzero(b,length) memset (b, 0, length) +#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" +#define DEFAULT_EDITOR "vi"