Re: typedef query

Compro Prasad <[email protected]>
Newsgroups gmane.lisp.clisp.devel
Message-ID <CAF5vbPmPiSUo=c7AFie1fHD7QKOHm_e6T+Wj4gm_59we99GrcQ@mail.gmail.com>
According to what I have seen, 32 bit systems have sizeof(long) as 32
bits and on 64 bit systems it is 64 bits. So, why trust "long". Why
not use "int" for 32 bits and "long long" for 64 bits? If there is a
problem then what is it?

On Thu, May 25, 2017 at 5:52 PM, Bruno Haible <[email protected]> wrote:
> Compro Prasad wrote:
>> typedef unsigned long ULONGLONG;
>> typedef ULONGLONG uint64;
>> typedef uint64 uintP;
>>
>> I think uintP refers to pointer
>
> Yes, the comment in lispbibl.d says so. Just search for 'uintP'.
>
>> But clisp.h doesn't has anything like:
>> build-MT-debug/lispbibl.c:1164:  typedef unsigned long long  ULONGLONG;
>
> In my (non-MT) builds, clisp.h contains
>
> typedef unsigned long ULONGLONG;
> ...
> typedef ULONGLONG uint64;
> ...
> typedef uint64 uintP;
>
> Bruno
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.