summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/libman.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2018-08-17 20:31:53 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2018-08-17 20:31:53 +0000
commitbbc22c979845c539463fd9fc9d807a514cd456b8 (patch)
treeac2701add3cf75e4a713e9cdcb2af4d091cc7b3c /usr.bin/mandoc/libman.h
parentf766f23c3824e58e080eb75ed3c727ff0734eca5 (diff)
Remove more pointer arithmetic passing via regions outside the array
that is undefined according to the C standard. Robert Elz <kre at munnari dot oz dot au> pointed out i wasn't quite done yet.
Diffstat (limited to 'usr.bin/mandoc/libman.h')
-rw-r--r--usr.bin/mandoc/libman.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/mandoc/libman.h b/usr.bin/mandoc/libman.h
index f3ad8d898b3..4ab0e6defd1 100644
--- a/usr.bin/mandoc/libman.h
+++ b/usr.bin/mandoc/libman.h
@@ -1,7 +1,7 @@
-/* $OpenBSD: libman.h,v 1.56 2017/04/29 12:43:55 schwarze Exp $ */
+/* $OpenBSD: libman.h,v 1.57 2018/08/17 20:31:52 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
- * Copyright (c) 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
+ * Copyright (c) 2014, 2015, 2018 Ingo Schwarze <schwarze@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -32,8 +32,7 @@ struct man_macro {
#define MAN_JOIN (1 << 3) /* Join arguments together. */
};
-extern const struct man_macro *const man_macros;
-
+const struct man_macro *man_macro(enum roff_tok);
void man_node_validate(struct roff_man *);
void man_state(struct roff_man *, struct roff_node *);