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

Diff for /mandoc/Attic/mdocml.c between version 1.26 and 1.32

version 1.26, 2008/12/28 21:25:09 version 1.32, 2009/01/03 18:38:39
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_ELEM):          case (MDOC_ELEM):
                 assert(NULL == n->child);                  assert(NULL == n->child);
Line 339  msg_err(void *arg, int tok, int col, enum mdoc_err typ
Line 337  msg_err(void *arg, int tok, int col, enum mdoc_err typ
         case (ERR_SYNTAX_ARGFORM):          case (ERR_SYNTAX_ARGFORM):
                 fmt = "syntax: macro `%s' arguments malformed";                  fmt = "syntax: macro `%s' arguments malformed";
                 break;                  break;
           case (ERR_SYNTAX_NOPUNCT):
                   fmt = "syntax: macro `%s' doesn't understand punctuation";
                   break;
         case (ERR_SYNTAX_ARG):          case (ERR_SYNTAX_ARG):
                 fmt = "syntax: unknown argument for macro `%s'";                  fmt = "syntax: unknown argument for macro `%s'";
                 break;                  break;
Line 364  msg_err(void *arg, int tok, int col, enum mdoc_err typ
Line 365  msg_err(void *arg, int tok, int col, enum mdoc_err typ
         case (ERR_SEC_NPROLOGUE):          case (ERR_SEC_NPROLOGUE):
                 fmt = "macro `%s' called outside of prologue";                  fmt = "macro `%s' called outside of prologue";
                 break;                  break;
           case (ERR_ARGS_EQ0):
                   fmt = "macro `%s' expects zero arguments";
                   break;
           case (ERR_ARGS_EQ1):
                   fmt = "macro `%s' expects one argument";
                   break;
         case (ERR_ARGS_GE1):          case (ERR_ARGS_GE1):
                 fmt = "macro `%s' expects one or more arguments";                  fmt = "macro `%s' expects one or more arguments";
                 break;                  break;
           case (ERR_ARGS_LE2):
                   fmt = "macro `%s' expects two or fewer arguments";
                   break;
         case (ERR_ARGS_MANY):          case (ERR_ARGS_MANY):
                 fmt = "macro `%s' has too many arguments";                  fmt = "macro `%s' has too many arguments";
                 break;                  break;
Line 388  msg_err(void *arg, int tok, int col, enum mdoc_err typ
Line 398  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 476  msg_warn(void *arg, int tok, int col, enum mdoc_warn t
Line 498  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 488  msg_warn(void *arg, int tok, int col, enum mdoc_warn t
Line 513  msg_warn(void *arg, int tok, int col, enum mdoc_warn t
         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;                  break;
           case (WARN_IGN_OBSOLETE):
                   fmt = "ignore: macro `%s' is obsolete";
                   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";
                   break;
           case (WARN_COMPAT_TROFF):
                   fmt = "compat: macro `%s' behaves differently in troff and nroff";
                 break;                  break;
         default:          default:
                 abort();                  abort();

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.32

CVSweb