www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/06/19/13:53:59

Message-ID: <394E3667.6A43D848@softhome.net>
Date: Mon, 19 Jun 2000 17:04:07 +0200
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.73 [en] (Win98; U)
X-Accept-Language: lt,en
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
CC: DJGPP Workers <djgpp-workers AT delorie DOT com>
Subject: Re: Patch: new GCC builtins for stdarg.h/varargs.h
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000619173147 DOT 27216P AT is>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019