Revision: 1479 http://svn.sourceforge.net/geany/?rev=1479&view=rev Author: ntrel Date: 2007-04-27 03:58:41 -0700 (Fri, 27 Apr 2007)
Log Message: ----------- Add tm_source_file_get_lang_name() as a wrapper for getLanguageName() in parse.c.
Modified Paths: -------------- trunk/tagmanager/include/tm_source_file.h trunk/tagmanager/tm_source_file.c
Modified: trunk/tagmanager/include/tm_source_file.h =================================================================== --- trunk/tagmanager/include/tm_source_file.h 2007-04-25 15:01:14 UTC (rev 1478) +++ trunk/tagmanager/include/tm_source_file.h 2007-04-27 10:58:41 UTC (rev 1479) @@ -123,6 +123,12 @@ */ extern guint source_file_class_id;
+/*! Gets the name associated with the language index. + \param lang The language index. + \return The language name, or NULL. +*/ +const gchar *tm_source_file_get_lang_name(gint lang); + #ifdef __cplusplus } #endif
Modified: trunk/tagmanager/tm_source_file.c =================================================================== --- trunk/tagmanager/tm_source_file.c 2007-04-25 15:01:14 UTC (rev 1478) +++ trunk/tagmanager/tm_source_file.c 2007-04-27 10:58:41 UTC (rev 1479) @@ -200,3 +200,16 @@ } return TRUE; } + +const gchar *tm_source_file_get_lang_name(gint lang) +{ + if (NULL == LanguageTable) + { + initializeParsing(); + installLanguageMapDefaults(); + if (NULL == TagEntryFunction) + TagEntryFunction = tm_source_file_tags; + } + return getLanguageName(lang); +} +
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.