]> git.cameronkatri.com Git - mandoc.git/blobdiff - mandoc_msg.c
Since resetting of offsets works quite differently in man(7) and mdoc(7),
[mandoc.git] / mandoc_msg.c
index d2ccb91f294a1addf77694208bb4d3020263ad75..4c4fabb9d0dc42695ca740819b558d1ad994ec88 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD$ */
+/*     $Id: mandoc_msg.c,v 1.5 2019/01/10 06:29:00 schwarze Exp $ */
 /*
  * Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2014,2015,2016,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -167,6 +167,7 @@ static      const char *const type_message[MANDOCERR_MAX] = {
        "tab in filled text",
        "new sentence, new line",
        "invalid escape sequence",
+       "undefined escape, printing literally",
        "undefined string, using \"\"",
 
        /* related to tables */
@@ -228,6 +229,7 @@ static      const char *const type_message[MANDOCERR_MAX] = {
        "unsupported feature",
        "input too large",
        "unsupported control character",
+       "unsupported escape sequence",
        "unsupported roff request",
        "nested .while loops",
        "end of scope with open .while loop",
@@ -238,7 +240,7 @@ static      const char *const type_message[MANDOCERR_MAX] = {
        "ignoring macro in table",
 };
 
-static FILE            *fileptr = stderr;
+static FILE            *fileptr = NULL;
 static const char      *filename = NULL;
 static enum mandocerr   min_type = MANDOCERR_MAX;
 static enum mandoclevel rc = MANDOCLEVEL_OK;