Message-ID: <394E3667.6A43D848@softhome.net> Date: Mon, 19 Jun 2000 17:04:07 +0200 From: Laurynas Biveinis X-Mailer: Mozilla 4.73 [en] (Win98; U) X-Accept-Language: lt,en MIME-Version: 1.0 To: Eli Zaretskii CC: DJGPP Workers Subject: Re: Patch: new GCC builtins for stdarg.h/varargs.h References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Eli Zaretskii wrote: > > On Sun, 18 Jun 2000, Laurynas Biveinis wrote: > > > Also, it is possible to implement new C99 macro, > > va_copy. However, this patch doesn't do that, because > > I don't know how to implement it for GCC 2.95 or > > earlier (w/o builtins) > > Just don't do anything about it. If somebody uses va_copy with GCC 2.95 > or earlier, they will get an error message, which is appropriate, since > this feature is not supported. > > Or am I missing something? Sorry, I don't understand. Following this logic, one may conclude, that all the va_list company should not be implemented for GCC 2.95, because it did not provide builtins for that. va_copy is defined in C99, not as GNU C extension. BTW, provided that our va_list is a pointer to somewhere in the stack, I think that simple #define va_copy(dest, source) (dest) = (source) should DTRT, shouldn't it?. Laurynas