diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2020-01-20 10:37:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2020-01-20 10:37:15 +0000 |
commit | 3127746e1c5864e767914a2fbeaf4564be79e2c8 (patch) | |
tree | 7dbabb7d3a52079ddbb213926efae06a13934afa /main.c | |
parent | 23f80e14e78282088dabbf1cfe358c07030dc9e7 (diff) | |
download | mandoc-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |