-/* $Id: mdoc.c,v 1.54 2009/03/08 12:40:27 kristaps Exp $ */
+/* $Id: mdoc.c,v 1.55 2009/03/08 18:02:36 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
struct mdoc *
-mdoc_alloc(void *data, const struct mdoc_cb *cb)
+mdoc_alloc(void *data, int pflags, const struct mdoc_cb *cb)
{
struct mdoc *p;
p->last = xcalloc(1, sizeof(struct mdoc_node));
p->last->type = MDOC_ROOT;
p->first = p->last;
-
+ p->pflags = pflags;
p->next = MDOC_NEXT_CHILD;
p->htab = mdoc_tokhash_alloc();