[geany/geany] 75c5cb: Use G_BEGIN_DECLS/G_END_DECLS
Jiří Techet
git-noreply at xxxxx
Fri Jun 10 21:57:19 UTC 2016
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Mon, 21 Mar 2016 17:28:36 UTC
Commit: 75c5cb6a9c8009ad018ca08d2c583f8ae06d9514
https://github.com/geany/geany/commit/75c5cb6a9c8009ad018ca08d2c583f8ae06d9514
Log Message:
-----------
Use G_BEGIN_DECLS/G_END_DECLS
Modified Paths:
--------------
tagmanager/src/tm_source_file.h
tagmanager/src/tm_tag.h
tagmanager/src/tm_workspace.h
Modified: tagmanager/src/tm_source_file.h
9 lines changed, 2 insertions(+), 7 deletions(-)
===================================================================
@@ -20,10 +20,7 @@
typedef void tagEntryInfo;
#endif
-#ifdef __cplusplus
-extern "C"
-{
-#endif
+G_BEGIN_DECLS
/* Casts a pointer to a pointer to a TMSourceFile structure */
#define TM_SOURCE_FILE(source_file) ((TMSourceFile *) source_file)
@@ -65,8 +62,6 @@ gboolean tm_source_file_parse(TMSourceFile *source_file, guchar* text_buf, gsize
#endif /* GEANY_PRIVATE */
-#ifdef __cplusplus
-}
-#endif
+G_END_DECLS
#endif /* TM_SOURCE_FILE_H */
Modified: tagmanager/src/tm_tag.h
9 lines changed, 2 insertions(+), 7 deletions(-)
===================================================================
@@ -32,10 +32,7 @@
#include "tm_source_file.h"
#include <glib-object.h>
-#ifdef __cplusplus
-extern "C"
-{
-#endif
+G_BEGIN_DECLS
/** Use the TM_TAG() macro to cast a pointer to (TMTag *) */
#define TM_TAG(tag) ((TMTag *) tag)
@@ -213,8 +210,6 @@ gint tm_tag_scope_depth(const TMTag *t);
#endif /* GEANY_PRIVATE */
-#ifdef __cplusplus
-}
-#endif
+G_END_DECLS
#endif /* TM_TAG_H */
Modified: tagmanager/src/tm_workspace.h
9 lines changed, 2 insertions(+), 7 deletions(-)
===================================================================
@@ -15,10 +15,7 @@
#include "tm_tag.h"
-#ifdef __cplusplus
-extern "C"
-{
-#endif
+G_BEGIN_DECLS
/** The Tag Manager Workspace. This is a singleton object containing a list
@@ -79,8 +76,6 @@ void tm_workspace_dump(void);
#endif /* GEANY_PRIVATE */
-#ifdef __cplusplus
-}
-#endif
+G_END_DECLS
#endif /* TM_WORKSPACE_H */
--------------
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