/[global]/global/gtags/gtags.c
ViewVC logotype

Diff of /global/gtags/gtags.c

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

revision 1.154 by h-iwamoto, Sun Nov 6 15:47:00 2005 UTC revision 1.155 by shigio, Mon Nov 7 12:17:49 2005 UTC
# Line 410  main(int argc, char **argv) Line 410  main(int argc, char **argv)
410                  /*                  /*
411                   * This code is used by htags(1) to traverse file system.                   * This code is used by htags(1) to traverse file system.
412                   */                   */
413                    GFIND *gp;
414                  const char *path;                  const char *path;
415                  const char *local = (argc) ? argv[0] : NULL;                  const char *local = (argc) ? argv[0] : NULL;
416    
417                  getdbpath(cwd, root, dbpath, 0);                  getdbpath(cwd, root, dbpath, 0);
418                  gfind_open(dbpath, local, other_files);                  gp = gfind_open(dbpath, local, other_files);
419                  while ((path = gfind_read()) != NULL) {                  while ((path = gfind_read(gp)) != NULL) {
420                          fputs(path, stdout);                          fputs(path, stdout);
421                          fputc('\n', stdout);                          fputc('\n', stdout);
422                  }                  }
423                  gfind_close();                  gfind_close(gp);
424                  exit(0);                  exit(0);
425          } else if (do_sort) {          } else if (do_sort) {
426                  /*                  /*
# Line 823  incremental(const char *dbpath, const ch Line 824  incremental(const char *dbpath, const ch
824                          end = start + strbuf_getlen(addlist_other);                          end = start + strbuf_getlen(addlist_other);
825    
826                          for (p = start; p < end; p += strlen(p) + 1)                          for (p = start; p < end; p += strlen(p) + 1)
827                                  gpath_put(p, 1);                                  gpath_put(p, GPATH_OTHER);
828                  }                  }
829                  gpath_close();                  gpath_close();
830                  updated = 1;                  updated = 1;

Legend:
Removed from v.1.154  
changed lines
  Added in v.1.155

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