Buffers Files Tools Edit Search Mule Help Thu Jun 28 17:43:29 2001 Owen Taylor <otaylor@redhat.com>

* glib/tmpl/memory.sgml glib/tmpl/macros_misc.sgml: Add
	notes about inclusion of string.h to docs on g_memmove,
        G_VA_COPY. (#54411)
This commit is contained in:
Owen Taylor 2001-06-28 21:45:02 +00:00
parent fd860cb987
commit 4be0cfddf9
3 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,9 @@
Thu Jun 28 17:43:29 2001 Owen Taylor <otaylor@redhat.com>
* glib/tmpl/memory.sgml glib/tmpl/macros_misc.sgml: Add
notes about inclusion of string.h to docs on g_memmove,
G_VA_COPY. (#54411)
Tue Jun 26 12:28:20 2001 Owen Taylor <otaylor@redhat.com> Tue Jun 26 12:28:20 2001 Owen Taylor <otaylor@redhat.com>
* glib/Makefile.am: Fix problem with glibconfig.h * glib/Makefile.am: Fix problem with glibconfig.h

View File

@ -70,6 +70,11 @@ arrays or arrays on the stack.
<para> <para>
Portable way to copy <type>va_list</type> variables. Portable way to copy <type>va_list</type> variables.
</para> </para>
<para>
In order to use this function, you must include string.h yourself,
because this macro may use memmove() and GLib does not include
string.h for you.
</para>
<!-- # Unused Parameters # --> <!-- # Unused Parameters # -->
@ap1: the <type>va_list</type> variable to place a copy of @ap2 in. @ap1: the <type>va_list</type> variable to place a copy of @ap2 in.

View File

@ -150,12 +150,11 @@ stack frame is cleaned up.
Copies a block of memory @n bytes long, from @s to @d. Copies a block of memory @n bytes long, from @s to @d.
The source and destination areas may overlap. The source and destination areas may overlap.
</para> </para>
<note>
<para> <para>
On architectures where memmove() is not available, this function is implemented In order to use this function, you must include string.h
using bcopy(), which may not be able to handle overlapping areas. yourself, because this macro will typically simply resolve
to memmove() and GLib does not include string.h for you.
</para> </para>
</note>
@d: the destination address to copy the bytes to. @d: the destination address to copy the bytes to.
@s: the source address to copy the bytes from. @s: the source address to copy the bytes from.