X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/3eb76f71370947ddae91dff62bf536fcb0ba2020..d698ff9124845b3e4cbfdf6e55f180724b9c0d80:/mdoc.c diff --git a/mdoc.c b/mdoc.c index 44c21846..67cf61f0 100644 --- a/mdoc.c +++ b/mdoc.c @@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.91 2009/07/15 15:36:38 kristaps Exp $ */ +/* $Id: mdoc.c,v 1.95 2009/07/20 14:09:38 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -25,8 +25,6 @@ const char *const __mdoc_merrnames[MERRMAX] = { "trailing whitespace", /* ETAILWS */ - "empty last list column", /* ECOLEMPTY */ - "argument-like parameter", /* EARGVPARM */ "unexpected quoted parameter", /* EQUOTPARM */ "unterminated quoted parameter", /* EQUOTTERM */ "system: malloc error", /* EMALLOC */ @@ -117,7 +115,7 @@ const char *const __mdoc_macronames[MDOC_MAX] = { /* LINTED */ "Brc", "\%C", "Es", "En", /* LINTED */ - "Dx", "\%Q" + "Dx", "\%Q", "br", "sp" }; const char *const __mdoc_argnames[MDOC_ARG_MAX] = { @@ -147,6 +145,10 @@ static int macrowarn(struct mdoc *, int, const char *); static int pstring(struct mdoc *, int, int, const char *, size_t); +#ifdef __linux__ +extern size_t strlcpy(char *, const char *, size_t); +#endif + const struct mdoc_node * mdoc_node(const struct mdoc *m)