/[global]/global/libutil/gtagsop.c
ViewVC logotype

Diff of /global/libutil/gtagsop.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.84 by h-iwamoto, Tue Nov 1 16:07:18 2005 UTC revision 1.85 by shigio, Sat Nov 5 14:07:10 2005 UTC
# Line 370  gtags_put(GTOP *gtop, const char *tag, c Line 370  gtags_put(GTOP *gtop, const char *tag, c
370                          p++;                          p++;
371                  savec = *p;                  savec = *p;
372                  *p = '\0';                  *p = '\0';
373                  fid = gpath_path2fid(path);                  fid = gpath_path2fid(path, NULL);
374                  if (fid == NULL)                  if (fid == NULL)
375                          die("GPATH is corrupted.('%s' not found)", path);                          die("GPATH is corrupted.('%s' not found)", path);
376                  *p = savec;                  *p = savec;
# Line 445  flush_pool(GTOP *gtop) Line 445  flush_pool(GTOP *gtop)
445          const char *path = gtop->prev_path;          const char *path = gtop->prev_path;
446    
447          if (gtop->format & GTAGS_PATHINDEX) {          if (gtop->format & GTAGS_PATHINDEX) {
448                  path = gpath_path2fid(gtop->prev_path);                  path = gpath_path2fid(gtop->prev_path, NULL);
449                  if (path == NULL)                  if (path == NULL)
450                          die("GPATH is corrupted.('%s' not found)", gtop->prev_path);                          die("GPATH is corrupted.('%s' not found)", gtop->prev_path);
451          }          }
# Line 545  gtags_delete(GTOP *gtop, IDSET *deletese Line 545  gtags_delete(GTOP *gtop, IDSET *deletese
545                  if (gtop->format & GTAGS_PATHINDEX)                  if (gtop->format & GTAGS_PATHINDEX)
546                          s_fid = path;   /* Nothing to do. */                          s_fid = path;   /* Nothing to do. */
547                  else {                  else {
548                          s_fid = gpath_path2fid(path);                          s_fid = gpath_path2fid(path, NULL);
549                          if (s_fid == NULL)                          if (s_fid == NULL)
550                                  die("GPATH is corrupted.");                                  die("GPATH is corrupted.");
551                  }                  }
# Line 737  unpack_pathindex(const char *tagline)  /* Line 737  unpack_pathindex(const char *tagline)  /*
737          /*          /*
738           * extract file id and convert into path name.           * extract file id and convert into path name.
739           */           */
740          path = gpath_fid2path(ptable.part[PART_PATH].start);          path = gpath_fid2path(ptable.part[PART_PATH].start, NULL);
741          if (path == NULL)          if (path == NULL)
742                  die("GPATH is corrupted.(fid '%s' not found)", ptable.part[PART_PATH].start);                  die("GPATH is corrupted.(fid '%s' not found)", ptable.part[PART_PATH].start);
743          recover(&ptable);          recover(&ptable);
# Line 783  genrecord(GTOP *gtop) Line 783  genrecord(GTOP *gtop)
783                  if (gtop->format & GTAGS_PATHINDEX) {                  if (gtop->format & GTAGS_PATHINDEX) {
784                          const char *p;                          const char *p;
785    
786                          if ((p = gpath_fid2path(path)) == NULL)                          if ((p = gpath_fid2path(path, NULL)) == NULL)
787                                  die("GPATH is corrupted.('%s' not found)", path);                                  die("GPATH is corrupted.('%s' not found)", path);
788                          path = p;                          path = p;
789                  }                  }

Legend:
Removed from v.1.84  
changed lines
  Added in v.1.85

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26