Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* system without printf_has_long_long?
@ 2002-01-11 21:53 Andrew Cagney
  2002-01-12 11:54 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Cagney @ 2002-01-11 21:53 UTC (permalink / raw)
  To: gdb

Hello,

This, er gem, from language.c, has me truely puzzled:

#ifndef CC_HAS_LONG_LONG
....
#elif defined (PRINTF_HAS_LONG_LONG)
....
#else /* !defined (PRINTF_HAS_LONG_LONG) */
   /* Use strcat_address_numeric to print the number into a string, then
      build the result string from local_hex_format_prefix, padding and
      the hex representation as indicated by "width".  */

   temp_nbr_buf[0] = 0;
   /* With use_local == 0, we don't get the leading "0x" prefix. */
   /* MERGEBUG ?? As a quick fix I am replacing this call to
      strcat_address_numeric with sprintf
      strcat_address_numeric(num, 0, temp_nbr_buf, RESULT_BUF_LEN);
    */

   {
     long long ll = num;
     sprintf (temp_nbr_buf, "%llx", ll);
   }

It has been in there for two years (HP merge) and it can't work.

Andrew.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-01-12 19:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-11 21:53 system without printf_has_long_long? Andrew Cagney
2002-01-12 11:54 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox