aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-01-20 10:37:15 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-01-20 10:37:15 +0000
commit3127746e1c5864e767914a2fbeaf4564be79e2c8 (patch)
tree7dbabb7d3a52079ddbb213926efae06a13934afa /main.c
parent23f80e14e78282088dabbf1cfe358c07030dc9e7 (diff)
downloadmandoc-3127746e1c5864e767914a2fbeaf4564be79e2c8.tar.gz
mandoc-3127746e1c5864e767914a2fbeaf4564be79e2c8.tar.zst
mandoc-3127746e1c5864e767914a2fbeaf4564be79e2c8.zip
Make the code more readable by introducing
symbolic constants for tagging priorities. This review also made me find a minor bug: do not upgrade TAG_FALLBACK to TAG_WEAK when there is trailing whitespace.
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 6cc712a2..61fee88f 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.340 2019/07/28 19:41:21 schwarze Exp $ */
+/* $Id: main.c,v 1.341 2020/01/20 10:37:15 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2012, 2014-2019 Ingo Schwarze <schwarze@openbsd.org>
@@ -32,6 +32,7 @@
#include <errno.h>
#include <fcntl.h>
#include <glob.h>
+#include <limits.h>
#if HAVE_SANDBOX_INIT
#include <sandbox.h>
#endif