Improve the detection of invalid includes by moving the test outside the
authorOwen Taylor <otaylor@redhat.com>
Thu, 22 Nov 2001 18:55:06 +0000 (18:55 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Thu, 22 Nov 2001 18:55:06 +0000 (18:55 +0000)
Mon Nov 19 14:35:56 2001  Owen Taylor  <otaylor@redhat.com>

        * *.h: Improve the detection of invalid includes by moving
        the test outside the duplicate include guards.

        * gsourceclosure.c (g_source_set_closure): Doc fix.

16 files changed:
gobject/ChangeLog
gobject/gboxed.h
gobject/gclosure.h
gobject/genums.h
gobject/gobject.h
gobject/gparam.h
gobject/gparamspecs.h
gobject/gsignal.h
gobject/gsourceclosure.c
gobject/gsourceclosure.h
gobject/gtype.h
gobject/gtypemodule.h
gobject/gtypeplugin.h
gobject/gvalue.h
gobject/gvaluearray.h
gobject/gvaluetypes.h

index 7d1ff78..11dc544 100644 (file)
@@ -1,3 +1,10 @@
+Mon Nov 19 14:35:56 2001  Owen Taylor  <otaylor@redhat.com>
+       * *.h: Improve the detection of invalid includes by moving
+       the test outside the duplicate include guards.
+       * gsourceclosure.c (g_source_set_closure): Doc fix.
+
 Thu Nov 22 03:30:57 2001  Tim Janik  <timj@gtk.org>
 
        * gvalue.h (G_TYPE_IS_VALUE): use g_type_check_is_value_type()
index af26562..1645502 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
-#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
 
+#ifndef __G_BOXED_H__
+#define __G_BOXED_H__
+
 #include        <gobject/gtype.h>
 
 G_BEGIN_DECLS
index aa60540..6dd67c6 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
-#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
 
+#ifndef __G_CLOSURE_H__
+#define __G_CLOSURE_H__
+
 #include        <gobject/gtype.h>
 
 G_BEGIN_DECLS
index ea2c4be..edb21ab 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
-#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
 
+#ifndef __G_ENUMS_H__
+#define __G_ENUMS_H__
+
 #include <gobject/gtype.h>
 
 G_BEGIN_DECLS
index cc5f3d7..ae70fbb 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
-#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
 
+#ifndef __G_OBJECT_H__
+#define __G_OBJECT_H__
+
 #include        <gobject/gtype.h>
 #include        <gobject/gvalue.h>
 #include        <gobject/gparam.h>
index 97ec620..7957854 100644 (file)
  *
  * gparam.h: GParamSpec base class implementation
  */
-#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
 
+#ifndef __G_PARAM_H__
+#define __G_PARAM_H__
+
 #include       <gobject/gvalue.h>
 
 G_BEGIN_DECLS
@@ -166,6 +166,11 @@ struct _GParamSpecTypeInfo
 GType  g_param_type_register_static    (const gchar              *name,
                                         const GParamSpecTypeInfo *pspec_info);
 
+/* For registering builting types */
+GType  _g_param_type_register_static_constant (const gchar              *name,
+                                              const GParamSpecTypeInfo *pspec_info,
+                                              GType                     opt_type);
+
 
 /* --- protected --- */
 gpointer       g_param_spec_internal           (GType          param_type,
index 0a3bdf1..6d354b7 100644 (file)
  *
  * gparamspecs.h: GLib default param specs
  */
-#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
 
+#ifndef __G_PARAMSPECS_H__
+#define __G_PARAMSPECS_H__
+
 #include        <gobject/gvalue.h>
 #include        <gobject/genums.h>
 #include        <gobject/gboxed.h>
index 39cf580..a08a01d 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
-#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
 
+#ifndef __G_SIGNAL_H__
+#define __G_SIGNAL_H__
+
 #include       <gobject/gclosure.h>
 #include       <gobject/gvalue.h>
 #include       <gobject/gparam.h>
index ff8e12d..ac6724f 100644 (file)
@@ -157,7 +157,7 @@ static GSourceCallbackFuncs closure_callback_funcs = {
 /**
  * g_source_set_closure:
  * @source: the source
- * @func: a #GClosure
+ * @closure: a #GClosure
  *
  * Set the callback for a source as a #GClosure.
  *
index d017b72..6735d13 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
-
-#ifndef __G_SOURCECLOSURE_H__
-
 #if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
 #error "Only <glib-object.h> can be included directly."
 #endif
 
+#ifndef __G_SOURCECLOSURE_H__
+
 #include <gobject/gclosure.h>
 
 G_BEGIN_DECLS
index d8aac37..3f6599c 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
-#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
 
+#ifndef __G_TYPE_H__
+#define __G_TYPE_H__
+
 #include        <glib.h>
 
 G_BEGIN_DECLS
index 4871f81..548283d 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  */
-
-#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
 
+#ifndef __G_TYPE_MODULE_H__
+#define __G_TYPE_MODULE_H__
+
 #include <gobject/gobject.h>
 
 G_BEGIN_DECLS
index 26f4952..463f3a1 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  * Boston, MA 02111-1307, USA.
  */
-#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
 
+#ifndef __G_TYPE_PLUGIN_H__
+#define __G_TYPE_PLUGIN_H__
+
 #include       <gobject/gtype.h>
 
 G_BEGIN_DECLS
index 685bf3f..3c4f232 100644 (file)
  *
  * gvalue.h: generic GValue functions
  */
-#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
 
+#ifndef __G_VALUE_H__
+#define __G_VALUE_H__
+
 #include       <gobject/gtype.h>
 
 G_BEGIN_DECLS
index 456962e..863d2c3 100644 (file)
  *
  * gvaluearray.h: GLib array type holding GValues
  */
-#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
 
+#ifndef __G_VALUE_ARRAY_H__
+#define __G_VALUE_ARRAY_H__
+
 #include       <gobject/gvalue.h>
 
 
index 0423d5e..4649bc8 100644 (file)
  *
  * gvaluetypes.h: GLib default values
  */
-#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
 
+#ifndef __G_VALUETYPES_H__
+#define __G_VALUETYPES_H__
+
 #include       <gobject/gvalue.h>
 
 G_BEGIN_DECLS