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 | 1849b727a60f67043a27dc863e3f90e2dbb84dfe (patch) | |
tree | a125523ca4600295cc5a94e8ca0582a1d871427f /roff_int.h | |
parent | d75c48416eef7eb48487f6dc9a1bafa2c262b81c (diff) | |
download | mandoc-1849b727a60f67043a27dc863e3f90e2dbb84dfe.tar.gz mandoc-1849b727a60f67043a27dc863e3f90e2dbb84dfe.tar.zst mandoc-1849b727a60f67043a27dc863e3f90e2dbb84dfe.zip |
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: roff_int.h,v 1.16 2019/01/05 00:36:50 schwarze Exp $ */ +/* $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. */ }; |