cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_off_t suffix

From: Yang Tse <yangsita_at_gmail.com>
Date: Thu, 14 Aug 2008 13:20:07 +0200

2008/8/14, Jamie Lokier wrote:

> Dan Fandrich wrote:
>[...]
> > Boy, that's going to be fun to parse in m4! It may be easier to parse
> > INT64_MAX instead and extract the suffix; Watcom defines that as a simple
> >
> > #define INT64_MAX 9223372036854775807LL
> >
> > but, surely, that's in itself no more portable.
>
> I wouldn't be surprised to find some things define it as
> ((int64_t) 9223372036854775807) or similar.

Yes that's quite possible for INT64_MAX. What I didn't expect was the
Watcom expansion of INT64_C() !!!!!!!!!

Do you happen to know other signed constant suffixes besides 'L' 'LL'
'i128' 'i64' 'i32' 'i16' 'i8'?

-- 
-=[Yang]=-
Received on 2008-08-14