This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-980315, gen*.c system.h and fatal() using stdarg/varargs
- To: rth at cygnus dot com
- Subject: Re: egcs-980315, gen*.c system.h and fatal() using stdarg/varargs
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Thu, 26 Mar 1998 13:59:03 -0500 (EST)
- Cc: egcs at cygnus dot com, law at cygnus dot com
> From: Richard Henderson <rth@dot.cygnus.com>
>
> On Tue, Mar 24, 1998 at 12:50:32PM -0500, Kaveh R. Ghazi wrote:
> > #if !defined(HAVE_VPRINTF) && !defined(vfprintf)
> > # ifdef HAVE_DOPRNT
> > # define vfprintf(stream, format, args) _doprnt(format, args, stream)
> > # else
> > # define vfprintf(stream, format, args) \
> > do { \
> > HOST_WIDE_INT a0 = va_arg(args, HOST_WIDE_INT); \
> > HOST_WIDE_INT a1 = va_arg(args, HOST_WIDE_INT); \
>
> Ug. I would much prefer to define a proper vfprintf function than
> to much with this kind of nonsense. If this is done by just doing
> the argument parsing bits of vfprintf and fobing the actual formatting
> off to fprintf, this should not be that large or complicated.
> r~
I've come up with a workable approach/framework, why do you
feel it is nonsense? Please explain your technical objections.
--Kaveh
--
Kaveh R. Ghazi Project Manager / Custom Development
ghazi@caip.rutgers.edu Icon CMT Corp.