[glib] glib-genmarshal.c: Use G_VA_COPY instead of va_copy()
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] glib-genmarshal.c: Use G_VA_COPY instead of va_copy()
- Date: Thu, 8 Mar 2012 07:04:23 +0000 (UTC)
commit d642bf442ffcfba52c58764b03ac6dcf21feb1cf
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Mar 8 15:04:17 2012 +0800
glib-genmarshal.c: Use G_VA_COPY instead of va_copy()
In the code generation portion, va_copy() is not universally available,
so use the existing G_VA_COPY macro that in turn calls va_copy() if it
is available or call an appropriate emulation otherwise.
gobject/glib-genmarshal.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gobject/glib-genmarshal.c b/gobject/glib-genmarshal.c
index 2283b26..5aaaf1d 100644
--- a/gobject/glib-genmarshal.c
+++ b/gobject/glib-genmarshal.c
@@ -549,7 +549,7 @@ generate_marshal (const gchar *signame,
if (has_arg)
{
g_fprintf (fout, "\n");
- g_fprintf (fout, " va_copy (args_copy, args);\n");
+ g_fprintf (fout, " G_VA_COPY (args_copy, args);\n");
i = 0;
for (node = sig->args; node; node = node->next)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]