On Thu, Jun 28, 2012 at 11:20 AM, Stephan Beal <sgb...@googlemail.com>wrote:

> On Thu, Jun 28, 2012 at 5:57 PM, Simon Slavin <slav...@bigfraud.org>
> wrote:
>
> > Now the URL:
> >
> > <http://www.sqlite.org/src4/doc/trunk/www/design.wiki>
> >
> > Just thought some people might enjoy reading and thinking about it.
> >
>
> FWIW, my 0.02 Euros regarding this line:
>
> "SQLite4 makes use of standard data types such as size_t, int64_t,
> uint64_t,
> and others."
>
>
> size_t does not have a specified size and causes all sorts of grief in
> porting i/o-based APIs between 32/64 bits, in my experience. PLEASE use the
> fixed-size integers defined in inttypes.h, and not size_t. There is of
> course one notable caveat: MSC does not support inttypes.h/stdint.h BUT
> there are free drop-in replacements available here:
> http://code.google.com/p/msinttypes/


stdint was made available in VC++ 2010, though inttypes is still missing.
Probably not an issue -- I'm not sure how a public API would need inttypes
anyway. Also, perhaps you are seeing size_t be misused. A blanket "please
don't use" is nonsense.

-- 
Cory Nelson
http://int64.org
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to