[gtk-doc] tests: cleanup the tests for deprecation



commit c482e29ae66a173484771869a1b78dd943b48c19
Author: Stefan Sauer <ensonic users sf net>
Date:   Thu Sep 29 13:49:53 2011 +0200

    tests: cleanup the tests for deprecation

 tests/bugs/docs/tester-sections.txt |   13 +++++---
 tests/bugs/src/tester.c             |   52 +++++++++++++++++++++++++++++++---
 tests/bugs/src/tester.h             |   42 ++++++++++++----------------
 3 files changed, 73 insertions(+), 34 deletions(-)
---
diff --git a/tests/bugs/docs/tester-sections.txt b/tests/bugs/docs/tester-sections.txt
index 90682a3..981e7f4 100644
--- a/tests/bugs/docs/tester-sections.txt
+++ b/tests/bugs/docs/tester-sections.txt
@@ -57,15 +57,18 @@ BUG_656773a
 BUG_656773b
 BUG_656773c
 BUG_656946
-BUG_624001a
-BUG_624001b
-BUG_624001c
-BUG_624001d
-
+bug_624001a
+bug_624001b
+bug_624001c
+bug_624001d
+bug_624001e
 gst_play_marshal_BUFFER__BOXED
 <SUBSECTION Standard>
 <SUBSECTION Private>
 GTKDOC_GNUC_CONST
+G_GNUC_DEPRECATED
+G_GNUC_DEPRECATED_FOR
+GLIB_DEPRECATED
 bug_554833_new
 </SECTION>
 
diff --git a/tests/bugs/src/tester.c b/tests/bugs/src/tester.c
index b409755..dfdd229 100644
--- a/tests/bugs/src/tester.c
+++ b/tests/bugs/src/tester.c
@@ -20,11 +20,6 @@
 
 #include <glib.h>
 
-#ifndef GLIB_DEPRECATED
-#define GLIB_DEPRECATED
-#define GLIB_DEPRECATED_FOR(x)
-#endif
-
 #include "tester.h"
 
 /**
@@ -354,3 +349,50 @@ _bug_000000a (const gchar *name)
 void bug_000000_va1 (gchar name, ...)
 {
 }
+
+
+/**
+ * bug_624001a:
+ *
+ * http://bugzilla.gnome.org/show_bug.cgi?id=624001
+ */
+void bug_624001a(void)
+{
+}
+
+/**
+ * bug_624001b:
+ *
+ * http://bugzilla.gnome.org/show_bug.cgi?id=624001
+ */
+void bug_624001b(void)
+{
+}
+
+/**
+ * bug_624001c:
+ *
+ * http://bugzilla.gnome.org/show_bug.cgi?id=624001
+ */
+void bug_624001c(void)
+{
+}
+
+/**
+ * bug_624001d:
+ *
+ * http://bugzilla.gnome.org/show_bug.cgi?id=624001
+ */
+void bug_624001d(void)
+{
+}
+
+/**
+ * bug_624001e:
+ *
+ * http://bugzilla.gnome.org/show_bug.cgi?id=624001
+ */
+void bug_624001e(void)
+{
+}
+
diff --git a/tests/bugs/src/tester.h b/tests/bugs/src/tester.h
index 660e065..01372e7 100644
--- a/tests/bugs/src/tester.h
+++ b/tests/bugs/src/tester.h
@@ -460,32 +460,26 @@ const char* const BUG_656773c = "bug";
  */
 extern short int BUG_656946;
 
-/**
- * BUG_624001a:
- *
- * https://bugzilla.gnome.org/show_bug.cgi?id=624001
- */
-void BUG_624001a (void) G_GNUC_DEPRECATED;
+#ifndef G_GNUC_DEPRECATED
+#define G_GNUC_DEPRECATED
+#endif
+#ifndef G_GNUC_DEPRECATED_FOR
+#define G_GNUC_DEPRECATED_FOR(a)
+#endif
 
-/**
- * BUG_624001b:
- *
- * https://bugzilla.gnome.org/show_bug.cgi?id=624001
- */
-void BUG_624001b (void) G_GNUC_DEPRECATED_FOR(other_func);
+void bug_624001a(void) G_GNUC_DEPRECATED;
+void bug_624001b(void) G_GNUC_DEPRECATED_FOR(bug_624001a);
 
-/**
- * BUG_624001c:
- *
- * https://bugzilla.gnome.org/show_bug.cgi?id=624001
- */
-void BUG_624001c (void) GLIB_DEPRECATED;
+G_GNUC_DEPRECATED
+void bug_624001c(void);
 
-/**
- * BUG_624001d:
- *
- * https://bugzilla.gnome.org/show_bug.cgi?id=624001
- */
-void BUG_624001d (void) GLIB_DEPRECATED;
+G_GNUC_DEPRECATED_FOR(bug_624001c)
+void bug_624001d(void);
+
+#ifndef GLIB_DEPRECATED
+#define GLIB_DEPRECATED
+#endif
+
+void bug_624001e (void) GLIB_DEPRECATED;
 
 #endif // GTKDOC_TESTER_H



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