diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2020-04-24 12:02:33 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2020-04-24 12:02:33 +0000 |
commit | 8cb870017a69040560be430c7f7978efa809acb3 (patch) | |
tree | 47f257f67a01e84b2f35c6e70b21c7c6bc3e9de8 /roff_int.h | |
parent | 2258889db3530de027ab40978bb09a8a824e9c5f (diff) | |
download | mandoc-8cb870017a69040560be430c7f7978efa809acb3.tar.gz |
provide a STYLE message when mandoc knows the file name and the extension
disagrees with the section number given in the .Dt or .TH macro;
feature suggested and patch tested by jmc@
Diffstat (limited to 'roff_int.h')
-rw-r--r-- | roff_int.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,7 +1,7 @@ -/* $Id$ */ +/* $OpenBSD: roff_int.h,v 1.16 2019/01/05 00:36:46 schwarze Exp $ */ /* + * Copyright (c) 2013-2015, 2017-2020 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> - * Copyright (c) 2013-2015, 2017-2019 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 @@ -59,6 +59,7 @@ struct roff_man { enum roff_sec lastsec; /* Last section seen. */ enum roff_sec lastnamed; /* Last standard section seen. */ enum roff_next next; /* Where to put the next node. */ + char filesec; /* Section digit in the file name. */ }; |