From 9478246fdbadd15d72ff995eadbe78fe9ca4bbb0 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 1 Aug 2014 21:24:17 +0000 Subject: Simplify man(7) validation: Drop pre-handlers, they were almost unused. Drop the needless complexity of allowing more than one post-handler. This saves one internal interface function, one static function, one private struct definition, sixteen static arrays, and 45 lines of code. No functional change. --- libman.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libman.h') diff --git a/libman.h b/libman.h index 61bd1a64..e852927c 100644 --- a/libman.h +++ b/libman.h @@ -1,4 +1,4 @@ -/* $Id: libman.h,v 1.62 2014/08/01 17:40:34 schwarze Exp $ */ +/* $Id: libman.h,v 1.63 2014/08/01 21:24:17 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * @@ -70,7 +70,6 @@ void man_hash_init(void); enum mant man_hash_find(const char *); int man_macroend(struct man *); int man_valid_post(struct man *); -int man_valid_pre(struct man *, struct man_node *); int man_unscope(struct man *, const struct man_node *); __END_DECLS -- cgit v1.2.3