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

Diff for /docbook2mdoc/statistics.c between version 1.24 and 1.25

version 1.24, 2019/04/14 14:00:17 version 1.25, 2019/04/14 14:59:37
Line 46 
Line 46 
  *   *
  * Example usage:   * Example usage:
  * statistics tgroup colspec < filenames.txt | grep colspec   * statistics tgroup colspec < filenames.txt | grep colspec
    *
    * Synchronized with parse.c up to rev. 1.42.
  */   */
   
 struct entry {  struct entry {
Line 304  parse_file(int fd, char *fname)
Line 306  parse_file(int fd, char *fname)
                                             stack[stacki - 1] : "ROOT",                                              stack[stacki - 1] : "ROOT",
                                             b + poff);                                              b + poff);
                                         stack_push(b + poff);                                          stack_push(b + poff);
                                           if (strcmp(b + poff, "sbr") == 0)
                                                   elem_end = 1;
                                 }                                  }
                                 if (elem_end)                                  if (elem_end)
                                         stack_pop(b + poff);                                          stack_pop(b + poff);
Line 314  parse_file(int fd, char *fname)
Line 318  parse_file(int fd, char *fname)
                         }                          }
                 }                  }
                 assert(poff > 0);                  assert(poff > 0);
                 memmove(b, b + poff, rlen - poff);  
                 rlen -= poff;                  rlen -= poff;
                   memmove(b, b + poff, rlen);
         }          }
         if (rsz < 0)          if (rsz < 0)
                 perror(fname);                  perror(fname);

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

CVSweb