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

Diff for /mandoc/read.c between version 1.50 and 1.60

version 1.50, 2014/06/20 23:02:31 version 1.60, 2014/07/04 01:50:07
Line 93  static const char * const mandocerrs[MANDOCERR_MAX] = 
Line 93  static const char * const mandocerrs[MANDOCERR_MAX] = 
         "generic warning",          "generic warning",
   
         /* related to the prologue */          /* related to the prologue */
         "no TH macro in document",          "missing .TH macro, using \"unknown 1\"",
         "document title should be all caps",          "lower case character in document title",
         "unknown manual section",          "unknown manual section",
         "unknown manual volume or arch",          "unknown manual volume or arch",
         "date missing, using today's date",          "missing date, using today's date",
         "cannot parse date, using it verbatim",          "cannot parse date, using it verbatim",
         "prologue macros out of order",          "prologue macros out of order",
         "duplicate prologue macro",          "duplicate prologue macro",
         "macro not allowed in prologue",          "incomplete prologue, terminated by",
         "macro not allowed in body",          "skipping prologue macro in body",
   
         /* related to document structure */          /* related to document structure */
         ".so is fragile, better use ln(1)",          ".so is fragile, better use ln(1)",
         "no document body",          "no document body",
         "content before the first section header",          "content before first section header",
         "NAME section must come first",          "first section is not \"NAME\"",
         "bad NAME section contents",          "bad NAME section contents",
         "sections out of conventional order",          "sections out of conventional order",
         "duplicate section name",          "duplicate section title",
         "section header suited to sections 2, 3, and 9 only",          "unexpected section",
   
         /* related to macros and nesting */          /* related to macros and nesting */
         "skipping obsolete macro",          "obsolete macro",
         "skipping paragraph macro",          "skipping paragraph macro",
         "moving paragraph macro out of list",          "moving paragraph macro out of list",
         "skipping no-space macro",          "skipping no-space macro",
         "blocks badly nested",          "blocks badly nested",
         "child violates parent syntax",  
         "nested displays are not portable",          "nested displays are not portable",
         "already in literal mode",          "moving content out of list",
           ".Vt block has child macro",
           "fill mode already enabled, skipping .fi",
           "fill mode already disabled, skipping .nf",
         "line scope broken",          "line scope broken",
   
         /* related to missing macro arguments */          /* related to missing macro arguments */
           "skipping empty request",
           "conditional request controls empty scope",
         "skipping empty macro",          "skipping empty macro",
         "argument count wrong",          "argument count wrong",
         "missing display type",          "missing display type, using -ragged",
         "list type must come first",          "list type is not the first argument",
         "tag lists require a width argument",          "missing -width in -tag list, using 8n",
           "empty head in list item",
           "empty list item",
         "missing font type",          "missing font type",
         "skipping end of block that is not open",          "missing -std argument, adding it",
   
         /* related to bad macro arguments */          /* related to bad macro arguments */
         "skipping argument",          "skipping argument",
Line 153  static const char * const mandocerrs[MANDOCERR_MAX] = 
Line 159  static const char * const mandocerrs[MANDOCERR_MAX] = 
         "bad escape sequence",          "bad escape sequence",
         "unterminated quoted string",          "unterminated quoted string",
   
         /* related to equations */  
         "unexpected literal in equation",  
   
         "generic error",          "generic error",
   
         /* related to equations */          /* related to equations */
Line 179  static const char * const mandocerrs[MANDOCERR_MAX] = 
Line 182  static const char * const mandocerrs[MANDOCERR_MAX] = 
         "skipping bad character",          "skipping bad character",
         "escaped character not allowed in a name",          "escaped character not allowed in a name",
         "manual name not yet set",          "manual name not yet set",
         "skipping text before the first section header",          "skipping text before first section header",
         "skipping unknown macro",          "skipping unknown macro",
         "NOT IMPLEMENTED, please use groff: skipping request",          "NOT IMPLEMENTED, please use groff: skipping request",
         "argument count wrong",          "argument count wrong",
           "skipping invalid content in .Rs block",
         "skipping column outside column list",          "skipping column outside column list",
         "skipping end of block that is not open",          "skipping end of block that is not open",
         "missing end of block",          "missing end of block",
         "scope open on exit",          "scope open on exit",
         "uname(3) system call failed",          "uname(3) system call failed",
         "macro requires line argument(s)",  
         "macro requires body argument(s)",  
         "macro requires argument(s)",  
         "request requires a numeric argument",          "request requires a numeric argument",
         "missing list type",          "missing list type, using -item",
         "line argument(s) will be lost",          "line argument(s) will be lost",
         "body argument(s) will be lost",  
   
         "generic fatal error",          "generic fatal error",
   
Line 206  static const char * const mandocerrs[MANDOCERR_MAX] = 
Line 206  static const char * const mandocerrs[MANDOCERR_MAX] = 
         "child violates parent syntax",          "child violates parent syntax",
         "argument count wrong, violates syntax",          "argument count wrong, violates syntax",
         "NOT IMPLEMENTED: .so with absolute path or \"..\"",          "NOT IMPLEMENTED: .so with absolute path or \"..\"",
           ".so request failed",
         "no document prologue",          "no document prologue",
         "static buffer exhausted",          "static buffer exhausted",
   
         /* system errors */          /* system errors */
         "cannot open file",          NULL,
         "cannot stat file",          "cannot stat file",
         "cannot read file",          "cannot read file",
 };  };
Line 506  rerun:
Line 507  rerun:
                         if (curp->secondary)                          if (curp->secondary)
                                 curp->secondary->sz -= pos + 1;                                  curp->secondary->sz -= pos + 1;
                         mparse_readfd(curp, -1, ln.buf + of);                          mparse_readfd(curp, -1, ln.buf + of);
                         if (MANDOCLEVEL_FATAL <= curp->file_status)                          if (MANDOCLEVEL_FATAL <= curp->file_status) {
                                   mandoc_vmsg(MANDOCERR_SO_FAIL,
                                       curp, curp->line, pos,
                                       ".so %s", ln.buf + of);
                                 break;                                  break;
                           }
                         pos = 0;                          pos = 0;
                         continue;                          continue;
                 default:                  default:

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.60

CVSweb