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); |
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. |