summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/mdoc.c b/mdoc.c
index faf9e82e..c497af5b 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -22,7 +22,6 @@
#include <sys/types.h>
#include <assert.h>
-#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
@@ -781,22 +780,12 @@ mdoc_pmacro(struct mdoc *m, int ln, char *buf, int offs)
* copying when a tab, space, or eoln is encountered.
*/
- 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] || '\t' == buf[i])
break;
- /* Check for invalid characters. */
- /* TODO: remove me, already done in main.c. */
-
- if (isgraph((u_char)buf[i]))
- continue;
- if ( ! mdoc_pmsg(m, ln, i, MANDOCERR_BADCHAR))
- return(0);
- i--;
- }
-
mac[j] = '\0';
if (j == 4 || j < 2) {