Re: VFS interface update: off64_t or uint64_t?

Weltall <[email protected]>
Newsgroups gmane.comp.graphics.crystalspace.devel
Message-ID <CAAR4zyRgczagG300p=Uwp=vx3m8-vCRUbB8XhPiu84Rm-sJ-Vg@mail.gmail.com>
It depends on the use. an off64_t might expect an offset. So it's mostly
appropriate for functions which need such a concept. function which use the
concept of seeking for example would make sense to use an off64_t as you
might want to set a seek point and do a relative seek from there (eg of the
concept lseek with seek end with -4).
For the rest I'd be for the uint64_t as it allows to render better the
concept of a number which cannot be negative (like the size of a file has
no meaning to be negative, reading or writing a buffer has no meaning for
the buffer size to be negative and so on).

2012/6/15 Eunsoo Roh <[email protected]>

>  While updating the references after interface update, I noticed
> signed-unsigned mismatch warnings from g++. It turns out off64_t is defined
> as signed 64-bit integer, (potentially) conflicting with legacy code
> expecting size_t, which is a unsigned integer of platform-dependent size.
>
> Anyone have any recommendations on this issue? I'm considering switching
> to uint64_t as this would be less destructive to legacy code.
>
> Eunsoo
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Crystal-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/crystal-develop
>
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
Crystal-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-develop
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.