X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/d43a3b25e58b22f878cf000f42454792b509cd9d..ce544e49846f76fd73e8414d407d555f2a0af880:/man.c diff --git a/man.c b/man.c index 4270a57e..b35d7e07 100644 --- a/man.c +++ b/man.c @@ -1,6 +1,6 @@ -/* $Id: man.c,v 1.75 2010/05/26 14:03:54 kristaps Exp $ */ +/* $Id: man.c,v 1.84 2010/07/22 23:03:15 kristaps Exp $ */ /* - * Copyright (c) 2008, 2009 Kristaps Dzonsons + * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -41,6 +41,7 @@ const char *const __man_macronames[MAN_MAX] = { "nf", "fi", "r", "RE", "RS", "DT", "UC", "PD", "Sp", "Vb", "Ve", "AT", + "in" }; const char * const *man_macronames = __man_macronames; @@ -94,7 +95,8 @@ man_free(struct man *man) struct man * -man_alloc(void *data, int pflags, mandocmsg msg) +man_alloc(struct regset *regs, void *data, + int pflags, mandocmsg msg) { struct man *p; @@ -104,6 +106,7 @@ man_alloc(void *data, int pflags, mandocmsg msg) p->data = data; p->pflags = pflags; p->msg = msg; + p->regs = regs; man_alloc1(p); return(p); @@ -407,7 +410,7 @@ man_ptext(struct man *m, int line, char *buf, int offs) */ assert(i); - if (mandoc_eos(buf, (size_t)i)) + if (mandoc_eos(buf, (size_t)i, 0)) m->last->flags |= MAN_EOS; descope: