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

Diff of /global/global/global.c

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

revision 1.116 by h-iwamoto, Sun Nov 6 11:54:26 2005 UTC revision 1.117 by shigio, Mon Nov 7 02:26:24 2005 UTC
# Line 785  grep(const char *dbpath, const char *pat Line 785  grep(const char *dbpath, const char *pat
785          if (!(op = openfilter()))          if (!(op = openfilter()))
786                  die("cannot open output filter.");                  die("cannot open output filter.");
787          count = 0;          count = 0;
788          gfind_open(dbpath, localprefix, oflag);          /*
789             * The older version (4.8.7 or former) of GPATH doesn't have files
790             * other than source file. The oflag requires new version of GPATH.
791             */
792            if (gfind_open(dbpath, localprefix, oflag) < 2 && oflag)
793                    die("GPATH is old format. Please remake it by invoking gtags(1).");
794          while ((path = gfind_read()) != NULL) {          while ((path = gfind_read()) != NULL) {
795                  if (!(fp = fopen(path, "r")))                  if (!(fp = fopen(path, "r")))
796                          die("cannot open file '%s'.", path);                          die("cannot open file '%s'.", path);
# Line 854  pathlist(const char *dbpath, const char Line 859  pathlist(const char *dbpath, const char
859          if (!(op = openfilter()))          if (!(op = openfilter()))
860                  die("cannot open output filter.");                  die("cannot open output filter.");
861          count = 0;          count = 0;
862          gfind_open(dbpath, localprefix, oflag);          /*
863             * The older version (4.8.7 or former) of GPATH doesn't have files
864             * other than source file. The oflag requires new version of GPATH.
865             */
866            if (gfind_open(dbpath, localprefix, oflag) < 2 && oflag)
867                    die("GPATH is old format. Please remake it by invoking gtags(1).");
868          while ((path = gfind_read()) != NULL) {          while ((path = gfind_read()) != NULL) {
869                  /*                  /*
870                   * skip localprefix because end-user doesn't see it.                   * skip localprefix because end-user doesn't see it.

Legend:
Removed from v.1.116  
changed lines
  Added in v.1.117

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