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

Diff for /mandoc/Attic/mdocml.c between version 1.29 and 1.34

version 1.29, 2008/12/29 19:25:29 version 1.34, 2009/01/05 16:11:14
Line 205  print_node(const struct mdoc_node *n, int indent)
Line 205  print_node(const struct mdoc_node *n, int indent)
         case (MDOC_HEAD):          case (MDOC_HEAD):
                 p = mdoc_macronames[n->data.head.tok];                  p = mdoc_macronames[n->data.head.tok];
                 t = "block-head";                  t = "block-head";
                 params = n->data.head.args;  
                 sz = n->data.head.sz;  
                 break;                  break;
           case (MDOC_TAIL):
                   p = mdoc_macronames[n->data.tail.tok];
                   t = "block-tail";
                   break;
         case (MDOC_ELEM):          case (MDOC_ELEM):
                 assert(NULL == n->child);  
                 p = mdoc_macronames[n->data.elem.tok];                  p = mdoc_macronames[n->data.elem.tok];
                 t = "element";                  t = "element";
                 argv = n->data.elem.argv;                  argv = n->data.elem.argv;
Line 400  msg_err(void *arg, int tok, int col, enum mdoc_err typ
Line 401  msg_err(void *arg, int tok, int col, enum mdoc_err typ
         case (ERR_SYNTAX_ARGMANY):          case (ERR_SYNTAX_ARGMANY):
                 lit = "syntax: too many values for macro argument";                  lit = "syntax: too many values for macro argument";
                 break;                  break;
           case (ERR_SYNTAX_CHILDHEAD):
                   lit = "syntax: expected only block-header section";
                   break;
           case (ERR_SYNTAX_CHILDBODY):
                   lit = "syntax: expected only a block-body section";
                   break;
           case (ERR_SYNTAX_EMPTYHEAD):
                   lit = "syntax: block-header section may not be empty";
                   break;
           case (ERR_SYNTAX_EMPTYBODY):
                   lit = "syntax: block-body section may not be empty";
                   break;
         default:          default:
                 abort();                  abort();
                 /* NOTREACHED */                  /* NOTREACHED */
Line 488  msg_warn(void *arg, int tok, int col, enum mdoc_warn t
Line 501  msg_warn(void *arg, int tok, int col, enum mdoc_warn t
         case (WARN_SYNTAX_ARGLIKE):          case (WARN_SYNTAX_ARGLIKE):
                 lit = "syntax: argument-like value";                  lit = "syntax: argument-like value";
                 break;                  break;
           case (WARN_SYNTAX_EMPTYBODY):
                   lit = "syntax: empty block-body section";
                   break;
         case (WARN_SEC_OO):          case (WARN_SEC_OO):
                 lit = "section is out of conventional order";                  lit = "section is out of conventional order";
                 break;                  break;
Line 499  msg_warn(void *arg, int tok, int col, enum mdoc_warn t
Line 515  msg_warn(void *arg, int tok, int col, enum mdoc_warn t
                 break;                  break;
         case (WARN_IGN_AFTER_BLK):          case (WARN_IGN_AFTER_BLK):
                 fmt = "ignore: macro `%s' ignored after block macro";                  fmt = "ignore: macro `%s' ignored after block macro";
                   break;
           case (WARN_IGN_OBSOLETE):
                   fmt = "ignore: macro `%s' is obsolete";
                 break;                  break;
         case (WARN_IGN_BEFORE_BLK):          case (WARN_IGN_BEFORE_BLK):
                 fmt = "ignore: macro before block macro `%s' ignored";                  fmt = "ignore: macro before block macro `%s' ignored";

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.34

CVSweb