X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/dc649a73f967c1a61e60d2495f16d56db82eac57..7dafcd45448dcfc60d787b6b2c65402de8655dfe:/man.c diff --git a/man.c b/man.c index 0bdff790..b35d7e07 100644 --- a/man.c +++ b/man.c @@ -1,6 +1,6 @@ -/* $Id: man.c,v 1.79 2010/06/27 15:52:41 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 @@ -28,7 +28,6 @@ #include #include "mandoc.h" -#include "regs.h" #include "libman.h" #include "libmandoc.h" @@ -42,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; @@ -95,8 +95,8 @@ man_free(struct man *man) struct man * -man_alloc(const struct regset *regs, - void *data, int pflags, mandocmsg msg) +man_alloc(struct regset *regs, void *data, + int pflags, mandocmsg msg) { struct man *p; @@ -410,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: