From: Matthias Clasen Date: Fri, 9 Nov 2007 03:47:33 +0000 (+0000) Subject: Fixes and cleanups X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=c8fe40d4395b720880aa7df777952af7f2397239;p=dana%2Fcg-glib.git Fixes and cleanups svn path=/trunk/; revision=5843 --- diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 09a3fec3..3ec4b92f 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,5 +1,6 @@ 2007-11-08 Matthias Clasen + * glib/tmpl/memory.sgml * glib/tmpl/hooks.sgml: Cleanups and fixes 2007-11-08 Matthias Clasen diff --git a/docs/reference/glib/tmpl/memory.sgml b/docs/reference/glib/tmpl/memory.sgml index 34d0eb3f..eba5d1b8 100644 --- a/docs/reference/glib/tmpl/memory.sgml +++ b/docs/reference/glib/tmpl/memory.sgml @@ -46,9 +46,9 @@ it is normally unnecessary to cast it explicitly, and doing so might hide memory allocation errors. -@struct_type: the type of the elements to allocate. -@n_structs: the number of elements to allocate. -@Returns: a pointer to the allocated memory, cast to a pointer to @struct_type. +@struct_type: the type of the elements to allocate +@n_structs: the number of elements to allocate +@Returns: a pointer to the allocated memory, cast to a pointer to @struct_type @@ -75,10 +75,10 @@ Reallocates the memory pointed to by @mem, so that it now has space for the memory, which may have been moved. -@struct_type: the type of the elements to allocate. -@mem: the currently allocated memory. -@n_structs: the number of elements to allocate. -@Returns: a pointer to the new allocated memory, cast to a pointer to @struct_type. +@struct_type: the type of the elements to allocate +@mem: the currently allocated memory +@n_structs: the number of elements to allocate +@Returns: a pointer to the new allocated memory, cast to a pointer to @struct_type @@ -89,9 +89,9 @@ The returned pointer is cast to a pointer to the given type. If @n_structs is 0 it returns %NULL. -@struct_type: the type of the elements to allocate. -@n_structs: the number of elements to allocate. -@Returns: a pointer to the allocated memory, cast to a pointer to @struct_type. +@struct_type: the type of the elements to allocate +@n_structs: the number of elements to allocate +@Returns: a pointer to the allocated memory, cast to a pointer to @struct_type @Since: 2.8 @@ -104,9 +104,9 @@ The returned pointer is cast to a pointer to the given type. If @n_counts is 0 it returns %NULL. -@struct_type: the type of the elements to allocate. -@n_structs: the number of elements to allocate. -@Returns: a pointer to the allocated memory, cast to a pointer to @struct_type. +@struct_type: the type of the elements to allocate +@n_structs: the number of elements to allocate +@Returns: a pointer to the allocated memory, cast to a pointer to @struct_type @Since: 2.8 @@ -118,10 +118,10 @@ failure. Contrast with g_renew(), which aborts the program on failure. It returns the new address of the memory, which may have been moved. -@struct_type: the type of the elements to allocate. -@mem: the currently allocated memory. -@n_structs: the number of elements to allocate. -@Returns: a pointer to the new allocated memory, cast to a pointer to @struct_type. +@struct_type: the type of the elements to allocate +@mem: the currently allocated memory +@n_structs: the number of elements to allocate +@Returns: a pointer to the new allocated memory, cast to a pointer to @struct_type @Since: 2.8 @@ -131,8 +131,8 @@ Allocates @n_bytes bytes of memory. If @n_bytes is 0 it returns %NULL. -@n_bytes: the number of bytes to allocate. -@Returns: a pointer to the allocated memory. +@n_bytes: the number of bytes to allocate +@Returns: a pointer to the allocated memory @@ -141,8 +141,8 @@ Allocates @n_bytes bytes of memory, initialized to 0's. If @n_bytes is 0 it returns %NULL. -@n_bytes: the number of bytes to allocate. -@Returns: a pointer to the allocated memory. +@n_bytes: the number of bytes to allocate +@Returns: a pointer to the allocated memory @@ -150,12 +150,13 @@ If @n_bytes is 0 it returns %NULL. Reallocates the memory pointed to by @mem, so that it now has space for @n_bytes bytes of memory. It returns the new address of the memory, which may have been moved. @mem may be %NULL, in which case it's considered to -have zero-length. @n_bytes may be 0, in which case %NULL will be returned. +have zero-length. @n_bytes may be 0, in which case %NULL will be returned +and @mem will be freed unless it is %NULL. -@mem: the memory to reallocate. -@n_bytes: new size of the memory in bytes. -@Returns: the new address of the allocated memory. +@mem: the memory to reallocate +@n_bytes: new size of the memory in bytes +@Returns: the new address of the allocated memory @@ -174,8 +175,8 @@ Attempts to allocate @n_bytes, initialized to 0's, and returns %NULL on failure. Contrast with g_malloc0(), which aborts the program on failure. -@n_bytes: number of bytes to allocate. -@Returns: the allocated memory, or %NULL. +@n_bytes: number of bytes to allocate +@Returns: the allocated memory, or %NULL @Since: 2.8 @@ -197,7 +198,7 @@ Frees the memory pointed to by @mem. If @mem is %NULL it simply returns. -@mem: the memory to free. +@mem: the memory to free @@ -339,6 +340,3 @@ still in use. Note that this function will not output anything unless you have previously installed the #glib_mem_profiler_table with g_mem_set_vtable(). - - -