comp.lang.ada
 help / color / mirror / Atom feed
From: Kevin Chadwick <m8il1ists@gmail.com>
Subject: Re: C time_t 2038 problem s-os_lib.ads
Date: Thu, 23 Sep 2021 08:39:19 -0700 (PDT)	[thread overview]
Message-ID: <0f98243e-b20a-4dd1-9061-457b607ea8c7n@googlegroups.com> (raw)
In-Reply-To: <cd4a94de-e8b9-4194-8d80-24a009a558ban@googlegroups.com>

> Well, yes Long_Integer is 64-bits, but long long in cpp is 128 bits which sounds like a discrepancy to me. On OpenBSD it indicates C time_t should be changed from Long_Integer to somethinge else that is 128-bits. 

I'm not sure OpenBSD uses c++ but their long long is 64 bits; seconds since Jan 1970. I guess this demonstrates an Ada strength.

> All packages in Ada has "with Standard; use Standard;" which brings Integer etc. into scope. Long_Integer should be defined in the Standard package. Under help in GPS it should be possible to find the Standard package. 

Thank You. I have found it.

I expected it to jump to declaration if I included Long_Integer in a compiling program text but 
it doesn't seem to work for types. Oh well.

Regards, Kc

  reply	other threads:[~2021-09-23 15:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-23 10:42 C time_t 2038 problem s-os_lib.ads Kevin Chadwick
2021-09-23 14:26 ` Jeffrey R. Carter
2021-09-23 15:01   ` Kevin Chadwick
2021-09-23 15:08     ` Joakim Strandberg
2021-09-23 15:39       ` Kevin Chadwick [this message]
2021-09-23 15:57         ` Kevin Chadwick
2021-09-23 19:52       ` Keith Thompson
2021-09-24  9:32         ` Joakim Strandberg
2021-09-24  9:44           ` Niklas Holsti
2021-09-24 22:54           ` Keith Thompson
2021-09-25 10:22             ` G.B.
2021-09-25 11:23             ` Simon Wright
replies disabled

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