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

Diff for /mandoc/man.c between version 1.141 and 1.142

version 1.141, 2014/10/20 15:50:24 version 1.142, 2014/11/03 23:18:39
Line 315  man_word_alloc(struct man *man, int line, int pos, con
Line 315  man_word_alloc(struct man *man, int line, int pos, con
         return(1);          return(1);
 }  }
   
   void
   man_word_append(struct man *man, const char *word)
   {
           struct man_node *n;
           char            *addstr, *newstr;
   
           n = man->last;
           addstr = roff_strdup(man->roff, word);
           mandoc_asprintf(&newstr, "%s %s", n->string, addstr);
           free(addstr);
           free(n->string);
           n->string = newstr;
           man->next = MAN_NEXT_SIBLING;
   }
   
 /*  /*
  * Free all of the resources held by a node.  This does NOT unlink a   * Free all of the resources held by a node.  This does NOT unlink a
  * node from its context; for that, see man_node_unlink().   * node from its context; for that, see man_node_unlink().

Legend:
Removed from v.1.141  
changed lines
  Added in v.1.142

CVSweb