diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-09 13:17:49 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-09 13:17:49 +0000 |
commit | 79c252d0d501a7a16abd7ad9da42ff7440083ee4 (patch) | |
tree | 61f798abeddcb38e33d918cd810e7e6e4e874610 | |
parent | 3c250f9844dc2759a6887a574ce490316f7d1939 (diff) | |
download | mandoc-79c252d0d501a7a16abd7ad9da42ff7440083ee4.tar.gz |
Easier integration into FreeBSD (sys/types.h, time.h, etc.).VERSION.1.4.5
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | action.c | 1 | ||||
-rw-r--r-- | argv.c | 2 | ||||
-rw-r--r-- | macro.c | 7 | ||||
-rw-r--r-- | mdoc.h | 2 | ||||
-rw-r--r-- | mdocterm.c | 5 | ||||
-rw-r--r-- | strings.c | 5 | ||||
-rw-r--r-- | term.c | 2 | ||||
-rw-r--r-- | validate.c | 2 |
9 files changed, 19 insertions, 14 deletions
@@ -1,6 +1,6 @@ .SUFFIXES: .html .sgml -VERSION = 1.4.4 +VERSION = 1.4.5 VDATE = 9 March 2009 BINDIR = $(PREFIX)/bin @@ -13,9 +13,12 @@ INSTALL_DATA = install -m 0444 INSTALL_LIB = install -m 0644 INSTALL_MAN = $(INSTALL_DATA) -CPPFLAGS = -DVERSION=\"$(VERSION)\" +VFLAGS = -DVERSION=\"$(VERSION)\" CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -g +LINTFLAGS += $(VFLAGS) +CFLAGS += $(VFLAGS) + LIBLNS = macro.ln mdoc.ln hash.ln strings.ln xstd.ln argv.ln \ validate.ln action.ln lib.ln att.ln arch.ln vol.ln \ msec.ln st.ln @@ -23,7 +23,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <time.h> #include "private.h" @@ -16,6 +16,8 @@ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ +#include <sys/types.h> + #include <assert.h> #include <ctype.h> #include <err.h> @@ -21,9 +21,8 @@ #include <stdlib.h> #include <stdio.h> #include <string.h> -#ifdef __linux__ -#include <time.h> -#endif + +#include "private.h" /* * This has scanning/parsing routines, each of which extract a macro and @@ -31,8 +30,6 @@ * macro. */ -#include "private.h" - static int macro_obsolete(MACRO_PROT_ARGS); static int macro_constant(MACRO_PROT_ARGS); static int macro_constant_scoped(MACRO_PROT_ARGS); @@ -19,6 +19,8 @@ #ifndef MDOC_H #define MDOC_H +#include <time.h> + /* * This library implements a validating scanner/parser for ``mdoc'' roff * macro documents, a.k.a. BSD manual page documents. The mdoc.c file @@ -16,6 +16,8 @@ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ +#include <sys/types.h> + #include <assert.h> #include <ctype.h> #include <err.h> @@ -23,9 +25,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#ifndef __OpenBSD__ -#include <time.h> -#endif #include "mmain.h" #include "term.h" @@ -16,14 +16,13 @@ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ +#include <sys/types.h> + #include <assert.h> #include <ctype.h> #include <stdlib.h> #include <stdio.h> #include <string.h> -#ifndef __OpenBSD__ -#include <time.h> -#endif #include "private.h" @@ -16,6 +16,8 @@ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ +#include <sys/types.h> + #include <assert.h> #include <ctype.h> #include <err.h> @@ -16,6 +16,8 @@ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ +#include <sys/types.h> + #include <assert.h> #include <ctype.h> #include <stdarg.h> |