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

Diff for /mandoc/dbm.c between version 1.5 and 1.7

version 1.5, 2016/10/18 22:27:25 version 1.7, 2019/07/01 22:56:24
Line 151  dbm_page_get(int32_t ip)
Line 151  dbm_page_get(int32_t ip)
         assert(ip < npages);          assert(ip < npages);
         res.name = dbm_get(pages[ip].name);          res.name = dbm_get(pages[ip].name);
         if (res.name == NULL)          if (res.name == NULL)
                 res.name = "(NULL)";                  res.name = "(NULL)\0";
         res.sect = dbm_get(pages[ip].sect);          res.sect = dbm_get(pages[ip].sect);
         if (res.sect == NULL)          if (res.sect == NULL)
                 res.sect = "(NULL)";                  res.sect = "(NULL)\0";
         res.arch = pages[ip].arch ? dbm_get(pages[ip].arch) : NULL;          res.arch = pages[ip].arch ? dbm_get(pages[ip].arch) : NULL;
         res.desc = dbm_get(pages[ip].desc);          res.desc = dbm_get(pages[ip].desc);
         if (res.desc == NULL)          if (res.desc == NULL)
                 res.desc = "(NULL)";                  res.desc = "(NULL)";
         res.file = dbm_get(pages[ip].file);          res.file = dbm_get(pages[ip].file);
         if (res.file == NULL)          if (res.file == NULL)
                 res.file = " (NULL)";                  res.file = " (NULL)\0";
         res.addr = dbm_addr(pages + ip);          res.addr = dbm_addr(pages + ip);
         return &res;          return &res;
 }  }
Line 233  static struct dbm_res
Line 233  static struct dbm_res
 page_bytitle(enum iter arg_iter, const struct dbm_match *arg_match)  page_bytitle(enum iter arg_iter, const struct dbm_match *arg_match)
 {  {
         static const struct dbm_match   *match;          static const struct dbm_match   *match;
         static const char               *cp;          static const char               *cp;
         static int32_t                   ip;          static int32_t                   ip;
         struct dbm_res                   res = {-1, 0};          struct dbm_res                   res = {-1, 0};
   
Line 315  page_byarch(const struct dbm_match *arg_match)
Line 315  page_byarch(const struct dbm_match *arg_match)
         static const struct dbm_match   *match;          static const struct dbm_match   *match;
         struct dbm_res                   res = {-1, 0};          struct dbm_res                   res = {-1, 0};
         static int32_t                   ip;          static int32_t                   ip;
         const char                      *cp;          const char                      *cp;
   
         /* Initialize for a new iteration. */          /* Initialize for a new iteration. */
   

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.7

CVSweb