diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-17 20:33:37 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-17 20:33:37 +0000 |
commit | de2a1122a661dd4bd4004854891d44e87d63c6c2 (patch) | |
tree | 79380a193e1374fd7e4b697152b0b7aea304ddf8 /libman.h | |
parent | 3f485a7ff74c3707363ed47362ccc8a7855b0f58 (diff) | |
download | mandoc-de2a1122a661dd4bd4004854891d44e87d63c6c2.tar.gz mandoc-de2a1122a661dd4bd4004854891d44e87d63c6c2.tar.zst mandoc-de2a1122a661dd4bd4004854891d44e87d63c6c2.zip |
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 'libman.h')
-rw-r--r-- | libman.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,7 +1,7 @@ -/* $Id: libman.h,v 1.81 2017/04/29 12:45:41 schwarze Exp $ */ +/* $Id: libman.h,v 1.82 2018/08/17 20:33:37 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 *); |