summaryrefslogtreecommitdiff
path: root/gobject/gtype.c
diff options
context:
space:
mode:
authorMichael Natterer <mitch@imendio.com>2008-06-22 14:29:25 +0000
committerMichael Natterer <mitch@src.gnome.org>2008-06-22 14:29:25 +0000
commit5602b7e275ef5fb76cf7847f35b120dce3111705 (patch)
tree747bf948e57eb2c36acf3dba57fde69cf0d32137 /gobject/gtype.c
parentb69be54f8bc858e39be72f664719b22c219fd12d (diff)
downloadglib-5602b7e275ef5fb76cf7847f35b120dce3111705.tar.gz
moved includes back to the top of the files (before gtk-doc SECTION
2008-06-22 Michael Natterer <mitch@imendio.com> * *.c: moved includes back to the top of the files (before gtk-doc SECTION comments). Add "config.h" in all files and move system included before glib includes. Remove trailing whitespace from SECTION comments and did some reformatting where lines were overly long, no documentation content was changed. svn path=/trunk/; revision=7089
Diffstat (limited to 'gobject/gtype.c')
-rw-r--r--gobject/gtype.c38
1 files changed, 21 insertions, 17 deletions
diff --git a/gobject/gtype.c b/gobject/gtype.c
index f244829d2..bcb6a0d9d 100644
--- a/gobject/gtype.c
+++ b/gobject/gtype.c
@@ -16,17 +16,33 @@
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
+
+/*
+ * MT safe
+ */
+
+#include "config.h"
+
+#include <string.h>
+
+#include "gtype.h"
+#include "gtypeplugin.h"
+#include "gvaluecollector.h"
+#include "gbsearcharray.h"
+#include "gobjectalias.h"
+
+
/**
* SECTION:gtype
* @Short_description: The GLib Runtime type identification and management system
* @Title:Type Information
- *
+ *
* The GType API is the foundation of the GObject system. It provides the
* facilities for registering and managing all fundamental data types,
* user-defined object and interface types. Before using any GType
* or GObject functions, g_type_init() must be called to initialize the
* type system.
- *
+ *
* For type creation and registration purposes, all types fall into one of
* two categories: static or dynamic. Static types are never loaded or
* unloaded at run-time as dynamic types may be. Static types are created
@@ -36,8 +52,8 @@
* #GTypePlugin structure instead. The remaining type information (the
* #GTypeInfo structure) is retrieved during runtime through #GTypePlugin
* and the g_type_plugin_*() API.
- * These registration functions are usually called only once from a
- * function whose only purpose is to return the type identifier for a
+ * These registration functions are usually called only once from a
+ * function whose only purpose is to return the type identifier for a
* specific class. Once the type (or class or interface) is registered,
* it may be instantiated, inherited, or implemented depending on exactly
* what sort of type it is.
@@ -45,26 +61,14 @@
* types called g_type_register_fundamental() which requires both a #GTypeInfo
* structure and a #GTypeFundamentalInfo structure but it is seldom used
* since most fundamental types are predefined rather than user-defined.
- *
+ *
* A final word about type names.
* Such an identifier needs to be at least three characters long. There is no
* upper length limit. The first character needs to be a letter (a-z or A-Z)
* or an underscore '_'. Subsequent characters can be letters, numbers or
* any of '-_+'.
*/
-#include <config.h>
-#include "gtype.h"
-
-/*
- * MT safe
- */
-
-#include "gtypeplugin.h"
-#include "gvaluecollector.h"
-#include "gbsearcharray.h"
-#include <string.h>
-#include "gobjectalias.h"
/* NOTE: some functions (some internal variants and exported ones)
* invalidate data portions of the TypeNodes. if external functions/callbacks