From 86cb9aeac0f3d32c6a93688dbe49039fb24f15e8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Techet?= Date: Fri, 26 Feb 2016 01:40:37 +0100 Subject: [PATCH] Make the use of TMParserType private Or semi-private by removing the docstring. --- src/filetypes.h | 2 +- tagmanager/src/tm_parser.h | 4 ++++ tagmanager/src/tm_source_file.h | 2 +- tagmanager/src/tm_tag.h | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/filetypes.h b/src/filetypes.h index 4bdc495b3..19c7e9adb 100644 --- a/src/filetypes.h +++ b/src/filetypes.h @@ -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". diff --git a/tagmanager/src/tm_parser.h b/tagmanager/src/tm_parser.h index 642c57765..9b3c23742 100644 --- a/tagmanager/src/tm_parser.h +++ b/tagmanager/src/tm_parser.h @@ -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 */ diff --git a/tagmanager/src/tm_source_file.h b/tagmanager/src/tm_source_file.h index 64d5614fe..2ecd9d7bc 100644 --- a/tagmanager/src/tm_source_file.h +++ b/tagmanager/src/tm_source_file.h @@ -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 */ diff --git a/tagmanager/src/tm_tag.h b/tagmanager/src/tm_tag.h index 2116d69c3..ac7886ec4 100644 --- a/tagmanager/src/tm_tag.h +++ b/tagmanager/src/tm_tag.h @@ -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; -- 2.11.4.GIT