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

Diff for /mandoc/Attic/mdoc_action.c between version 1.14 and 1.18

version 1.14, 2009/06/17 14:08:47 version 1.18, 2009/06/22 12:04:05
Line 614  post_bl_width(struct mdoc *m)
Line 614  post_bl_width(struct mdoc *m)
          */           */
   
         if (0 == strcmp(p, "Ds"))          if (0 == strcmp(p, "Ds"))
                 width = 8;                  width = 6;
         else if (MDOC_MAX == (tok = mdoc_hash_find(m->htab, p)))          else if (MDOC_MAX == (tok = mdoc_hash_find(m->htab, p)))
                 return(1);                  return(1);
         else if (0 == (width = mdoc_macro2len(tok)))          else if (0 == (width = mdoc_macro2len(tok)))
Line 663  post_bl_head(POST_ARGS)
Line 663  post_bl_head(POST_ARGS)
          * column field.  Then, delete the head children.           * column field.  Then, delete the head children.
          */           */
   
         for (i = 0, nn = m->last->child; nn; nn = nn->next, i++)          n->args->argv[c].sz = (size_t)m->last->nchild;
                 /* Count children. */;          n->args->argv[c].value = malloc
                   ((size_t)m->last->nchild * sizeof(char *));
   
         n->args->argv[c].sz = i;  
         n->args->argv[c].value = malloc(i * sizeof(char *));  
   
         for (i = 0, nn = m->last->child; nn; i++) {          for (i = 0, nn = m->last->child; nn; i++) {
                 n->args->argv[c].value[i] = nn->string;                  n->args->argv[c].value[i] = nn->string;
                 nn->string = NULL;                  nn->string = NULL;
Line 677  post_bl_head(POST_ARGS)
Line 675  post_bl_head(POST_ARGS)
                 mdoc_node_free(nnp);                  mdoc_node_free(nnp);
         }          }
   
           m->last->nchild = 0;
         m->last->child = NULL;          m->last->child = NULL;
   
         return(1);          return(1);
 }  }
   
Line 819  static int
Line 819  static int
 pre_dl(PRE_ARGS)  pre_dl(PRE_ARGS)
 {  {
   
         if (MDOC_BODY != n->type)          if (MDOC_BODY == n->type)
                 return(1);                  m->flags |= MDOC_LITERAL;
         m->flags |= MDOC_LITERAL;  
         return(1);          return(1);
 }  }
   

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.18

CVSweb