mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-19 10:44:49 +02:00
Improve the detection of invalid includes by moving the test outside the
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.
This commit is contained in:
parent
b9f59f0f9d
commit
e767aa0a4f
@ -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>
|
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()
|
* gvalue.h (G_TYPE_IS_VALUE): use g_type_check_is_value_type()
|
||||||
|
@ -16,13 +16,13 @@
|
|||||||
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
#ifndef __G_BOXED_H__
|
|
||||||
#define __G_BOXED_H__
|
|
||||||
|
|
||||||
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
||||||
#error "Only <glib-object.h> can be included directly."
|
#error "Only <glib-object.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __G_BOXED_H__
|
||||||
|
#define __G_BOXED_H__
|
||||||
|
|
||||||
#include <gobject/gtype.h>
|
#include <gobject/gtype.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
@ -16,13 +16,13 @@
|
|||||||
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
#ifndef __G_CLOSURE_H__
|
|
||||||
#define __G_CLOSURE_H__
|
|
||||||
|
|
||||||
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
||||||
#error "Only <glib-object.h> can be included directly."
|
#error "Only <glib-object.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __G_CLOSURE_H__
|
||||||
|
#define __G_CLOSURE_H__
|
||||||
|
|
||||||
#include <gobject/gtype.h>
|
#include <gobject/gtype.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
@ -16,13 +16,13 @@
|
|||||||
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
#ifndef __G_ENUMS_H__
|
|
||||||
#define __G_ENUMS_H__
|
|
||||||
|
|
||||||
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
||||||
#error "Only <glib-object.h> can be included directly."
|
#error "Only <glib-object.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __G_ENUMS_H__
|
||||||
|
#define __G_ENUMS_H__
|
||||||
|
|
||||||
#include <gobject/gtype.h>
|
#include <gobject/gtype.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
@ -16,13 +16,13 @@
|
|||||||
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
#ifndef __G_OBJECT_H__
|
|
||||||
#define __G_OBJECT_H__
|
|
||||||
|
|
||||||
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
||||||
#error "Only <glib-object.h> can be included directly."
|
#error "Only <glib-object.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __G_OBJECT_H__
|
||||||
|
#define __G_OBJECT_H__
|
||||||
|
|
||||||
#include <gobject/gtype.h>
|
#include <gobject/gtype.h>
|
||||||
#include <gobject/gvalue.h>
|
#include <gobject/gvalue.h>
|
||||||
#include <gobject/gparam.h>
|
#include <gobject/gparam.h>
|
||||||
|
@ -18,13 +18,13 @@
|
|||||||
*
|
*
|
||||||
* gparam.h: GParamSpec base class implementation
|
* gparam.h: GParamSpec base class implementation
|
||||||
*/
|
*/
|
||||||
#ifndef __G_PARAM_H__
|
|
||||||
#define __G_PARAM_H__
|
|
||||||
|
|
||||||
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
||||||
#error "Only <glib-object.h> can be included directly."
|
#error "Only <glib-object.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __G_PARAM_H__
|
||||||
|
#define __G_PARAM_H__
|
||||||
|
|
||||||
#include <gobject/gvalue.h>
|
#include <gobject/gvalue.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
@ -166,6 +166,11 @@ struct _GParamSpecTypeInfo
|
|||||||
GType g_param_type_register_static (const gchar *name,
|
GType g_param_type_register_static (const gchar *name,
|
||||||
const GParamSpecTypeInfo *pspec_info);
|
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 --- */
|
/* --- protected --- */
|
||||||
gpointer g_param_spec_internal (GType param_type,
|
gpointer g_param_spec_internal (GType param_type,
|
||||||
|
@ -18,13 +18,13 @@
|
|||||||
*
|
*
|
||||||
* gparamspecs.h: GLib default param specs
|
* gparamspecs.h: GLib default param specs
|
||||||
*/
|
*/
|
||||||
#ifndef __G_PARAMSPECS_H__
|
|
||||||
#define __G_PARAMSPECS_H__
|
|
||||||
|
|
||||||
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
||||||
#error "Only <glib-object.h> can be included directly."
|
#error "Only <glib-object.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __G_PARAMSPECS_H__
|
||||||
|
#define __G_PARAMSPECS_H__
|
||||||
|
|
||||||
#include <gobject/gvalue.h>
|
#include <gobject/gvalue.h>
|
||||||
#include <gobject/genums.h>
|
#include <gobject/genums.h>
|
||||||
#include <gobject/gboxed.h>
|
#include <gobject/gboxed.h>
|
||||||
|
@ -16,13 +16,13 @@
|
|||||||
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
#ifndef __G_SIGNAL_H__
|
|
||||||
#define __G_SIGNAL_H__
|
|
||||||
|
|
||||||
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
||||||
#error "Only <glib-object.h> can be included directly."
|
#error "Only <glib-object.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __G_SIGNAL_H__
|
||||||
|
#define __G_SIGNAL_H__
|
||||||
|
|
||||||
#include <gobject/gclosure.h>
|
#include <gobject/gclosure.h>
|
||||||
#include <gobject/gvalue.h>
|
#include <gobject/gvalue.h>
|
||||||
#include <gobject/gparam.h>
|
#include <gobject/gparam.h>
|
||||||
|
@ -157,7 +157,7 @@ static GSourceCallbackFuncs closure_callback_funcs = {
|
|||||||
/**
|
/**
|
||||||
* g_source_set_closure:
|
* g_source_set_closure:
|
||||||
* @source: the source
|
* @source: the source
|
||||||
* @func: a #GClosure
|
* @closure: a #GClosure
|
||||||
*
|
*
|
||||||
* Set the callback for a source as a #GClosure.
|
* Set the callback for a source as a #GClosure.
|
||||||
*
|
*
|
||||||
|
@ -16,13 +16,12 @@
|
|||||||
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __G_SOURCECLOSURE_H__
|
|
||||||
|
|
||||||
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
||||||
#error "Only <glib-object.h> can be included directly."
|
#error "Only <glib-object.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __G_SOURCECLOSURE_H__
|
||||||
|
|
||||||
#include <gobject/gclosure.h>
|
#include <gobject/gclosure.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
@ -16,13 +16,13 @@
|
|||||||
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
#ifndef __G_TYPE_H__
|
|
||||||
#define __G_TYPE_H__
|
|
||||||
|
|
||||||
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
||||||
#error "Only <glib-object.h> can be included directly."
|
#error "Only <glib-object.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __G_TYPE_H__
|
||||||
|
#define __G_TYPE_H__
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
@ -16,14 +16,13 @@
|
|||||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __G_TYPE_MODULE_H__
|
|
||||||
#define __G_TYPE_MODULE_H__
|
|
||||||
|
|
||||||
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
||||||
#error "Only <glib-object.h> can be included directly."
|
#error "Only <glib-object.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __G_TYPE_MODULE_H__
|
||||||
|
#define __G_TYPE_MODULE_H__
|
||||||
|
|
||||||
#include <gobject/gobject.h>
|
#include <gobject/gobject.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
@ -16,13 +16,13 @@
|
|||||||
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
#ifndef __G_TYPE_PLUGIN_H__
|
|
||||||
#define __G_TYPE_PLUGIN_H__
|
|
||||||
|
|
||||||
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
||||||
#error "Only <glib-object.h> can be included directly."
|
#error "Only <glib-object.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __G_TYPE_PLUGIN_H__
|
||||||
|
#define __G_TYPE_PLUGIN_H__
|
||||||
|
|
||||||
#include <gobject/gtype.h>
|
#include <gobject/gtype.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
@ -18,13 +18,13 @@
|
|||||||
*
|
*
|
||||||
* gvalue.h: generic GValue functions
|
* gvalue.h: generic GValue functions
|
||||||
*/
|
*/
|
||||||
#ifndef __G_VALUE_H__
|
|
||||||
#define __G_VALUE_H__
|
|
||||||
|
|
||||||
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
||||||
#error "Only <glib-object.h> can be included directly."
|
#error "Only <glib-object.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __G_VALUE_H__
|
||||||
|
#define __G_VALUE_H__
|
||||||
|
|
||||||
#include <gobject/gtype.h>
|
#include <gobject/gtype.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
@ -18,13 +18,13 @@
|
|||||||
*
|
*
|
||||||
* gvaluearray.h: GLib array type holding GValues
|
* 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)
|
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
||||||
#error "Only <glib-object.h> can be included directly."
|
#error "Only <glib-object.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __G_VALUE_ARRAY_H__
|
||||||
|
#define __G_VALUE_ARRAY_H__
|
||||||
|
|
||||||
#include <gobject/gvalue.h>
|
#include <gobject/gvalue.h>
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,13 +18,13 @@
|
|||||||
*
|
*
|
||||||
* gvaluetypes.h: GLib default values
|
* gvaluetypes.h: GLib default values
|
||||||
*/
|
*/
|
||||||
#ifndef __G_VALUETYPES_H__
|
|
||||||
#define __G_VALUETYPES_H__
|
|
||||||
|
|
||||||
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
|
||||||
#error "Only <glib-object.h> can be included directly."
|
#error "Only <glib-object.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __G_VALUETYPES_H__
|
||||||
|
#define __G_VALUETYPES_H__
|
||||||
|
|
||||||
#include <gobject/gvalue.h>
|
#include <gobject/gvalue.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user