[gnome-devel-docs] programming-guidelines: Improve include guards



commit 91a113c25495925f87533cdafdfd49ce9a2b5aa7
Author: David King <amigadave amigadave com>
Date:   Mon Apr 20 22:13:37 2015 +0100

    programming-guidelines: Improve include guards
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748216

 programming-guidelines/C/c-coding-style.page |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/programming-guidelines/C/c-coding-style.page b/programming-guidelines/C/c-coding-style.page
index 61ee308..e3710e8 100644
--- a/programming-guidelines/C/c-coding-style.page
+++ b/programming-guidelines/C/c-coding-style.page
@@ -749,8 +749,8 @@ gint          gtk_type_update_foobar      (GtkType *type);</code>
     </p>
 
     <code style="valid">
-#ifndef __MYLIB_FOO_H__
-#define __MYLIB_FOO_H__
+#ifndef MYLIB_FOO_H_
+#define MYLIB_FOO_H_
 
 #include &lt;gtk/gtk.h&gt;
 
@@ -760,7 +760,7 @@ G_BEGIN_DECLS
 
 G_END_DECLS
 
-#endif /* __MYLIB_FOO_H__ */</code>
+#endif /* MYLIB_FOO_H_ */</code>
   </section>
 
   <section id="gobject">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]