This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs-980315, gen*.c system.h and fatal() using stdarg/varargs


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]