[devhelp] Book: tidy up a little the header
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] Book: tidy up a little the header
- Date: Sat, 29 Apr 2017 10:20:13 +0000 (UTC)
commit c7902d42a0da829617215d76500f4ba196802b61
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Apr 29 11:19:50 2017 +0200
Book: tidy up a little the header
Do not prefix macro names with underscores. Symbols (even preprocessor
macro names) that begin with an underscore are reserved for the use of
the compiler, normally.
src/dh-book.h | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/dh-book.h b/src/dh-book.h
index e21b269..7ace337 100644
--- a/src/dh-book.h
+++ b/src/dh-book.h
@@ -19,8 +19,8 @@
* License along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef _DH_BOOK_H_
-#define _DH_BOOK_H_
+#ifndef DH_BOOK_H
+#define DH_BOOK_H
#include <glib-object.h>
@@ -45,7 +45,7 @@ struct _DhBookClass {
};
GType dh_book_get_type (void) G_GNUC_CONST;
-DhBook *dh_book_new (const gchar *book_path);
+DhBook *dh_book_new (const gchar *book_path);
GList *dh_book_get_keywords (DhBook *book);
GList *dh_book_get_completions (DhBook *book);
GNode *dh_book_get_tree (DhBook *book);
@@ -54,25 +54,25 @@ const gchar *dh_book_get_title (DhBook *book);
const gchar *dh_book_get_language (DhBook *book);
const gchar *dh_book_get_path (DhBook *book);
gboolean dh_book_get_enabled (DhBook *book);
-void dh_book_set_enabled (DhBook *book,
- gboolean enabled);
+void dh_book_set_enabled (DhBook *book,
+ gboolean enabled);
gint dh_book_cmp_by_path (DhBook *a,
DhBook *b);
G_DEPRECATED
-gint dh_book_cmp_by_path_str (DhBook *a,
- const gchar *b_path);
+gint dh_book_cmp_by_path_str (DhBook *a,
+ const gchar *b_path);
gint dh_book_cmp_by_name (DhBook *a,
DhBook *b);
G_DEPRECATED
-gint dh_book_cmp_by_name_str (DhBook *a,
- const gchar *b_name);
+gint dh_book_cmp_by_name_str (DhBook *a,
+ const gchar *b_name);
gint dh_book_cmp_by_title (DhBook *a,
DhBook *b);
G_END_DECLS
-#endif /* _DH_BOOK_H_ */
+#endif /* DH_BOOK_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]