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

Diff for /mandoc/dba_read.c between version 1.2 and 1.3

version 1.2, 2016/08/04 09:33:57 version 1.3, 2016/08/17 18:59:37
Line 48  dba_read(const char *fname)
Line 48  dba_read(const char *fname)
         dba = dba_new(npages < 128 ? 128 : npages);          dba = dba_new(npages < 128 ? 128 : npages);
         for (ip = 0; ip < npages; ip++) {          for (ip = 0; ip < npages; ip++) {
                 pdata = dbm_page_get(ip);                  pdata = dbm_page_get(ip);
                 page = dba_page_new(dba->pages, pdata->name, pdata->sect,                  page = dba_page_new(dba->pages, NULL, pdata->sect,
                     pdata->arch, pdata->desc, pdata->file + 1, *pdata->file);                      pdata->arch, pdata->desc, pdata->file + 1, *pdata->file);
                 cp = pdata->name;                  for (cp = pdata->name; *cp != '\0'; cp = strchr(cp, '\0') + 1)
                 while (*(cp = strchr(cp, '\0') + 1) != '\0')  
                         dba_page_add(page, DBP_NAME, cp);                          dba_page_add(page, DBP_NAME, cp);
                 cp = pdata->sect;                  cp = pdata->sect;
                 while (*(cp = strchr(cp, '\0') + 1) != '\0')                  while (*(cp = strchr(cp, '\0') + 1) != '\0')

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

CVSweb