diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2020-01-19 16:44:50 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2020-01-19 16:44:50 +0000 |
commit | 66e8f935f05d1018898cee9e0c4ad713fc6b8673 (patch) | |
tree | 0e589a7384a81e59e9bb291c205fd9582ad8fd84 /mandoc.h | |
parent | 8e1caa4a243aa8682d2c7d4fb644be63c055bb5d (diff) | |
download | mandoc-66e8f935f05d1018898cee9e0c4ad713fc6b8673.tar.gz mandoc-66e8f935f05d1018898cee9e0c4ad713fc6b8673.tar.zst mandoc-66e8f935f05d1018898cee9e0c4ad713fc6b8673.zip |
Align to the new, sane behaviour of the groff_mdoc(7) .Dd macro:
without an argument, use the empty string, and always concatenate
all arguments, no matter their number.
This allows reducing the number of arguments of mandoc_normdate()
and some other simplifications, at the same time polishing some
error messages by adding the name of the macro in question.
Diffstat (limited to 'mandoc.h')
-rw-r--r-- | mandoc.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ -/* $Id: mandoc.h,v 1.264 2019/07/14 18:16:13 schwarze Exp $ */ +/* $Id: mandoc.h,v 1.265 2020/01/19 16:44:50 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> - * Copyright (c) 2012-2019 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2012-2020 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 @@ -83,7 +83,7 @@ enum mandocerr { MANDOCERR_TH_NOTITLE, /* missing manual title, using "": [macro] */ MANDOCERR_MSEC_MISSING, /* missing manual section, using "": macro */ MANDOCERR_MSEC_BAD, /* unknown manual section: Dt ... section */ - MANDOCERR_DATE_MISSING, /* missing date, using today's date */ + MANDOCERR_DATE_MISSING, /* missing date, using "": [macro] */ MANDOCERR_DATE_BAD, /* cannot parse date, using it verbatim: date */ MANDOCERR_DATE_FUTURE, /* date in the future, using it anyway: date */ MANDOCERR_OS_MISSING, /* missing Os macro, using "" */ |