egcs, REVIEW FOR SUBMISSION, vfprintf.c ... (fix)

Eric Dana edana@bgs.com
Mon Apr 6 17:35:00 GMT 1998


---------- Forwarded message ----------
Date: Fri, 3 Apr 1998 10:12:09 -0500 (EST)
From: Eric Dana <edana@bgs.com>
To: "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu>
Cc: egcs@cygnus.com, ghazi@caip.rutgers.edu
Subject: Re: egcs, REVIEW FOR SUBMISSION, vfprintf.c ...

Kaveh,

   My last patch was quite incorrect. Here is a simplified and correct
patch to allow 'L' prefixes on integer quantities to stand for
'long long'. I've also made a portable _doprint()/_doscan()
replacement for many UNIX's (original based on netbsd and freebsd
work). Your welcome to look at the code.

Eric Dana
Principal Software Engineer
BMC Inc.

-------------------------cut here-------------
*** vfprintf.c.orig	Fri Apr  3 09:52:05 1998
--- vfprintf.c	Mon Apr  6 10:58:08 1998
***************
*** 127,132 ****
--- 127,134 ----
  		  PRINT_TYPE(short);
  		else
  		  {
+ 		    if (double_width)   /* support for %Ld == long long */
+ 		      long_width = 2;   /* (MP-RAS (NCR) and others) */
  		    switch (long_width)
  		      {
  		      case 0:



More information about the Gcc mailing list