From de2a1122a661dd4bd4004854891d44e87d63c6c2 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 17 Aug 2018 20:33:37 +0000 Subject: Remove more pointer arithmetic passing via regions outside the array that is undefined according to the C standard. Robert Elz pointed out i wasn't quite done yet. --- libman.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libman.h') diff --git a/libman.h b/libman.h index 312093dd..012ac4b0 100644 --- a/libman.h +++ b/libman.h @@ -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 - * Copyright (c) 2014, 2015 Ingo Schwarze + * Copyright (c) 2014, 2015, 2018 Ingo Schwarze * * 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 *); -- cgit v1.2.3-56-ge451