[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
va_copy in gnulib?
From: |
Ben Pfaff |
Subject: |
va_copy in gnulib? |
Date: |
Sun, 07 May 2006 12:51:27 -0700 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
Has anyone considered an emulation for missing va_copy() in
gnulib? I notice that version-etc.c does this inline.
It seems that it could be done pretty easily, either by wrapping
<stdarg.h> or just creating a va_copy.h that's basically this:
#include <stdarg.h>
#ifndef va_copy
#ifdef __va_copy
#define va_copy(DST, SRC) __va_copy (DST, SRC)
#else
#define va_copy(DST, SRC) ((DST) = (SRC))
#endif
#endif
--
Ben Pfaff
email: address@hidden
web: http://benpfaff.org
- va_copy in gnulib?,
Ben Pfaff <=