Include gtypes.h not gobject/gtype.h
authorOwen Taylor <otaylor@redhat.com>
Sun, 18 Nov 2001 00:38:48 +0000 (00:38 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sun, 18 Nov 2001 00:38:48 +0000 (00:38 +0000)
Sat Nov 17 14:10:35 2001  Owen Taylor  <otaylor@redhat.com>

* glib/gbsearcharray.h: Include gtypes.h not gobject/gtype.h

* glib/glib-object.h gobject/*.h: Prevent headers from
being included directly except when compiling GObject.

* gobject/gvaluecollector.h: Include glib-object.h so that
this file can be included directly, since we don't
include it _from_ glib-object.h.

* gobject/gtype.c: Remove struct _GValue hack since we
now include glib/gvaluecollector.h which simply pulls in
        glib-object.h.

27 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gbsearcharray.h
glib/glib-object.h
gobject/Makefile.am
gobject/gboxed.h
gobject/gclosure.h
gobject/genums.h
gobject/gobject.h
gobject/gparam.h
gobject/gparamspecs.h
gobject/gsignal.h
gobject/gsourceclosure.h
gobject/gtype.c
gobject/gtype.h
gobject/gtypemodule.h
gobject/gtypeplugin.h
gobject/gvalue.h
gobject/gvaluearray.h
gobject/gvaluecollector.h
gobject/gvaluetypes.h

index d145641..b9d0465 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+Sat Nov 17 14:10:35 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gbsearcharray.h: Include gtypes.h not gobject/gtype.h
+
+       * glib/glib-object.h gobject/*.h: Prevent headers from
+       being included directly except when compiling GObject.
+
+       * gobject/gvaluecollector.h: Include glib-object.h so that
+       this file can be included directly, since we don't
+       include it _from_ glib-object.h.
+
+       * gobject/gtype.c: Remove struct _GValue hack since we 
+       now include glib/gvaluecollector.h which simply pulls in
+       glib-object.h.
+
 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/giochannel.c: Documentation fixes.
index d145641..b9d0465 100644 (file)
@@ -1,3 +1,18 @@
+Sat Nov 17 14:10:35 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gbsearcharray.h: Include gtypes.h not gobject/gtype.h
+
+       * glib/glib-object.h gobject/*.h: Prevent headers from
+       being included directly except when compiling GObject.
+
+       * gobject/gvaluecollector.h: Include glib-object.h so that
+       this file can be included directly, since we don't
+       include it _from_ glib-object.h.
+
+       * gobject/gtype.c: Remove struct _GValue hack since we 
+       now include glib/gvaluecollector.h which simply pulls in
+       glib-object.h.
+
 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/giochannel.c: Documentation fixes.
index d145641..b9d0465 100644 (file)
@@ -1,3 +1,18 @@
+Sat Nov 17 14:10:35 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gbsearcharray.h: Include gtypes.h not gobject/gtype.h
+
+       * glib/glib-object.h gobject/*.h: Prevent headers from
+       being included directly except when compiling GObject.
+
+       * gobject/gvaluecollector.h: Include glib-object.h so that
+       this file can be included directly, since we don't
+       include it _from_ glib-object.h.
+
+       * gobject/gtype.c: Remove struct _GValue hack since we 
+       now include glib/gvaluecollector.h which simply pulls in
+       glib-object.h.
+
 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/giochannel.c: Documentation fixes.
index d145641..b9d0465 100644 (file)
@@ -1,3 +1,18 @@
+Sat Nov 17 14:10:35 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gbsearcharray.h: Include gtypes.h not gobject/gtype.h
+
+       * glib/glib-object.h gobject/*.h: Prevent headers from
+       being included directly except when compiling GObject.
+
+       * gobject/gvaluecollector.h: Include glib-object.h so that
+       this file can be included directly, since we don't
+       include it _from_ glib-object.h.
+
+       * gobject/gtype.c: Remove struct _GValue hack since we 
+       now include glib/gvaluecollector.h which simply pulls in
+       glib-object.h.
+
 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/giochannel.c: Documentation fixes.
index d145641..b9d0465 100644 (file)
@@ -1,3 +1,18 @@
+Sat Nov 17 14:10:35 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gbsearcharray.h: Include gtypes.h not gobject/gtype.h
+
+       * glib/glib-object.h gobject/*.h: Prevent headers from
+       being included directly except when compiling GObject.
+
+       * gobject/gvaluecollector.h: Include glib-object.h so that
+       this file can be included directly, since we don't
+       include it _from_ glib-object.h.
+
+       * gobject/gtype.c: Remove struct _GValue hack since we 
+       now include glib/gvaluecollector.h which simply pulls in
+       glib-object.h.
+
 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/giochannel.c: Documentation fixes.
index d145641..b9d0465 100644 (file)
@@ -1,3 +1,18 @@
+Sat Nov 17 14:10:35 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gbsearcharray.h: Include gtypes.h not gobject/gtype.h
+
+       * glib/glib-object.h gobject/*.h: Prevent headers from
+       being included directly except when compiling GObject.
+
+       * gobject/gvaluecollector.h: Include glib-object.h so that
+       this file can be included directly, since we don't
+       include it _from_ glib-object.h.
+
+       * gobject/gtype.c: Remove struct _GValue hack since we 
+       now include glib/gvaluecollector.h which simply pulls in
+       glib-object.h.
+
 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/giochannel.c: Documentation fixes.
index d145641..b9d0465 100644 (file)
@@ -1,3 +1,18 @@
+Sat Nov 17 14:10:35 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gbsearcharray.h: Include gtypes.h not gobject/gtype.h
+
+       * glib/glib-object.h gobject/*.h: Prevent headers from
+       being included directly except when compiling GObject.
+
+       * gobject/gvaluecollector.h: Include glib-object.h so that
+       this file can be included directly, since we don't
+       include it _from_ glib-object.h.
+
+       * gobject/gtype.c: Remove struct _GValue hack since we 
+       now include glib/gvaluecollector.h which simply pulls in
+       glib-object.h.
+
 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/giochannel.c: Documentation fixes.
index d145641..b9d0465 100644 (file)
@@ -1,3 +1,18 @@
+Sat Nov 17 14:10:35 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gbsearcharray.h: Include gtypes.h not gobject/gtype.h
+
+       * glib/glib-object.h gobject/*.h: Prevent headers from
+       being included directly except when compiling GObject.
+
+       * gobject/gvaluecollector.h: Include glib-object.h so that
+       this file can be included directly, since we don't
+       include it _from_ glib-object.h.
+
+       * gobject/gtype.c: Remove struct _GValue hack since we 
+       now include glib/gvaluecollector.h which simply pulls in
+       glib-object.h.
+
 2001-11-15  Matthias Clasen  <matthiasc@poet.de>
 
        * glib/giochannel.c: Documentation fixes.
index 1682a76..61b90b4 100644 (file)
 #ifndef __G_BSEARCH_ARRAY_H__
 #define __G_BSEARCH_ARRAY_H__
 
-#include        <gobject/gtype.h>
+#include        <glib/gtypes.h>
+#include        <glib/gutils.h>
+#include        <glib/gmem.h>
+#include        <glib/gmessages.h>
 
 G_BEGIN_DECLS
 
index aefdd2f..8687ef1 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef __GLIB_GOBJECT_H__
 #define __GLIB_GOBJECT_H__
 
+#define __GLIB_GOBJECT_H_INSIDE__
+
 /* topmost include file for GObject header files */
 #include       <gobject/gboxed.h>
 #include       <gobject/genums.h>
@@ -34,5 +36,6 @@
 #include       <gobject/gvaluearray.h>
 #include       <gobject/gvaluetypes.h>
 
+#undef __GLIB_GOBJECT_H_INSIDE__
 
 #endif /* __GLIB_GOBJECT_H__ */
index 63bdccb..5184fef 100644 (file)
@@ -9,6 +9,7 @@ INCLUDES = @STRIP_BEGIN@ \
        -I$(top_srcdir)/glib                    \
        -I$(top_builddir)                       \
        @GLIB_DEBUG_FLAGS@                      \
+       -DGOBJECT_COMPILATION                   \
        -DG_DISABLE_CONST_RETURNS               \
 @STRIP_END@
 
index e29d95a..df92251 100644 (file)
 #ifndef __G_BOXED_H__
 #define __G_BOXED_H__
 
+#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
+#error "Only <glib-object.h> can be included directly."
+#endif
+
 #include        <gobject/gtype.h>
 
 G_BEGIN_DECLS
index d188d05..aa60540 100644 (file)
@@ -19,6 +19,9 @@
 #ifndef __G_CLOSURE_H__
 #define __G_CLOSURE_H__
 
+#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
+#error "Only <glib-object.h> can be included directly."
+#endif
 
 #include        <gobject/gtype.h>
 
index 699d4bd..ea2c4be 100644 (file)
 #ifndef __G_ENUMS_H__
 #define __G_ENUMS_H__
 
+#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
+#error "Only <glib-object.h> can be included directly."
+#endif
+
 #include <gobject/gtype.h>
 
 G_BEGIN_DECLS
index 5d34232..cc5f3d7 100644 (file)
 #ifndef __G_OBJECT_H__
 #define __G_OBJECT_H__
 
+#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
+#error "Only <glib-object.h> can be included directly."
+#endif
+
 #include        <gobject/gtype.h>
 #include        <gobject/gvalue.h>
 #include        <gobject/gparam.h>
index 6ed1c00..97ec620 100644 (file)
@@ -21,6 +21,9 @@
 #ifndef __G_PARAM_H__
 #define __G_PARAM_H__
 
+#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
+#error "Only <glib-object.h> can be included directly."
+#endif
 
 #include       <gobject/gvalue.h>
 
index 98a15f6..075291e 100644 (file)
@@ -21,6 +21,9 @@
 #ifndef __G_PARAMSPECS_H__
 #define __G_PARAMSPECS_H__
 
+#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
+#error "Only <glib-object.h> can be included directly."
+#endif
 
 #include        <gobject/gvalue.h>
 #include        <gobject/genums.h>
index a37d550..39cf580 100644 (file)
@@ -19,6 +19,9 @@
 #ifndef __G_SIGNAL_H__
 #define __G_SIGNAL_H__
 
+#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
+#error "Only <glib-object.h> can be included directly."
+#endif
 
 #include       <gobject/gclosure.h>
 #include       <gobject/gvalue.h>
index e12e15b..d017b72 100644 (file)
 
 #ifndef __G_SOURCECLOSURE_H__
 
+#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
+#error "Only <glib-object.h> can be included directly."
+#endif
+
 #include <gobject/gclosure.h>
 
 G_BEGIN_DECLS
index abe2e39..427ff2f 100644 (file)
@@ -137,10 +137,6 @@ static IFaceHolder*                        type_iface_peek_holder_L        (TypeNode               *iface,
 
 
 /* --- structures --- */
-struct _GValue /* kludge, keep in sync with gvalue.h */
-{
-  GType g_type;
-};
 struct _TypeNode
 {
   GTypePlugin *plugin;
index 0ae6475..aeb770d 100644 (file)
 #ifndef __G_TYPE_H__
 #define __G_TYPE_H__
 
+#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
+#error "Only <glib-object.h> can be included directly."
+#endif
+
 #include        <glib.h>
 
 G_BEGIN_DECLS
index b65bade..4871f81 100644 (file)
 #ifndef __G_TYPE_MODULE_H__
 #define __G_TYPE_MODULE_H__
 
+#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
+#error "Only <glib-object.h> can be included directly."
+#endif
+
 #include <gobject/gobject.h>
 
 G_BEGIN_DECLS
index df69258..26f4952 100644 (file)
@@ -19,6 +19,9 @@
 #ifndef __G_TYPE_PLUGIN_H__
 #define __G_TYPE_PLUGIN_H__
 
+#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
+#error "Only <glib-object.h> can be included directly."
+#endif
 
 #include       <gobject/gtype.h>
 
index 4afb95c..54310ef 100644 (file)
@@ -21,6 +21,9 @@
 #ifndef __G_VALUE_H__
 #define __G_VALUE_H__
 
+#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
+#error "Only <glib-object.h> can be included directly."
+#endif
 
 #include       <gobject/gtype.h>
 
index a242731..456962e 100644 (file)
@@ -21,6 +21,9 @@
 #ifndef __G_VALUE_ARRAY_H__
 #define __G_VALUE_ARRAY_H__
 
+#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
+#error "Only <glib-object.h> can be included directly."
+#endif
 
 #include       <gobject/gvalue.h>
 
index 0f5e865..e937996 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef __G_VALUE_COLLECTOR_H__
 #define __G_VALUE_COLLECTOR_H__
 
+#include <glib-object.h>
+
 G_BEGIN_DECLS
 
 /* we may want to add aggregate types here some day, if requested
index 0629007..0423d5e 100644 (file)
@@ -21,6 +21,9 @@
 #ifndef __G_VALUETYPES_H__
 #define __G_VALUETYPES_H__
 
+#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
+#error "Only <glib-object.h> can be included directly."
+#endif
 
 #include       <gobject/gvalue.h>