X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/4062479d6729bdfb0de4954e7a413ca3282d17cd..da6633e8c5db9f71ef2499ad46bc43e3854c2ac9:/man_macro.c diff --git a/man_macro.c b/man_macro.c index 40033a66..80938c66 100644 --- a/man_macro.c +++ b/man_macro.c @@ -1,4 +1,4 @@ -/* $Id: man_macro.c,v 1.146 2022/04/13 14:45:50 schwarze Exp $ */ +/* $Id: man_macro.c,v 1.148 2022/04/27 17:11:24 schwarze Exp $ */ /* * Copyright (c) 2012-2015,2017-2020,2022 Ingo Schwarze * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons @@ -26,6 +26,9 @@ #include #include +#if DEBUG_MEMORY +#include "mandoc_dbg.h" +#endif #include "mandoc.h" #include "roff.h" #include "man.h" @@ -65,10 +68,10 @@ static const struct man_macro man_macros[MAN_MAX - MAN_TH] = { { in_line_eoln, 0 }, /* RI */ { blk_close, MAN_XSCOPE }, /* RE */ { blk_exp, MAN_XSCOPE }, /* RS */ - { in_line_eoln, 0 }, /* DT */ - { in_line_eoln, 0 }, /* UC */ + { in_line_eoln, MAN_NSCOPED }, /* DT */ + { in_line_eoln, MAN_NSCOPED }, /* UC */ { in_line_eoln, MAN_NSCOPED }, /* PD */ - { in_line_eoln, 0 }, /* AT */ + { in_line_eoln, MAN_NSCOPED }, /* AT */ { in_line_eoln, MAN_NSCOPED }, /* in */ { blk_imp, MAN_XSCOPE }, /* SY */ { blk_close, MAN_XSCOPE }, /* YS */ @@ -394,6 +397,11 @@ in_line_eoln(MACRO_PROT_ARGS) else if (tok == MAN_EE) man->flags &= ~ROFF_NOFILL; +#if DEBUG_MEMORY + if (tok == MAN_TH) + mandoc_dbg_name(buf); +#endif + for (;;) { if (buf[*pos] != '\0' && man->last != n && tok == MAN_PD) { mandoc_msg(MANDOCERR_ARG_EXCESS, line, *pos,