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

Diff for /mandoc/tree.c between version 1.47 and 1.49

version 1.47, 2011/09/18 14:14:15 version 1.49, 2013/09/15 17:33:57
Line 58  print_mdoc(const struct mdoc_node *n, int indent)
Line 58  print_mdoc(const struct mdoc_node *n, int indent)
 {  {
         const char       *p, *t;          const char       *p, *t;
         int               i, j;          int               i, j;
         size_t            argc, sz;          size_t            argc;
         char            **params;  
         struct mdoc_argv *argv;          struct mdoc_argv *argv;
   
         argv = NULL;          argv = NULL;
         argc = sz = 0;          argc = 0;
         params = NULL;  
         t = p = NULL;          t = p = NULL;
   
         switch (n->type) {          switch (n->type) {
Line 161  print_mdoc(const struct mdoc_node *n, int indent)
Line 159  print_mdoc(const struct mdoc_node *n, int indent)
                         if (argv[i].sz > 0)                          if (argv[i].sz > 0)
                                 printf(" ]");                                  printf(" ]");
                 }                  }
   
                 for (i = 0; i < (int)sz; i++)  
                         printf(" [%s]", params[i]);  
   
                 printf(" %d:%d\n", n->line, n->pos);                  putchar(' ');
                   if (MDOC_LINE & n->flags)
                           putchar('*');
                   printf("%d:%d\n", n->line, n->pos);
         }          }
   
         if (n->child)          if (n->child)

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.49

CVSweb