[geany/geany] 86cb9a: Make the use of TMParserType private

Jiří Techet git-noreply at xxxxx
Fri Feb 26 00:40:37 UTC 2016


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Fri, 26 Feb 2016 00:40:37 UTC
Commit:      86cb9aeac0f3d32c6a93688dbe49039fb24f15e8
             https://github.com/geany/geany/commit/86cb9aeac0f3d32c6a93688dbe49039fb24f15e8

Log Message:
-----------
Make the use of TMParserType private

Or semi-private by removing the docstring.


Modified Paths:
--------------
    src/filetypes.h
    tagmanager/src/tm_parser.h
    tagmanager/src/tm_source_file.h
    tagmanager/src/tm_tag.h

Modified: src/filetypes.h
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -134,7 +134,7 @@ GeanyFiletypeGroupID;
 typedef struct GeanyFiletype
 {
 	GeanyFiletypeID	  id;				/**< Index in @ref filetypes. */
-	/** Represents the TMParserType of tagmanager (see the table
+	/* Represents the TMParserType of tagmanager (see the table
 	 * in tagmanager/src/tm_parser.h). */
 	TMParserType	  lang;
 	/** Untranslated short name, such as "C", "None".


Modified: tagmanager/src/tm_parser.h
4 lines changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -12,6 +12,9 @@
 
 typedef gint TMParserType;
 
+
+#ifdef GEANY_PRIVATE
+
 /* keep in sync with ctags/parsers.h */
 enum
 {
@@ -70,5 +73,6 @@ enum
 	TM_PARSER_COUNT
 };
 
+#endif /* GEANY_PRIVATE */
 
 #endif /* TM_PARSER_H */


Modified: tagmanager/src/tm_source_file.h
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -37,7 +37,7 @@ extern "C"
 */
 typedef struct
 {
-	TMParserType lang; /**< Programming language used */
+	TMParserType lang; /* Programming language used */
 	char *file_name; /**< Full file name (inc. path) */
 	char *short_name; /**< Just the name of the file (without the path) */
 	GPtrArray *tags_array; /**< Sorted tag array obtained by parsing the object */


Modified: tagmanager/src/tm_tag.h
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -137,7 +137,7 @@ typedef struct _TMTag
 	char *var_type; /**< Variable type (maps to struct for typedefs) */
 	char access; /**< Access type (public/protected/private/etc.) */
 	char impl; /**< Implementation (e.g. virtual) */
-	TMParserType lang; /**< Programming language of the file */
+	TMParserType lang; /* Programming language of the file */
 } TMTag;
 
 



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list