SF.net SVN: geany: [868] trunk/tagmanager/tm_source_file.c
eht16 at users.sourceforge.net
eht16 at xxxxx
Fri Oct 6 22:29:10 UTC 2006
Revision: 868
http://svn.sourceforge.net/geany/?rev=868&view=rev
Author: eht16
Date: 2006-10-06 15:29:04 -0700 (Fri, 06 Oct 2006)
Log Message:
-----------
Parse files only once instead of three times.
Modified Paths:
--------------
trunk/tagmanager/tm_source_file.c
Modified: trunk/tagmanager/tm_source_file.c
===================================================================
--- trunk/tagmanager/tm_source_file.c 2006-10-06 22:13:24 UTC (rev 867)
+++ trunk/tagmanager/tm_source_file.c 2006-10-06 22:29:04 UTC (rev 868)
@@ -49,7 +49,7 @@
TagEntryFunction = tm_source_file_tags;
}
- if (name == NULL)
+ if (name == NULL)
source_file->lang = LANG_AUTO;
else
source_file->lang = getNamedLanguage(name);
@@ -114,14 +114,16 @@
TagEntryFunction = tm_source_file_tags;
}
current_source_file = source_file;
-
+
if (LANG_AUTO == source_file->lang)
source_file->lang = getFileLanguage (file_name);
if (source_file->lang < 0 || ! LanguageTable [source_file->lang]->enabled)
return status;
-
- while ((TRUE == status) && (passCount < 3))
+
+ //while ((TRUE == status) && (passCount < 3))
+ // parse files only once instead of three times until we know why
+ while ((TRUE == status) && (passCount < 1))
{
if (source_file->work_object.tags_array)
tm_tags_array_free(source_file->work_object.tags_array, FALSE);
@@ -135,7 +137,7 @@
}
else
{
- g_warning("Unable to open %s", file_name);
+ g_warning("%s: Unable to open %s", __func__, file_name);
return FALSE;
}
++ passCount;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list