diff options
author | bapt <bapt@FreeBSD.org> | 2014-12-02 23:24:57 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-12-02 23:24:57 +0000 |
commit | 919f2a28755126f55b458d6553ac5e10b76203b3 (patch) | |
tree | 6b285eca5de51692bcaade66a629a2b84eadb8c7 /contrib/mdocml/tbl_opts.c | |
parent | d24ff3fdf2f10c9b05c568b96812b7560b5c652a (diff) | |
parent | e00686f8f18c8c3eb3a800468a031699ed0bbc8f (diff) | |
download | FreeBSD-src-919f2a28755126f55b458d6553ac5e10b76203b3.zip FreeBSD-src-919f2a28755126f55b458d6553ac5e10b76203b3.tar.gz |
Update to mandoc cvs version as of 20141201
- Compatiblity with existing manpages has been improved
- Now support ".so" directive with compressed manpages (which fixes a regression
we have since we have new man(1))
Diffstat (limited to 'contrib/mdocml/tbl_opts.c')
-rw-r--r-- | contrib/mdocml/tbl_opts.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/mdocml/tbl_opts.c b/contrib/mdocml/tbl_opts.c index ae4df4a..d5ad42f 100644 --- a/contrib/mdocml/tbl_opts.c +++ b/contrib/mdocml/tbl_opts.c @@ -1,4 +1,4 @@ -/* $Id: tbl_opts.c,v 1.13 2014/04/20 16:46:05 schwarze Exp $ */ +/* $Id: tbl_opts.c,v 1.15 2014/11/26 17:51:55 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -14,9 +14,9 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif + +#include <sys/types.h> #include <ctype.h> #include <stdio.h> @@ -182,7 +182,7 @@ again: /* * * options ::= option_list [:space:]* [;][\n] * option_list ::= option option_tail - * option_tail ::= [:space:]+ option_list | + * option_tail ::= [,:space:]+ option_list | * ::= epsilon * option ::= [:alpha:]+ args * args ::= [:space:]* [(] [:alpha:]+ [)] @@ -213,7 +213,7 @@ again: /* buf[i] = '\0'; - while (isspace((unsigned char)p[*pos])) + while (isspace((unsigned char)p[*pos]) || p[*pos] == ',') (*pos)++; /* |