On Wed, Jun 25, 2014 at 11:21 PM, Shigio YAMAGUCHI <[email protected]> wrote: >> The below code segment in gtags/gtags.c performs deletion of tags if >> are present: > > It seems OK. > Prefix '+' is needed? > Are there any difference between the following two files? > >> prefix.files: >> +path/to/some/file1.cpp >> +path/to/some/file2.cpp >> +path/to/some/file3.cpp >> +path/to/some/file4.cpp >> >> non-prefix.files: >> path/to/some/file1.cpp >> path/to/some/file2.cpp >> path/to/some/file3.cpp >> path/to/some/file4.cpp
Not in user visible out but 'yes' internally. When you give '+', gtags assumes the file exists on disk without calling stat(). Without the '+', the stat() is called - If the file does not exist (ENOENT or ESTALE), it is treated as deleted - If exists, its time stamp is compared (default behavior without my change) with best regards, dhruva _______________________________________________ Bug-global mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-global
