diff --git a/docs/reference/glib/tmpl/arrays.sgml b/docs/reference/glib/tmpl/arrays.sgml
index fa8890508..0de6c9091 100644
--- a/docs/reference/glib/tmpl/arrays.sgml
+++ b/docs/reference/glib/tmpl/arrays.sgml
@@ -276,5 +276,6 @@ If @free_segment is %TRUE it frees the actual element data as well.
@array: a #GArray.
@free_segment: if %TRUE the actual element data is freed as well.
+@Returns:
diff --git a/docs/reference/glib/tmpl/arrays_byte.sgml b/docs/reference/glib/tmpl/arrays_byte.sgml
index 4ba933048..447f1360f 100644
--- a/docs/reference/glib/tmpl/arrays_byte.sgml
+++ b/docs/reference/glib/tmpl/arrays_byte.sgml
@@ -164,5 +164,6 @@ If free_segment is %TRUE it frees the actual byte data.
@array: a #GByteArray.
@free_segment: if %TRUE the actual byte data is freed as well.
+@Returns:
diff --git a/docs/reference/glib/tmpl/arrays_pointer.sgml b/docs/reference/glib/tmpl/arrays_pointer.sgml
index 48f443ca2..74dc81bf1 100644
--- a/docs/reference/glib/tmpl/arrays_pointer.sgml
+++ b/docs/reference/glib/tmpl/arrays_pointer.sgml
@@ -207,5 +207,6 @@ Frees all of the memory allocated for the pointer array.
@array: a #GPtrArray.
@free_seg: if %TRUE the actual element data is freed as well.
+@Returns:
diff --git a/docs/reference/glib/tmpl/completion.sgml b/docs/reference/glib/tmpl/completion.sgml
index 24d6e910e..b2d9a037d 100644
--- a/docs/reference/glib/tmpl/completion.sgml
+++ b/docs/reference/glib/tmpl/completion.sgml
@@ -137,7 +137,7 @@ This is used when you use strings as #GCompletion items.
first @n bytes of @s1 is found, respectively, to be less than, to match,
or to be greater than the first @n bytes of @s2.
-
+
Frees all memory used by the #GCompletion.
diff --git a/docs/reference/glib/tmpl/conversions.sgml b/docs/reference/glib/tmpl/conversions.sgml
index 4e2bc7c39..c43a98752 100644
--- a/docs/reference/glib/tmpl/conversions.sgml
+++ b/docs/reference/glib/tmpl/conversions.sgml
@@ -180,10 +180,10 @@ Error codes returned by character set conversion routines.
@G_CONVERT_ERROR_NO_CONVERSION: Conversion between the requested character sets
-is not supported.
+is not supported.
@G_CONVERT_ERROR_ILLEGAL_SEQUENCE: Invalid byte sequence in conversion input.
-@G_CONVERT_ERROR_FAILED: Conversion failed for some reason.
+@G_CONVERT_ERROR_FAILED: Conversion failed for some reason.
@G_CONVERT_ERROR_PARTIAL_INPUT: Partial character sequence at end of input.
-@G_CONVERT_ERROR_BAD_URI: URI is invalid.
+@G_CONVERT_ERROR_BAD_URI: URI is invalid.
@G_CONVERT_ERROR_NOT_ABSOLUTE_PATH: Pathname is not an absolute path.
diff --git a/docs/reference/glib/tmpl/date.sgml b/docs/reference/glib/tmpl/date.sgml
index ad739e76c..5fe019139 100644
--- a/docs/reference/glib/tmpl/date.sgml
+++ b/docs/reference/glib/tmpl/date.sgml
@@ -87,7 +87,7 @@ Equivalent to gettimeofday(), but also works on
Win32. Returns the current time.
-@result:
+@result:
@@ -556,7 +556,6 @@ Returns %TRUE if the date is the last day of the month. The date must be valid.
@Returns: %TRUE if the date is the last day of the month.
-
Returns %TRUE if the year is a leap year.
diff --git a/docs/reference/glib/tmpl/glib-unused.sgml b/docs/reference/glib/tmpl/glib-unused.sgml
index 6d6c3971c..4ea5f2d8d 100644
--- a/docs/reference/glib/tmpl/glib-unused.sgml
+++ b/docs/reference/glib/tmpl/glib-unused.sgml
@@ -131,6 +131,14 @@ not work.
+
+
+Provided for UNIX emulation on Windows; equivalent to UNIX macro
+%NAME_MAX, which is the maximum length of a single path component.
+i.e. just the foo in /usr/bin/foo.
+
+
+
@@ -171,6 +179,13 @@ not work.
@Returns:
+
+
+
+
+
+@Returns:
+
Adds a file descriptor to be polled.
@@ -378,6 +393,13 @@ Turns the argument into a string literal by using the '#' stringizing operator.
+
+
+Provided for UNIX emulation on Windows; see documentation for readdir()
+in any UNIX manual.
+
+
+
diff --git a/docs/reference/glib/tmpl/hooks.sgml b/docs/reference/glib/tmpl/hooks.sgml
index 35d804f56..de5f5c273 100644
--- a/docs/reference/glib/tmpl/hooks.sgml
+++ b/docs/reference/glib/tmpl/hooks.sgml
@@ -67,7 +67,6 @@ function.
@hook_memchunk:
@finalize_hook:
-
Defines the type of function to be called when a hook in a
@@ -156,7 +155,7 @@ by g_hook_list_invoke_check().
@data: the data field of the #GHook is passed to the hook function here.
-@Returns: %FALSE if the #GHook should be destroyed.
+@Returns: %FALSE if the #GHook should be destroyed.
@@ -421,8 +420,8 @@ thread) are considered valid. If set to %FALSE, these are skipped.
Flags used internally in the #GHook implementation.
-@G_HOOK_FLAG_ACTIVE: set if the hook has not been destroyed.
-@G_HOOK_FLAG_IN_CALL: set if the hook is currently being run.
+@G_HOOK_FLAG_ACTIVE: set if the hook has not been destroyed.
+@G_HOOK_FLAG_IN_CALL: set if the hook is currently being run.
@G_HOOK_FLAG_MASK:
diff --git a/docs/reference/glib/tmpl/iochannels.sgml b/docs/reference/glib/tmpl/iochannels.sgml
index f6d2d5a6c..91a5b68db 100644
--- a/docs/reference/glib/tmpl/iochannels.sgml
+++ b/docs/reference/glib/tmpl/iochannels.sgml
@@ -279,7 +279,7 @@ operation.
Stati returned by most of the #GIOFuncs functions.
-@G_IO_STATUS_ERROR: An error occurred.
+@G_IO_STATUS_ERROR: An error occurred.
@G_IO_STATUS_NORMAL: Success.
@G_IO_STATUS_EOF: End of file.
@G_IO_STATUS_AGAIN: Resource temporarily unavailable.
@@ -308,14 +308,6 @@ error domains.
-
-
-
-
-
-@Returns:
-
-
diff --git a/docs/reference/glib/tmpl/macros_misc.sgml b/docs/reference/glib/tmpl/macros_misc.sgml
index 11c15a147..16d2ac28c 100644
--- a/docs/reference/glib/tmpl/macros_misc.sgml
+++ b/docs/reference/glib/tmpl/macros_misc.sgml
@@ -77,6 +77,7 @@ yourself, because this macro may use memmove() and GLib
does not include string.h for you.
+
@ap1: the va_list variable to place a copy of @ap2 in.
@ap2: a va_list.
@@ -98,6 +99,23 @@ when compiling with the -pedantic option.
+
+
+Expands to the GNU C const function attribute if the compiler is GNU C.
+Declaring a function as const enables better optimization of the function.
+A const function doesn't examine any values except its parameters,
+and has no effects except its return value.
+See the GNU C documentation for details.
+
+
+A function that has pointer arguments and examines the data pointed to
+must not be declared const. Likewise, a function that
+calls a non-const function usually must not be const. It doesn't make sense
+for a const function to return void.
+
+
+
+
Expands to the GNU C noreturn function attribute if the compiler is GNU C.
@@ -127,21 +145,6 @@ See the GNU C documentation for details.
-
-
-Expands to the GNU C const function attribute if the compiler is GNU C.
-Declaring a function as const enables better optimization of the function.
-A const function doesn't examine any values except its parameters,
-and has no effects except its return value.
-See the GNU C documentation for details.
-
-
-A function that has pointer arguments and examines the data pointed to
-must not be declared const. Likewise, a function that
-calls a non-const function usually must not be const. It doesn't make sense
-for a const function to return void.
-
-
diff --git a/docs/reference/glib/tmpl/memory.sgml b/docs/reference/glib/tmpl/memory.sgml
index 1b932b789..ee61d661c 100644
--- a/docs/reference/glib/tmpl/memory.sgml
+++ b/docs/reference/glib/tmpl/memory.sgml
@@ -220,3 +220,4 @@ previously installed the #glib_mem_profiler_table with g_mem_set_vtable().
+
diff --git a/docs/reference/glib/tmpl/patterns.sgml b/docs/reference/glib/tmpl/patterns.sgml
index cfea474e8..b1ad4fabb 100644
--- a/docs/reference/glib/tmpl/patterns.sgml
+++ b/docs/reference/glib/tmpl/patterns.sgml
@@ -24,6 +24,7 @@ g_pattern_spec_new() and use g_pattern_match_string() instead of
g_pattern_match_simple(). This avoids the overhead of repeated
pattern compilation.
+
@@ -35,11 +36,11 @@ Enumeration representing different kinds of patterns. This is only used
internally for optimizing the match algorithm.
-@G_MATCH_ALL: a general pattern.
+@G_MATCH_ALL: a general pattern.
@G_MATCH_ALL_TAIL: a general pattern which contains a fixed part matching
the end of the string.
@G_MATCH_HEAD: a pattern matching every string with a certain prefix.
-@G_MATCH_TAIL: a pattern matching every string with a certain suffix.
+@G_MATCH_TAIL: a pattern matching every string with a certain suffix.
@G_MATCH_EXACT: a pattern matching exactly one string.
@G_MATCH_LAST:
@@ -101,4 +102,6 @@ Matches a string against a pattern.
@pattern: the pattern.
@string: the string to match.
-@Returns: %TRUE if @string matches @pspec.
+@Returns: %TRUE if @string matches @pspec.
+
+
diff --git a/docs/reference/glib/tmpl/scanner.sgml b/docs/reference/glib/tmpl/scanner.sgml
index 47fe157f2..b49baf6fc 100644
--- a/docs/reference/glib/tmpl/scanner.sgml
+++ b/docs/reference/glib/tmpl/scanner.sgml
@@ -356,7 +356,6 @@ value of each pair, and the given @user_data parameter.
@user_data: user data to pass to the function.
-
Looks up a symbol in a scope and return its value. If the
@@ -367,7 +366,7 @@ symbol is not bound in the scope, %NULL is returned.
@scope_id: the scope id.
@symbol: the symbol to look up.
@Returns: the value of @symbol in the given scope, or %NULL
-if @symbol is not bound in the given scope.
+if @symbol is not bound in the given scope.
@@ -386,7 +385,7 @@ This function is deprecated and will be removed in the next major
release of GLib. It does nothing.
-@scanner: a #GScanner.
+@scanner: a #GScanner.
@@ -404,10 +403,10 @@ Looks up a symbol in the current scope and return its value. If the
symbol is not bound in the current scope, %NULL is returned.
-@scanner: a #GScanner.
+@scanner: a #GScanner.
@symbol: the symbol to look up.
@Returns: the value of @symbol in the current scope, or %NULL
-if @symbol is not bound in the current scope.
+if @symbol is not bound in the current scope.
@@ -457,7 +456,7 @@ warning.
Specifies the type of the message handler function.
-@scanner: a #GScanner.
+@scanner: a #GScanner.
@message: the message.
@error: %TRUE if the message signals an error, %FALSE if it
signals a warning.
@@ -478,30 +477,8 @@ The possible types of token returned from each g_scanner_get_next_token() call.
@G_TOKEN_EOF: the end of the file.
@G_TOKEN_LEFT_PAREN: a '(' character.
-@G_TOKEN_RIGHT_PAREN: a ')' character.
-@G_TOKEN_LEFT_CURLY: a '{' character.
+@G_TOKEN_LEFT_CURLY: a '{' character.
@G_TOKEN_RIGHT_CURLY: a '}' character.
-@G_TOKEN_LEFT_BRACE: a '[' character.
-@G_TOKEN_RIGHT_BRACE: a ']' character.
-@G_TOKEN_EQUAL_SIGN: a '=' character.
-@G_TOKEN_COMMA: a ',' character.
-@G_TOKEN_NONE: no token.
-@G_TOKEN_ERROR: an error. See #GErrorType for a list of possible errors.
-@G_TOKEN_CHAR: a character without special meaning.
-@G_TOKEN_BINARY: an integer, specified in binary notation with a '0b' prefix.
-@G_TOKEN_OCTAL: an integer, specified in octal notation with a '0' prefix.
-@G_TOKEN_INT: an integer, specified in the usual decimal notation.
-@G_TOKEN_HEX: an integer, specified in hexadecimal notation with a '0x' or '$' prefix.
-@G_TOKEN_FLOAT: a floating point number.
-@G_TOKEN_STRING: a string enclosed in single or double quotes.
-@G_TOKEN_SYMBOL: a symbol which has been defined before.
-@G_TOKEN_IDENTIFIER: an identifier.
-@G_TOKEN_IDENTIFIER_NULL: the special identifier NULL.
-@G_TOKEN_COMMENT_SINGLE: a single-line comment enclosed in the delimiters
- specified by cpair_comment_single.
-@G_TOKEN_COMMENT_MULTI: a multi-line comment enclosed in '/*' and '*/'.
-@G_TOKEN_LAST:
-
@@ -516,7 +493,7 @@ of #GTokenValue, when the token is a #G_TOKEN_ERROR.
@G_ERR_UNKNOWN: unknown error.
-@G_ERR_UNEXP_EOF: unexpected end of file.
+@G_ERR_UNEXP_EOF: unexpected end of file.
@G_ERR_UNEXP_EOF_IN_STRING: unterminated string constant.
@G_ERR_UNEXP_EOF_IN_COMMENT: unterminated comment.
@G_ERR_NON_DIGIT_IN_CONST: non-digit character in a number.
diff --git a/docs/reference/glib/tmpl/shell.sgml b/docs/reference/glib/tmpl/shell.sgml
index 6a519f45e..13478ac2a 100644
--- a/docs/reference/glib/tmpl/shell.sgml
+++ b/docs/reference/glib/tmpl/shell.sgml
@@ -19,7 +19,7 @@ Shell-related Utilities
Error codes returned by shell functions.
-@G_SHELL_ERROR_BAD_QUOTING: Mismatched or otherwise mangled quoting.
+@G_SHELL_ERROR_BAD_QUOTING: Mismatched or otherwise mangled quoting.
@G_SHELL_ERROR_EMPTY_STRING: String to be parsed was empty.
@G_SHELL_ERROR_FAILED: Some other error.
diff --git a/docs/reference/glib/tmpl/spawn.sgml b/docs/reference/glib/tmpl/spawn.sgml
index 31a7fb549..07e7dd6a5 100644
--- a/docs/reference/glib/tmpl/spawn.sgml
+++ b/docs/reference/glib/tmpl/spawn.sgml
@@ -22,23 +22,23 @@ Error codes returned by spawning processes.
@G_SPAWN_ERROR_FORK: Fork failed due to lack of memory.
@G_SPAWN_ERROR_READ: Read or select on pipes failed.
@G_SPAWN_ERROR_CHDIR: Changing to working directory failed.
-@G_SPAWN_ERROR_ACCES: execv() returned %EACCES.
-@G_SPAWN_ERROR_PERM: execv() returned %EPERM.
-@G_SPAWN_ERROR_2BIG: execv() returned %E2BIG.
-@G_SPAWN_ERROR_NOEXEC: execv() returned %ENOEXEC.
+@G_SPAWN_ERROR_ACCES: execv() returned %EACCES.
+@G_SPAWN_ERROR_PERM: execv() returned %EPERM.
+@G_SPAWN_ERROR_2BIG: execv() returned %E2BIG.
+@G_SPAWN_ERROR_NOEXEC: execv() returned %ENOEXEC.
@G_SPAWN_ERROR_NAMETOOLONG: execv() returned %ENAMETOOLONG.
-@G_SPAWN_ERROR_NOENT: execv() returned %ENOENT.
-@G_SPAWN_ERROR_NOMEM: execv() returned %ENOMEM.
-@G_SPAWN_ERROR_NOTDIR: execv() returned %ENOTDIR.
-@G_SPAWN_ERROR_LOOP: execv() returned %ELOOP.
-@G_SPAWN_ERROR_TXTBUSY: execv() returned %ETXTBUSY.
-@G_SPAWN_ERROR_IO: execv() returned %EIO.
-@G_SPAWN_ERROR_NFILE: execv() returned %ENFILE.
-@G_SPAWN_ERROR_MFILE: execv() returned %EMFILE.
-@G_SPAWN_ERROR_INVAL: execv() returned %EINVAL.
-@G_SPAWN_ERROR_ISDIR: execv() returned %EISDIR.
-@G_SPAWN_ERROR_LIBBAD: execv() returned %ELIBBAD.
-@G_SPAWN_ERROR_FAILED: Some other fatal failure, error->message should explain.
+@G_SPAWN_ERROR_NOENT: execv() returned %ENOENT.
+@G_SPAWN_ERROR_NOMEM: execv() returned %ENOMEM.
+@G_SPAWN_ERROR_NOTDIR: execv() returned %ENOTDIR.
+@G_SPAWN_ERROR_LOOP: execv() returned %ELOOP.
+@G_SPAWN_ERROR_TXTBUSY: execv() returned %ETXTBUSY.
+@G_SPAWN_ERROR_IO: execv() returned %EIO.
+@G_SPAWN_ERROR_NFILE: execv() returned %ENFILE.
+@G_SPAWN_ERROR_MFILE: execv() returned %EMFILE.
+@G_SPAWN_ERROR_INVAL: execv() returned %EINVAL.
+@G_SPAWN_ERROR_ISDIR: execv() returned %EISDIR.
+@G_SPAWN_ERROR_LIBBAD: execv() returned %ELIBBAD.
+@G_SPAWN_ERROR_FAILED: Some other fatal failure, error->message should explain.
diff --git a/docs/reference/glib/tmpl/threads.sgml b/docs/reference/glib/tmpl/threads.sgml
index 6ee73ac20..6e1aa4f80 100644
--- a/docs/reference/glib/tmpl/threads.sgml
+++ b/docs/reference/glib/tmpl/threads.sgml
@@ -1619,3 +1619,4 @@ you should also free the #GStaticPrivate.
@private_key: a #GStaticPrivate to be freed.
+
diff --git a/docs/reference/glib/tmpl/trash_stack.sgml b/docs/reference/glib/tmpl/trash_stack.sgml
index e496c6bd0..d91bf4ceb 100644
--- a/docs/reference/glib/tmpl/trash_stack.sgml
+++ b/docs/reference/glib/tmpl/trash_stack.sgml
@@ -46,7 +46,7 @@ Pops a piece of memory off a #GTrashStack.
@stack_p: a pointer to a #GTrashStack.
-@Returns: the element at the top of the stack.
+@Returns: the element at the top of the stack.
@@ -55,7 +55,7 @@ Returns the element at the top of a #GTrashStack.
@stack_p: a pointer to a #GTrashStack.
-@Returns: the element at the top of the stack.
+@Returns: the element at the top of the stack.
@@ -64,6 +64,6 @@ Returns the height of a #GTrashStack.
@stack_p: a pointer to a #GTrashStack.
-@Returns: the height of the stack.
+@Returns: the height of the stack.
diff --git a/docs/reference/glib/tmpl/type_conversion.sgml b/docs/reference/glib/tmpl/type_conversion.sgml
index fb94e5df7..5f36d5c39 100644
--- a/docs/reference/glib/tmpl/type_conversion.sgml
+++ b/docs/reference/glib/tmpl/type_conversion.sgml
@@ -106,7 +106,7 @@ been stored in the pointer with GUINT_TO_POINTER().
Stuffs a #gsize into a pointer type.
-@s: #gsize to stuff into the pointer.
+@s: #gsize to stuff into the pointer.
diff --git a/docs/reference/glib/tmpl/unicode.sgml b/docs/reference/glib/tmpl/unicode.sgml
index bf5b71474..6048a3be6 100644
--- a/docs/reference/glib/tmpl/unicode.sgml
+++ b/docs/reference/glib/tmpl/unicode.sgml
@@ -31,9 +31,8 @@ Unicode Manipulation
-@Returns:
-
@charset:
+@Returns:
diff --git a/docs/reference/glib/tmpl/windows.sgml b/docs/reference/glib/tmpl/windows.sgml
index 6103df868..dec9fda87 100644
--- a/docs/reference/glib/tmpl/windows.sgml
+++ b/docs/reference/glib/tmpl/windows.sgml
@@ -23,15 +23,6 @@ macro %MAXPATHLEN, which is the maximum length of a filename
-
-
-Provided for UNIX emulation on Windows; equivalent to UNIX macro
-%NAME_MAX, which is the maximum length of a single path component.
-i.e. just the foo in /usr/bin/foo.
-
-
-
-
Provided for UNIX emulation on Windows; process ID type.
@@ -57,36 +48,33 @@ in any UNIX manual.
@size:
-
+
Provided for UNIX emulation on Windows; see documentation for opendir()
in any UNIX manual.
+@Param1:
+@Returns:
-
-
-Provided for UNIX emulation on Windows; see documentation for readdir()
-in any UNIX manual.
-
-
-
-
-
+
Provided for UNIX emulation on Windows; see documentation for rewinddir()
in any UNIX manual.
+@Param1:
-
+
Provided for UNIX emulation on Windows; see documentation for closedir()
in any UNIX manual.
+@Param1:
+@Returns:
diff --git a/docs/reference/gobject/tmpl/types.sgml b/docs/reference/gobject/tmpl/types.sgml
index 1a158d3c7..b70f16f4f 100644
--- a/docs/reference/gobject/tmpl/types.sgml
+++ b/docs/reference/gobject/tmpl/types.sgml
@@ -188,6 +188,8 @@ The predefined identifiers of the reserved fundamental types.
@G_TYPE_UINT: Identifier for the built-in type "guint".
@G_TYPE_LONG: Identifier for the built-in type "glong".
@G_TYPE_ULONG: Identifier for the built-in type "gulong".
+@G_TYPE_INT64:
+@G_TYPE_UINT64:
@G_TYPE_ENUM: Identifier for the "#GEnum" type.
@G_TYPE_FLAGS: Identifier for the "#GFlags" type.
@G_TYPE_FLOAT: Identifier for the built-in type "gfloat".
@@ -223,6 +225,8 @@ The predefined identifiers of the reserved fundamental types.
@G_TYPE_PARAM_VALUE_ARRAY: Identifier for the "#GParamSpecValueArray" type.
@G_TYPE_PARAM_CLOSURE: Identifier for the "#GParamClosure" type.
@G_TYPE_PARAM_OBJECT: Identifier for the "#GParamSpecObject" type.
+@G_TYPE_PARAM_INT64:
+@G_TYPE_PARAM_UINT64: