Remove some additional functions from ctags which we don't need in Geany

These are useless for Geany and introduce some compilation errors at the
moment so drop them for now.
This commit is contained in:
Jiří Techet 2016-08-03 12:00:14 +02:00
parent ea72ecc00f
commit 9c4c113488
2 changed files with 0 additions and 106 deletions

View File

@ -103,108 +103,6 @@ extern boolean isDestinationStdout (void)
return toStdout;
}
# if defined (WIN32)
static boolean createTagsForMatchingEntries (char *const pattern)
{
boolean resize = FALSE;
const size_t dirLength = baseFilename (pattern) - (char *) pattern;
vString *const filePath = vStringNew ();
#if defined (HAVE_FINDFIRST)
struct ffblk fileInfo;
int result = findfirst (pattern, &fileInfo, FA_DIREC);
while (result == 0)
{
const char *const entryName = fileInfo.ff_name;
/* We must not recurse into the directories "." or "..".
*/
if (strcmp (entryName, ".") != 0 && strcmp (entryName, "..") != 0)
{
vStringNCopyS (filePath, pattern, dirLength);
vStringCatS (filePath, entryName);
resize |= createTagsForEntry (vStringValue (filePath));
}
result = findnext (&fileInfo);
}
#elif defined (HAVE__FINDFIRST)
struct _finddata_t fileInfo;
long hFile = _findfirst (pattern, &fileInfo);
if (hFile != -1L)
{
do
{
const char *const entryName = fileInfo.name;
/* We must not recurse into the directories "." or "..".
*/
if (strcmp (entryName, ".") != 0 && strcmp (entryName, "..") != 0)
{
vStringNCopyS (filePath, pattern, dirLength);
vStringCatS (filePath, entryName);
resize |= createTagsForEntry (vStringValue (filePath));
}
} while (_findnext (hFile, &fileInfo) == 0);
_findclose (hFile);
}
#endif
vStringDelete (filePath);
return resize;
}
#endif
static boolean recurseIntoDirectory (const char *const dirName)
{
boolean resize = FALSE;
if (isRecursiveLink (dirName))
verbose ("ignoring \"%s\" (recursive link)\n", dirName);
else if (! Option.recurse)
verbose ("ignoring \"%s\" (directory)\n", dirName);
else
{
#if defined (HAVE_OPENDIR)
DIR *const dir = opendir (dirName);
if (dir == NULL)
error (WARNING | PERROR, "cannot recurse into directory \"%s\"",
dirName);
else
{
struct dirent *entry;
verbose ("RECURSING into directory \"%s\"\n", dirName);
while ((entry = readdir (dir)) != NULL)
{
if (strcmp (entry->d_name, ".") != 0 &&
strcmp (entry->d_name, "..") != 0)
{
vString *filePath;
if (strcmp (dirName, ".") == 0)
filePath = vStringNewInit (entry->d_name);
else
filePath = combinePathAndFile (dirName, entry->d_name);
resize |= createTagsForEntry (vStringValue (filePath));
vStringDelete (filePath);
}
}
closedir (dir);
}
#elif defined (WIN32)
vString *const pattern = vStringNew ();
verbose ("RECURSING into directory \"%s\"\n", dirName);
vStringCopyS (pattern, dirName);
vStringPut (pattern, OUTPUT_PATH_SEPARATOR);
vStringCatS (pattern, "*.*");
resize = createTagsForMatchingEntries (vStringValue (pattern));
vStringDelete (pattern);
#endif /* HAVE_OPENDIR */
}
return resize;
}
#if defined (HAVE_CLOCK)
# define CLOCK_AVAILABLE
# ifndef CLOCKS_PER_SEC

View File

@ -181,10 +181,6 @@ extern int stat (const char *, struct stat *);
extern int lstat (const char *, struct stat *);
#endif
#if 0
static boolean createTagsForEntry (const char *const entryName);
#endif
/*
* FUNCTION DEFINITIONS