Skip to content

Commit b642c7c

Browse files
yetistraveit65
authored andcommitted
use G_BEGIN/END_DECLS
1 parent 9294083 commit b642c7c

5 files changed

Lines changed: 13 additions & 34 deletions

File tree

libmenu/canonicalize.h

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,15 @@
2020
* 02110-1301 USA.
2121
*/
2222

23-
#ifndef G_CANONICALIZE_H
24-
#define G_CANONICALIZE_H
23+
#ifndef MATE_CANONICALIZE_H
24+
#define MATE_CANONICALIZE_H
2525

2626
#include <glib.h>
2727

28-
#ifdef __cplusplus
29-
extern "C" {
30-
#endif
28+
G_BEGIN_DECLS
3129

3230
char* menu_canonicalize_file_name(const char* name, gboolean allow_missing_basename);
3331

34-
#ifdef __cplusplus
35-
}
36-
#endif
32+
G_END_DECLS
3733

38-
#endif /* G_CANONICALIZE_H */
34+
#endif /* MATE_CANONICALIZE_H */

libmenu/entry-directories.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323
#include <glib.h>
2424
#include "desktop-entries.h"
2525

26-
#ifdef __cplusplus
27-
extern "C" {
28-
#endif
26+
G_BEGIN_DECLS
2927

3028
typedef struct EntryDirectory EntryDirectory;
3129

@@ -60,8 +58,6 @@ DesktopEntry* entry_directory_list_get_directory (EntryDirectoryList* list, cons
6058
DesktopEntrySet* _entry_directory_list_get_all_desktops(EntryDirectoryList* list);
6159
void _entry_directory_list_empty_desktop_cache(void);
6260

63-
#ifdef __cplusplus
64-
}
65-
#endif
61+
G_END_DECLS
6662

6763
#endif /* __ENTRY_DIRECTORIES_H__ */

libmenu/menu-layout.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626

2727
#include "entry-directories.h"
2828

29-
#ifdef __cplusplus
30-
extern "C" {
31-
#endif
29+
G_BEGIN_DECLS
3230

3331
typedef struct MenuLayoutNode MenuLayoutNode;
3432

@@ -154,8 +152,6 @@ typedef void (*MenuLayoutNodeEntriesChangedFunc) (MenuLayoutNode* node, gpointer
154152
void menu_layout_node_root_add_entries_monitor (MenuLayoutNode* node, MenuLayoutNodeEntriesChangedFunc callback, gpointer user_data);
155153
void menu_layout_node_root_remove_entries_monitor (MenuLayoutNode* node, MenuLayoutNodeEntriesChangedFunc callback, gpointer user_data);
156154

157-
#ifdef __cplusplus
158-
}
159-
#endif
155+
G_END_DECLS
160156

161157
#endif /* __MENU_LAYOUT_H__ */

libmenu/menu-monitor.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323

2424
#include <glib.h>
2525

26-
#ifdef __cplusplus
27-
extern "C" {
28-
#endif
26+
G_BEGIN_DECLS
2927

3028
typedef struct MenuMonitor MenuMonitor;
3129

@@ -63,8 +61,6 @@ void menu_monitor_remove_notify(MenuMonitor* monitor, MenuMonitorNotifyFunc noti
6361
#define mate_menu_monitor_notify_ref menu_monitor_notify_ref /* private */
6462
#define mate_menu_monitor_notify_unref menu_monitor_notify_unref /* private */
6563

66-
#ifdef __cplusplus
67-
}
68-
#endif
64+
G_END_DECLS
6965

7066
#endif /* __MENU_MONITOR_H__ */

libmenu/menu-util.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@
2626

2727
#include "menu-layout.h"
2828

29-
#ifdef __cplusplus
30-
extern "C" {
31-
#endif
32-
29+
G_BEGIN_DECLS
3330

3431

3532
#ifdef G_ENABLE_DEBUG
@@ -52,8 +49,6 @@ extern "C" {
5249

5350
#endif /* G_ENABLE_DEBUG */
5451

55-
#ifdef __cplusplus
56-
}
57-
#endif
52+
G_END_DECLS
5853

5954
#endif /* __MENU_UTIL_H__ */

0 commit comments

Comments
 (0)