[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PakFiles & Portability



Sam Lantinga wrote:

>> (2) (almost the same issue as above) Is support for (sym-) links useful?
>
>Useful, yes.  Portable, no. :)

Useful for what (remember the context - it's about links in archive files)?

>> 64bit has the advantage of supporting files > 2GB, but implementing 64bit
>> values in C portably is a pain in the a**. 
>
>Maybe you can use the Linux "long long"  -- it's not portable, but...

long long is nice, but risky. According to the gcc info pages long long is
defined to have twice the size as int (that's ok with some sizeof
checking). However, if I understood the docs right, even multiplication of
long longs won't work on all systems. And there is nothing defined about
taking a pointer to long long (e.g. for passing it to fwrite ()).

Well, I'll stick with internal 32bit handling for now...

Cu
	Christian
--

C:\DOS\COMMAND\SYSTEM\HELP\WHERE\THE\F*CK\AM_I