[BACK]Return to tag.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/tag.c between version 1.2 and 1.3

version 1.2, 2015/07/18 03:40:51 version 1.3, 2015/07/21 03:26:02
Line 48 
Line 48 
  * where various marked-up terms are documented and create   * where various marked-up terms are documented and create
  * the temporary tags file, saving the name for the pager.   * the temporary tags file, saving the name for the pager.
  */   */
 void  char *
 tag_init(void)  tag_init(void)
 {  {
         struct ohash_info        tag_info;          struct ohash_info        tag_info;
Line 60 
Line 60 
         if ((tag_fd = mkstemp(tag_fn)) == -1) {          if ((tag_fd = mkstemp(tag_fn)) == -1) {
                 free(tag_fn);                  free(tag_fn);
                 tag_fn = NULL;                  tag_fn = NULL;
                 return;                  return(NULL);
         }          }
   
         tag_info.alloc = tag_alloc;          tag_info.alloc = tag_alloc;
Line 69 
Line 69 
         tag_info.key_offset = offsetof(struct tag_entry, s);          tag_info.key_offset = offsetof(struct tag_entry, s);
         tag_info.data = NULL;          tag_info.data = NULL;
         ohash_init(&tag_data, 4, &tag_info);          ohash_init(&tag_data, 4, &tag_info);
 }  
   
 char *  
 tag_filename(void)  
 {  
   
         return(tag_fn);          return(tag_fn);
 }  }
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3