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

Diff for /mandoc/mandocdb.c between version 1.121 and 1.122

version 1.121, 2014/03/23 12:26:58 version 1.122, 2014/03/23 12:44:56
Line 1506  parse_mdoc_Xr(struct mpage *mpage, const struct mdoc_n
Line 1506  parse_mdoc_Xr(struct mpage *mpage, const struct mdoc_n
 static int  static int
 parse_mdoc_Nd(struct mpage *mpage, const struct mdoc_node *n)  parse_mdoc_Nd(struct mpage *mpage, const struct mdoc_node *n)
 {  {
         size_t           sz;  
   
         if (MDOC_BODY != n->type)          if (MDOC_BODY == n->type)
                 return(0);                  mdoc_deroff(&mpage->desc, n);
           return(0);
         /*  
          * Special-case the `Nd' because we need to put the description  
          * into the document table.  
          */  
   
         for (n = n->child; NULL != n; n = n->next) {  
                 if (MDOC_TEXT == n->type) {  
                         if (NULL != mpage->desc) {  
                                 sz = strlen(mpage->desc) +  
                                      strlen(n->string) + 2;  
                                 mpage->desc = mandoc_realloc(  
                                     mpage->desc, sz);  
                                 strlcat(mpage->desc, " ", sz);  
                                 strlcat(mpage->desc, n->string, sz);  
                         } else  
                                 mpage->desc = mandoc_strdup(n->string);  
                 }  
                 if (NULL != n->child)  
                         parse_mdoc_Nd(mpage, n);  
         }  
         return(1);  
 }  }
   
 static int  static int

Legend:
Removed from v.1.121  
changed lines
  Added in v.1.122

CVSweb