=================================================================== RCS file: /cvs/mandoc/man.c,v retrieving revision 1.80 retrieving revision 1.85 diff -u -p -r1.80 -r1.85 --- mandoc/man.c 2010/06/27 16:18:13 1.80 +++ mandoc/man.c 2010/08/07 20:57:33 1.85 @@ -1,6 +1,6 @@ -/* $Id: man.c,v 1.80 2010/06/27 16:18:13 kristaps Exp $ */ +/* $Id: man.c,v 1.85 2010/08/07 20:57:33 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 @@ -21,14 +21,12 @@ #include #include -#include #include #include #include #include #include "mandoc.h" -#include "regs.h" #include "libman.h" #include "libmandoc.h" @@ -42,6 +40,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; @@ -410,7 +409,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: @@ -483,20 +482,11 @@ man_pmacro(struct man *m, int ln, char *buf, int offs) /* Copy the first word into a nil-terminated buffer. */ - for (j = 0; j < 4; j++, i++) { + for (j = 0; j < 4; j++, i++) if ('\0' == (mac[j] = buf[i])) break; else if (' ' == buf[i]) break; - - /* Check for invalid characters. */ - - if (isgraph((u_char)buf[i])) - continue; - if ( ! man_pmsg(m, ln, i, MANDOCERR_BADCHAR)) - return(0); - i--; - } mac[j] = '\0';