Hi, * Ivan Skytte Jørgensen wrote (2007-12-30 22:53): >On Sunday 30 December 2007 20:13:31 Thorsten Haude wrote: >> * Ivan Skytte Jørgensen wrote (2007-10-16 01:14): >> >The attached patch changes utils/utils.*:PrependHome() from using plain >> > int to describe the size of the buffer to size_t. The change is >> > propagated up to file.c where it is called. >> >> Why do you want to use size_t for a path length? > >Because length of strings, size of arrays, size of objects, etc. are best done >with size_t because size_t is guaranteed to have to important >characteristics: > - large enough to hold any size of any object in memory. > - unsigned.
Since the first characteristics is far from required, I would have
thought that a simple (unsigned) would do.
But I might like the idea to use size_t for any object sizes.
Thorsten Kristin Hersh: Hysterical Bending
--
Getting a thrill out of some stupid quote is a sign of idiocy.
- turmeric
pgpAnxc8kciiy.pgp
Description: PGP signature
-- NEdit Develop mailing list - [email protected] http://www.nedit.org/mailman/listinfo/develop
