From 5280f9a0cd1f9ba200422ebba65d1e0133410995 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 13 Sep 2014 09:43:21 -0700 Subject: Initial. --- src/defs.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/defs.h (limited to 'src/defs.h') diff --git a/src/defs.h b/src/defs.h new file mode 100644 index 0000000..f33c05d --- /dev/null +++ b/src/defs.h @@ -0,0 +1,26 @@ +/* defs.h */ +#undef MAXPATHLEN /* make sure struct dirs has a + well-defined size (thanks to + Pierre.Humblet@eurecom.fr) */ +#include + +#define MAN 0 +#define CAT 1 +#define SCAT 2 + +#ifndef MAXPATHLEN +#define MAXPATHLEN 1024 +#endif + +struct dir { + struct dir *nxt; + char *dir; +}; + +struct dirs { + struct dirs *nxt; + char mandir[MAXPATHLEN]; + char catdir[MAXPATHLEN]; + char bindir[MAXPATHLEN]; + int mandatory; +}; -- cgit v1.2.3