[gtk-doc] Add tests for various annotation macros



commit d2b99ad30b3c83dc53ac28d6f70ad4e358614767
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 10 11:39:33 2011 -0400

    Add tests for various annotation macros
    
    Add tests that check that G_GNUC_DEPRECATED and variations like
    GLIB_DEPRECATED are successfully parsed.

 tests/bugs/src/tester.c |    5 +++++
 tests/bugs/src/tester.h |   28 ++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/tests/bugs/src/tester.c b/tests/bugs/src/tester.c
index b8b7d7f..b409755 100644
--- a/tests/bugs/src/tester.c
+++ b/tests/bugs/src/tester.c
@@ -20,6 +20,11 @@
 
 #include <glib.h>
 
+#ifndef GLIB_DEPRECATED
+#define GLIB_DEPRECATED
+#define GLIB_DEPRECATED_FOR(x)
+#endif
+
 #include "tester.h"
 
 /**
diff --git a/tests/bugs/src/tester.h b/tests/bugs/src/tester.h
index ef9d1a3..53880f7 100644
--- a/tests/bugs/src/tester.h
+++ b/tests/bugs/src/tester.h
@@ -460,4 +460,32 @@ const char* const BUG_656773c = "bug";
  */
 extern short int BUG_656946;
 
+/**
+ * BUG_624001a:
+ *
+ * https://bugzilla.gnome.org/show_bug.cgi?id=624001
+ */
+void deprecated_function (void) G_GNUC_DEPRECATED;
+
+/**
+ * BUG_624001b:
+ *
+ * https://bugzilla.gnome.org/show_bug.cgi?id=624001
+ */
+void deprecated_function2 (void) G_GNUC_DEPRECATED_FOR(other_func);
+
+/**
+ * BUG_624001c:
+ *
+ * https://bugzilla.gnome.org/show_bug.cgi?id=624001
+ */
+void deprecated_function3 (void) GLIB_DEPRECATED;
+
+/**
+ * BUG_624001d:
+ *
+ * https://bugzilla.gnome.org/show_bug.cgi?id=624001
+ */
+void deprecated_function4 (void) GLIB_DEPRECATED;
+
 #endif // GTKDOC_TESTER_H



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