Thread: added long long to BSDI

added long long to BSDI

From
Bruce Momjian
Date:
I have found BSDI used %qd for long long, while gnulibc used %Ld.  I
have changed HAVE_LONG_LONG_INT_64 to be HAVE_LONG_LONG_INT_64_Ld and
added HAVE_LONG_LONG_INT_64_qd, and added the proper changes.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

Re: [HACKERS] added long long to BSDI

From
"Thomas G. Lockhart"
Date:
> I have found BSDI used %qd for long long, while gnulibc used %Ld.  I
> have changed HAVE_LONG_LONG_INT_64 to be HAVE_LONG_LONG_INT_64_Ld and
> added HAVE_LONG_LONG_INT_64_qd, and added the proper changes.

But the code no longer uses "%Ld", using "%lld" instead to be compatible
with both gnu and with AIX. Is that still the case? If so, then perhaps
we should have a different name...

Good news on BSDI though. We have the 64-bit ints for ~6 platforms now?
From what I can recall, Linux/i86, Linux/sparc, Linux/alpha, Unix/alpha,
BSDI/i86, and AIX are supported? How about FreeBSD? Any other platforms?

                     - Tom

Re: [HACKERS] added long long to BSDI

From
Bruce Momjian
Date:
> > I have found BSDI used %qd for long long, while gnulibc used %Ld.  I
> > have changed HAVE_LONG_LONG_INT_64 to be HAVE_LONG_LONG_INT_64_Ld and
> > added HAVE_LONG_LONG_INT_64_qd, and added the proper changes.
>
> But the code no longer uses "%Ld", using "%lld" instead to be compatible
> with both gnu and with AIX. Is that still the case? If so, then perhaps
> we should have a different name...
>
> Good news on BSDI though. We have the 64-bit ints for ~6 platforms now?
> >From what I can recall, Linux/i86, Linux/sparc, Linux/alpha, Unix/alpha,
> BSDI/i86, and AIX are supported? How about FreeBSD? Any other platforms?

OK, I can change the name and code, but the configure test used %Ld, and
the code used %lld.  Sure you want to change it?

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

Re: [HACKERS] added long long to BSDI

From
"Billy G. Allie"
Date:
Bruce Momjian <maillist@candle.pha.pa.us> wrote:
> I have found BSDI used %qd for long long, while gnulibc used %Ld.  I
> have changed HAVE_LONG_LONG_INT_64 to be HAVE_LONG_LONG_INT_64_Ld and
> added HAVE_LONG_LONG_INT_64_qd, and added the proper changes.

Just to add to the confusion, the SCO UDK (used in UnixWare and Open Server)
uses %lld for long long.

Fortunately, it will also accept %Ld, so we don't have to add another
HACVE_LONG_LONG_INT_64 variant.
--
____       | Billy G. Allie    | Domain....: Bill.Allie@mug.org
|  /|      | 7436 Hartwell     | Compuserve: 76337,2061
|-/-|----- | Dearborn, MI 48126| MSN.......: B_G_Allie@email.msn.com
|/  |LLIE  | (313) 582-1540    |



Re: [HACKERS] added long long to BSDI

From
"Thomas G. Lockhart"
Date:
> OK, I can change the name and code, but the configure test used %Ld,
> and the code used %lld.  Sure you want to change it?

Ah, I'd forgotten about the configure test (someone else did that one,
Tom Lane I think?). That should be changed to "%lld" also.

Can you do that?

                  - Tom

Re: [HACKERS] added long long to BSDI

From
Bruce Momjian
Date:
> > OK, I can change the name and code, but the configure test used %Ld,
> > and the code used %lld.  Sure you want to change it?
>
> Ah, I'd forgotten about the configure test (someone else did that one,
> Tom Lane I think?). That should be changed to "%lld" also.
>
> Can you do that?
>
>                   - Tom
>

Doing it now.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)