[BACK]Return to mandoc_msg.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mandoc_msg.c between version 1.1 and 1.3

version 1.1, 2018/12/14 01:18:26 version 1.3, 2018/12/15 19:30:26
Line 167  static const char *const type_message[MANDOCERR_MAX] =
Line 167  static const char *const type_message[MANDOCERR_MAX] =
         "tab in filled text",          "tab in filled text",
         "new sentence, new line",          "new sentence, new line",
         "invalid escape sequence",          "invalid escape sequence",
           "undefined escape, printing literally",
         "undefined string, using \"\"",          "undefined string, using \"\"",
   
         /* related to tables */          /* related to tables */
Line 228  static const char *const type_message[MANDOCERR_MAX] =
Line 229  static const char *const type_message[MANDOCERR_MAX] =
         "unsupported feature",          "unsupported feature",
         "input too large",          "input too large",
         "unsupported control character",          "unsupported control character",
           "unsupported escape sequence",
         "unsupported roff request",          "unsupported roff request",
         "nested .while loops",          "nested .while loops",
         "end of scope with open .while loop",          "end of scope with open .while loop",
Line 288  mandoc_msg_setrc(enum mandoclevel level)
Line 290  mandoc_msg_setrc(enum mandoclevel level)
 }  }
   
 void  void
 mandoc_vmsg(enum mandocerr t, void *dummy, int line, int col,  mandoc_msg(enum mandocerr t, int line, int col, const char *fmt, ...)
     const char *fmt, ...)  
 {  {
         va_list                  ap;          va_list                  ap;
         enum mandoclevel         level;          enum mandoclevel         level;
Line 323  mandoc_vmsg(enum mandocerr t, void *dummy, int line, i
Line 324  mandoc_vmsg(enum mandocerr t, void *dummy, int line, i
                 va_end(ap);                  va_end(ap);
         }          }
         fputc('\n', fileptr);          fputc('\n', fileptr);
 }  
   
 void  
 mandoc_msg(enum mandocerr t, void *dummy, int line, int col, const char *msg)  
 {  
         if (msg == NULL)  
                 mandoc_vmsg(t, dummy, line, col, NULL);  
         else  
                 mandoc_vmsg(t, dummy, line, col, "%s", msg);  
 }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

CVSweb