"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mdoc.c" between
mdocml-1.14.1rc1.tar.gz and mdocml-1.14.1rc2.tar.gz

About: mdocml is a suite of tools compiling "-mdoc", the roff macro package of choice for BSD manual pages, and "-man", the predominant historical package for UNIX manuals. Hint: The installed binary name is "mandoc". Release candidate.

mdoc.c  (mdocml-1.14.1rc1):mdoc.c  (mdocml-1.14.1rc2)
/* $Id: mdoc.c,v 1.259 2017/01/28 23:30:08 schwarze Exp $ */ /* $Id: mdoc.c,v 1.260 2017/02/16 03:00:23 schwarze Exp $ */
/* /*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012-2017 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2010, 2012-2017 Ingo Schwarze <schwarze@openbsd.org>
* *
* Permission to use, copy, modify, and distribute this software for any * Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above * purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies. * copyright notice and this permission notice appear in all copies.
* *
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
skipping to change at line 138 skipping to change at line 138
{ {
struct roff_node *p; struct roff_node *p;
p = roff_node_alloc(mdoc, line, pos, ROFFT_TAIL, tok); p = roff_node_alloc(mdoc, line, pos, ROFFT_TAIL, tok);
roff_node_append(mdoc, p); roff_node_append(mdoc, p);
mdoc->next = ROFF_NEXT_CHILD; mdoc->next = ROFF_NEXT_CHILD;
} }
struct roff_node * struct roff_node *
mdoc_endbody_alloc(struct roff_man *mdoc, int line, int pos, int tok, mdoc_endbody_alloc(struct roff_man *mdoc, int line, int pos, int tok,
struct roff_node *body, enum mdoc_endbody end) struct roff_node *body)
{ {
struct roff_node *p; struct roff_node *p;
body->flags |= NODE_ENDED; body->flags |= NODE_ENDED;
body->parent->flags |= NODE_ENDED; body->parent->flags |= NODE_ENDED;
p = roff_node_alloc(mdoc, line, pos, ROFFT_BODY, tok); p = roff_node_alloc(mdoc, line, pos, ROFFT_BODY, tok);
p->body = body; p->body = body;
p->norm = body->norm; p->norm = body->norm;
p->end = end; p->end = ENDBODY_SPACE;
roff_node_append(mdoc, p); roff_node_append(mdoc, p);
mdoc->next = ROFF_NEXT_SIBLING; mdoc->next = ROFF_NEXT_SIBLING;
return p; return p;
} }
struct roff_node * struct roff_node *
mdoc_block_alloc(struct roff_man *mdoc, int line, int pos, mdoc_block_alloc(struct roff_man *mdoc, int line, int pos,
int tok, struct mdoc_arg *args) int tok, struct mdoc_arg *args)
{ {
struct roff_node *p; struct roff_node *p;
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS