diff options
author | 2014-11-28 18:36:35 +0000 | |
---|---|---|
committer | 2014-11-28 18:36:35 +0000 | |
commit | 560696ce92cca612e78e0d8b5b367f419a60eed2 (patch) | |
tree | d44cf029f5227119a85c0f43df67de0f73b99cbb /mdoc_validate.c | |
parent | f65d8fa10a5663d103fcbcfb782054aac63efd23 (diff) | |
download | mandoc-560696ce92cca612e78e0d8b5b367f419a60eed2.tar.gz mandoc-560696ce92cca612e78e0d8b5b367f419a60eed2.tar.zst mandoc-560696ce92cca612e78e0d8b5b367f419a60eed2.zip |
Retire support for CSRG supplementary document titles. These are
long obsolete and were never written in mdoc(7) in the first place.
Removes 100 lines from source files.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 72696041..5a07af3e 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.261 2014/11/28 18:09:01 schwarze Exp $ */ +/* $Id: mdoc_validate.c,v 1.262 2014/11/28 18:36:35 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> @@ -2280,19 +2280,9 @@ post_dt(POST_ARGS) mdoc->meta.msec = mandoc_strdup(nn->string); } - if (NULL == (nn = nn->next)) - goto out; - - /* - * If the third argument is a volume name, format is, - * otherwise assume it's an architecture. - */ + /* Handle an optional architecture */ - cp = mdoc_a2vol(nn->string); - if (cp) { - free(mdoc->meta.vol); - mdoc->meta.vol = mandoc_strdup(cp); - } else { + if ((nn = nn->next) != NULL) { for (p = nn->string; *p; p++) *p = tolower((unsigned char)*p); mdoc->meta.arch = mandoc_strdup(nn->string); |