Move deprecated GRel to deprecated/
authorRyan Lortie <desrt@desrt.ca>
Mon, 19 Sep 2011 00:31:09 +0000 (20:31 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 19 Sep 2011 02:01:37 +0000 (22:01 -0400)
Keep the docs for now, though.  We'll remove them after a few more
cycles.

https://bugzilla.gnome.org/show_bug.cgi?id=659427

glib/Makefile.am
glib/deprecated/grel.c [moved from glib/grel.c with 99% similarity]
glib/deprecated/grel.h [moved from glib/grel.h with 98% similarity]
glib/glib.h

index ada9641..11e6e29 100644 (file)
@@ -112,7 +112,8 @@ uninstall-ms-lib:
        $(uninstall_ms_lib_cmd)
 
 deprecated_sources = \
-       deprecated/gallocator.c
+       deprecated/gallocator.c         \
+       deprecated/grel.c
 
 libglib_2_0_la_SOURCES =       \
        $(deprecated_sources)   \
@@ -163,7 +164,6 @@ libglib_2_0_la_SOURCES =    \
        gprimes.c               \
        gqsort.c                \
        gqueue.c                \
-       grel.c                  \
        grand.c                 \
        $(gregex_c)             \
        gscanner.c              \
@@ -236,7 +236,8 @@ glibinclude_HEADERS =   \
 
 deprecatedincludedir=$(includedir)/glib-2.0/glib/deprecated
 deprecatedinclude_HEADERS = \
-       deprecated/gallocator.h
+       deprecated/gallocator.h         \
+       deprecated/grel.h
 
 glibsubincludedir=$(includedir)/glib-2.0/glib
 glibsubinclude_HEADERS =   \
@@ -283,7 +284,6 @@ glibsubinclude_HEADERS =   \
        gqueue.h        \
        grand.h         \
        $(gregex_h)     \
-       grel.h          \
        gscanner.h      \
        gsequence.h     \
        gshell.h        \
similarity index 99%
rename from glib/grel.c
rename to glib/deprecated/grel.c
index f790390..fdf909a 100644 (file)
 
 #include "config.h"
 
-#include <stdarg.h>
-#include <string.h>
-
-#include "ghash.h"
-#include "gmessages.h"
-#include "gtestutils.h"
-#include "gstring.h"
+#include "grel.h"
 
-#undef G_DISABLE_DEPRECATED
+#include <glib/gmessages.h>
+#include <glib/gtestutils.h>
+#include <glib/gstring.h>
+#include <glib/gslice.h>
+#include <glib/ghash.h>
 
-#include "grel.h"
+#include <stdarg.h>
+#include <string.h>
 
 /**
  * SECTION:relations
similarity index 98%
rename from glib/grel.h
rename to glib/deprecated/grel.h
index 5cb8d09..e7c9291 100644 (file)
@@ -66,8 +66,6 @@ struct _GTuples
  * g_relation_count() counts ...
  */
 
-#ifndef G_DISABLE_DEPRECATED
-
 GRelation* g_relation_new     (gint         fields);
 void       g_relation_destroy (GRelation   *relation);
 void       g_relation_index   (GRelation   *relation,
@@ -94,8 +92,6 @@ gpointer   g_tuples_index     (GTuples     *tuples,
                                gint         index_,
                                gint         field);
 
-#endif
-
 G_END_DECLS
 
 #endif /* __G_REL_H__ */
index 95cbe75..a4d5498 100644 (file)
@@ -69,7 +69,6 @@
 #include <glib/gquark.h>
 #include <glib/gqueue.h>
 #include <glib/grand.h>
-#include <glib/grel.h>
 #include <glib/gregex.h>
 #include <glib/gscanner.h>
 #include <glib/gsequence.h>
@@ -97,6 +96,7 @@
 
 #ifndef G_DISABLE_DEPRECATED
 #include <glib/deprecated/gallocator.h>
+#include <glib/deprecated/grel.h>
 #endif
 
 #undef __GLIB_H_INSIDE__