From: Owen Taylor Date: Thu, 28 Jun 2001 21:45:02 +0000 (+0000) Subject: Buffers Files Tools Edit Search Mule Help Thu... X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=4be0cfddf9b2dfb459700432f2ae00207b3e56d3;p=dana%2Fcg-glib.git Buffers Files Tools Edit Search Mule Help Thu Jun 28 17:43:29 2001 Owen Taylor * 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) --- diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 59e00074..940129d3 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,9 @@ +Thu Jun 28 17:43:29 2001 Owen Taylor + + * 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 * glib/Makefile.am: Fix problem with glibconfig.h diff --git a/docs/reference/glib/tmpl/macros_misc.sgml b/docs/reference/glib/tmpl/macros_misc.sgml index cd71ee73..1fd647e5 100644 --- a/docs/reference/glib/tmpl/macros_misc.sgml +++ b/docs/reference/glib/tmpl/macros_misc.sgml @@ -70,6 +70,11 @@ arrays or arrays on the stack. Portable way to copy va_list variables. + +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. + @ap1: the va_list variable to place a copy of @ap2 in. diff --git a/docs/reference/glib/tmpl/memory.sgml b/docs/reference/glib/tmpl/memory.sgml index 79def9ff..1df03a07 100644 --- a/docs/reference/glib/tmpl/memory.sgml +++ b/docs/reference/glib/tmpl/memory.sgml @@ -150,12 +150,11 @@ stack frame is cleaned up. Copies a block of memory @n bytes long, from @s to @d. The source and destination areas may overlap. - -On architectures where memmove() is not available, this function is implemented -using bcopy(), which may not be able to handle overlapping areas. +In order to use this function, you must include string.h +yourself, because this macro will typically simply resolve +to memmove() and GLib does not include string.h for you. - @d: the destination address to copy the bytes to. @s: the source address to copy the bytes from.